{"site": "project_search", "repo": "thor", "task": "Estou tentando implementar uma lógica de validação para argumentos de linha de comando. Onde encontro o método que permite exigir que pelo menos uma das opções fornecidas seja utilizada?", "query": "at least one option", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lang": "pt", "candidates": [{"text": "File: spec/group_spec.rb\nLine 72: expect(@content).to match(/Description:/)", "file": "spec/group_spec.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 369: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 369, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 2: check_unknown_options! :except => :with_optional", "file": "spec/fixtures/script.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 6: before do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 126: expect(File.read(file)).to eq(\"__start__\\nREADME\\nmore content\\n__end__\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 24: memo", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 11: def build", "file": "Thorfile", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 1: # encoding: ISO-8859-7", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 6: print options[\"opt\"]", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 246: def method_at_least_one(*args, &block)", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nLine 85: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 6: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 103: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 56: invoke!", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 3: require \"bundler\"", "file": "Thorfile", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 34: expect(Thor::Base.shell).to eq(shell.class)", "file": "spec/shell_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 65: \"%-#{maxima + 2}s\".dup", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 13: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 447: describe \"#method_at_least_one\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 447, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nLine 50: def foo(name)", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 78: it \"copies and evaluates files within excluding/ directory when no exclude_pattern is present\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 6: def load_thorfile(filename)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 69: @pile.first", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 6: class WrappedPrinter < ColumnPrinter", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estou tentando implementar uma lógica de validação para argumentos de linha de comando. Onde encontro o método que permite exigir que pelo menos uma das opções fornecidas seja utilizada?", "query": "at least one option", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lang": "pt", "candidates": [{"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Estou tentando implementar uma lógica de validação para argumentos de linha de comando. Onde encontro o método que permite exigir que pelo menos uma das opções fornecidas seja utilizada?", "query": "at least one option", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lang": "pt", "candidates": [{"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estou tentando implementar uma lógica de validação para argumentos de linha de comando. Onde encontro o método que permite exigir que pelo menos uma das opções fornecidas seja utilizada?", "query": "at least one option", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/runner.rb lines=190-213\nread thor_root for detail", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=127-150\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=34-57\nread invoker for detail", "file": "spec/fixtures/invoke.thor", "symbol": "invoker", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=246-269\nread method_at_least_one for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=3-26\nread EncodingImplicit for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "EncodingImplicit", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=54-77\nread initialize for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=179-202\nread names_to_switch_names for detail", "file": "lib/thor/parser/options.rb", "symbol": "names_to_switch_names", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=62-85\nread InvocationError for detail", "file": "lib/thor/error.rb", "symbol": "InvocationError", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=321-344\nread show_modules for detail", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=109-132\nread sans_backtrace for detail", "file": "lib/thor/command.rb", "symbol": "sans_backtrace", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=35-58\nread identical? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "identical?", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=43-66\nread indent for detail", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=111-134\nread group for detail", "file": "spec/fixtures/group.thor", "symbol": "group", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "¿Cómo se define una subclase de grupo que hereda de ParentGroup y expone 'foo' y 'baz' como comandos públicos?", "query": "Thor child group public commands", "file": "spec/fixtures/group.thor", "symbol": "ChildGroup", "line": 127, "lang": "es", "candidates": [{"text": "File: lib/thor/actions/file_manipulation.rb\nLine 95: else", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 254: def self_command #:nodoc:", "file": "lib/thor/group.rb", "symbol": "", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 1: #!/usr/bin/ruby", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 19: expect(capture(:stdout) { Scripts::MyDefaults.start(%w(barn paint blue --coats 4)) }.strip).to eq(\"4 coats of blue paint\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 15: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 43: if ancestor_name", "file": "lib/thor/command.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 19: counter += (word.length + 1)", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 40: # end", "file": "lib/thor/shell.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 6: expect(ChildGroup.start).to eq(%w(bar foo baz))", "file": "spec/group_spec.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 2: # frozen_string_literal: true", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 26: def spec", "file": "Thorfile", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 16: colwidth = (array.map { |el| el.to_s.size }.max || 0) + 2", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 95: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 4: require_relative \"lcs_diff\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 35: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 44: \"#{options.last_name}, #{first_name}\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 19: expect(capture(:stdout) { Scripts::MyDefaults.start(%w(barn paint blue --coats 4)) }.strip).to eq(\"4 coats of blue paint\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 12: def command2", "file": "spec/tree_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 97: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 119: thor_yaml[as][:filename] # Indicate success", "file": "lib/thor/runner.rb", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 216: expect(Scripts::MyScript.namespace).to eq(\"scripts:my_script\")", "file": "spec/base_spec.rb", "symbol": "", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 127: class ChildGroup < ParentGroup", "file": "spec/fixtures/group.thor", "symbol": "ChildGroup", "line": 127, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "¿Cómo se define una subclase de grupo que hereda de ParentGroup y expone 'foo' y 'baz' como comandos públicos?", "query": "Thor child group public commands", "file": "spec/fixtures/group.thor", "symbol": "ChildGroup", "line": 127, "lang": "es", "candidates": [{"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\ndefines ChildGroup", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "¿Cómo se define una subclase de grupo que hereda de ParentGroup y expone 'foo' y 'baz' como comandos públicos?", "query": "Thor child group public commands", "file": "spec/fixtures/group.thor", "symbol": "ChildGroup", "line": 127, "lang": "es", "candidates": [{"text": "Next: read spec/fixtures/exit_status.thor lines=14-37\nread ok for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=253-276\nread thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=93-116\nread method_missing for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "method_missing", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=160-183\nread dasherized? for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherized?", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=37-60\nread fetch for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "fetch", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=259-282\nread baseclass for detail", "file": "lib/thor/group.rb", "symbol": "baseclass", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=102-125\nread invoke for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=133-156\nread invoke_all for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_all", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=127-150\nread ChildGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ChildGroup", "line": 127, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=72-95\nread format_cell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "format_cell", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=750-773\nread from_superclass for detail", "file": "lib/thor/base.rb", "symbol": "from_superclass", "line": 750, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=27-50\nread delete for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "delete", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=10-33\nread describe for detail", "file": "spec/fixtures/command.thor", "symbol": "describe", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=46-69\nread use_path_completion? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "use_path_completion?", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "find where modules are mixed in to extend class methods", "query": "included extend class_methods", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lang": "en", "candidates": [{"text": "File: lib/thor/actions.rb\nLine 12: def self.included(base) #:nodoc:", "file": "lib/thor/actions.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nLine 22: failing_lines = []", "file": "spec/quality_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 177: describe \"#thor_root_glob\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 88: describe \"with value as boolean\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 142: end", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 16: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 40: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 21: def push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 3: def self.included(base) #:nodoc:", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/nested_context.rb\nLine 12: pop", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 136: # Check if the peek is included in enum if enum is provided.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 136, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 27: def self.included(base)", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 92: #", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 41: config.before do", "file": "spec/helper.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 164: validate_enum_value!(name, value, \"Expected '%s' to be one of %s; got %s\")", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 20: stdout.puts value", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 3: class Basic", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 42: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 53: included = /spec/", "file": "spec/quality_spec.rb", "symbol": "", "line": 53, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 1: class Thor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 100: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 117: def included(base) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 39: # argument :first, :type => :numeric", "file": "lib/thor/shell.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find where modules are mixed in to extend class methods", "query": "included extend class_methods", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lang": "en", "candidates": [{"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find where modules are mixed in to extend class methods", "query": "included extend class_methods", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lang": "en", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=360-383\nread answer_match for detail", "file": "lib/thor/shell/basic.rb", "symbol": "answer_match", "line": 360, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=72-95\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=639-662\nread class_options_help for detail", "file": "lib/thor/base.rb", "symbol": "class_options_help", "line": 639, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=32-55\nread completion_proc for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_proc", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=156-179\nread no? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "no?", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=276-299\nread thorfiles_relevant_to for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=85-108\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=8-31\nread encoding for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=71-94\nread example_default_command for detail", "file": "spec/fixtures/script.thor", "symbol": "example_default_command", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Where is the helper method that initializes the generator instance for these tests?", "query": "WhinyGenerator new", "file": "spec/actions/directory_spec.rb", "symbol": "invoker", "line": 11, "lang": "en", "candidates": [{"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 4: class Thor", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 14: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 11: def invoker(options = {})", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nLine 83: let(:config) { {verbose: false} }", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 29: # Hack. Make rakefile point to invoker, so rdoc task is generated properly.", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 215: end", "file": "spec/group_spec.rb", "symbol": "", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 21: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 15: word = word.gsub(/\\n\\005/, \"\\n\").gsub(/\\005/, \"\\n\")", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 11: puts \"ok\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 384: it \"converts extra arguments to command arguments\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 384, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 33: desc \"invoker\", \"invoke a b command\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 99: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 40: # initialize the invoker are used to initialize the invoked.", "file": "lib/thor/invocation.rb", "symbol": "", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nLine 34: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 67: :numeric", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 284: end", "file": "lib/thor/util.rb", "symbol": "", "line": 284, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 90: It even has two paragraphs.", "file": "spec/fixtures/script.thor", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 8: # destination:: the relative path to the destination root.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 4: module Shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 11: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 31: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 11: def invoker", "file": "spec/actions/directory_spec.rb", "symbol": "invoker", "line": 11, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/register_spec.rb\nLine 121: BoringVendorProvidedCLI.register(", "file": "spec/register_spec.rb", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 11: class Color < Basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Where is the helper method that initializes the generator instance for these tests?", "query": "WhinyGenerator new", "file": "spec/actions/directory_spec.rb", "symbol": "invoker", "line": 11, "lang": "en", "candidates": [{"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nsibling in spec/actions", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\ndefines invoker", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "thor", "task": "Where is the helper method that initializes the generator instance for these tests?", "query": "WhinyGenerator new", "file": "spec/actions/directory_spec.rb", "symbol": "invoker", "line": 11, "lang": "en", "candidates": [{"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> thor/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Where is the helper method that initializes the generator instance for these tests?", "query": "WhinyGenerator new", "file": "spec/actions/directory_spec.rb", "symbol": "invoker", "line": 11, "lang": "en", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=281-304\nread Pear for detail", "file": "spec/fixtures/script.thor", "symbol": "Pear", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=294-317\nread arguments for detail", "file": "lib/thor/base.rb", "symbol": "arguments", "line": 294, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoker", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=55-78\nread inherited for detail", "file": "spec/fixtures/group.thor", "symbol": "inherited", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=55-78\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=142-165\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=161-184\nread initialize for detail", "file": "spec/fixtures/script.thor", "symbol": "initialize", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/tree_spec.rb lines=7-30\nread command1 for detail", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoker", "line": 11, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=96-119\nread name_with_dashes for detail", "file": "spec/fixtures/script.thor", "symbol": "name_with_dashes", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/argument_spec.rb lines=5-28\nread argument for detail", "file": "spec/parser/argument_spec.rb", "symbol": "argument", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=83-106\nread windows? for detail", "file": "spec/helper.rb", "symbol": "windows?", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=6-29\nread show_diff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "show_diff", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=172-195\nread get_options_from_invocations for detail", "file": "lib/thor/group.rb", "symbol": "get_options_from_invocations", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=14-37\nread ok for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=92-115\nread long_description for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=23-46\nread revoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoke!", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=77-100\nread BrokenCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "BrokenCounter", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=128-151\nread send for detail", "file": "spec/fixtures/script.thor", "symbol": "send", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=235-258\nread command_conflict for detail", "file": "spec/fixtures/script.thor", "symbol": "command_conflict", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=26-49\nread squirrel for detail", "file": "spec/register_spec.rb", "symbol": "squirrel", "line": 26, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Es scheint ein Problem bei der Implementierung des ersten Unterbefehls in den Tests zu geben; die Methode ist aktuell leer und führt keine Logik aus.", "query": "subcommand spec", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lang": "de", "candidates": [{"text": "File: lib/thor/shell/html.rb\nLine 24: BLUE = \"color: blue\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 18: def subcommand1", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 68: def absolute_matches", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 672: shell.say(group_name ? \"#{group_name} options:\" : \"Options:\")", "file": "lib/thor/base.rb", "symbol": "", "line": 672, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 83: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 157: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 84: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 1: require \"helper\"", "file": "spec/shell_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 48: options[:simple]", "file": "spec/fixtures/group.thor", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 44: # ==== Examples", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 22: class_option :simple, :type => :numeric, :aliases => 'z'", "file": "spec/fixtures/group.thor", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 82: expect(command.run(klass.new)).to eq(\"can_has\")", "file": "spec/command_spec.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 84: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 178: desc \"boom\", \"explodes everything\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 104: desc \"boring\", \"An ordinary command\"", "file": "spec/thor_spec.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 215: # ==== Parameters", "file": "lib/thor.rb", "symbol": "", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 63: File.join(File.dirname(__FILE__), \"fixtures\")", "file": "spec/helper.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 99: it \"copies directories and preserves file mode\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 33: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 1: $TESTING = true", "file": "spec/helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 10: base = MyCounter.new [1, 2], {}, shell: shell", "file": "spec/shell_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 27: def print_default", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Es scheint ein Problem bei der Implementierung des ersten Unterbefehls in den Tests zu geben; die Methode ist aktuell leer und führt keine Logik aus.", "query": "subcommand spec", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lang": "de", "candidates": [{"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\ndefines subcommand1", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nsibling in spec", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nsibling in spec", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nsibling in spec", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Es scheint ein Problem bei der Implementierung des ersten Unterbefehls in den Tests zu geben; die Methode ist aktuell leer und führt keine Logik aus.", "query": "subcommand spec", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lang": "de", "candidates": [{"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Es scheint ein Problem bei der Implementierung des ersten Unterbefehls in den Tests zu geben; die Methode ist aktuell leer und führt keine Logik aus.", "query": "subcommand spec", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lang": "de", "candidates": [{"text": "Next: read spec/sort_spec.rb lines=55-78\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=81-104\nread call_unexistent_method for detail", "file": "spec/fixtures/script.thor", "symbol": "call_unexistent_method", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=4-27\nread TreeApp for detail", "file": "spec/tree_spec.rb", "symbol": "TreeApp", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=64-87\nread relative_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "relative_matches", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=10-33\nread describe for detail", "file": "spec/fixtures/command.thor", "symbol": "describe", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=629-652\nread exit_on_failure? for detail", "file": "lib/thor/base.rb", "symbol": "exit_on_failure?", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=7-30\nread command1 for detail", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=6-29\nread WrappedPrinter for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "WrappedPrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=112-135\nread are_colors_disabled? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_disabled?", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=71-94\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=221-244\nread ruby_command for detail", "file": "lib/thor/util.rb", "symbol": "ruby_command", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=190-213\nread allow_incompatible_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "allow_incompatible_default_type!", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=12-35\nread command2 for detail", "file": "spec/tree_spec.rb", "symbol": "command2", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/util_spec.rb lines=4-27\nread clear_user_home! for detail", "file": "spec/util_spec.rb", "symbol": "clear_user_home!", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=15-38\nread SubApp for detail", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/tree_spec.rb lines=18-41\nread subcommand1 for detail", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=110-133\nread G for detail", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=350-373\nread remove_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "remove_file", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=43-66\nread show_default? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "show_default?", "line": 43, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "busca la función que crea enlaces o directorios para el destino", "query": "symlink mkdir_p link", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lang": "es", "candidates": [{"text": "File: lib/thor/shell/lcs_diff.rb\nLine 47: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 284: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 284, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 290: /\\A#{value}\\z/i", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 290, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 4: class EncodingOther < Thor", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 49: description.strip!", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 58: task", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 7: #", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 154: if force || !replacement_present?", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 3: module Terminal", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 33: keys.each { |key| hash.delete(convert_key(key)) }", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 5: super + DidYouMean.formatter.message_for(corrections)", "file": "lib/thor/error.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 6: attr_reader :stdout, :options", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 33: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 95: # { \"name\" => \"string\", \"age\" => \"integer\" }", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 304: option :seven", "file": "spec/fixtures/script.thor", "symbol": "", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 83: end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 8: SimpleCov.start do", "file": "spec/helper.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 579: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 579, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 9: # ==== Examples", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 135: expect(my_script.start(%w(boring command --verbose))).to eq [{\"verbose\" => true}, %w(command)]", "file": "spec/thor_spec.rb", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 40: def invoke!", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/basic_spec.rb\nLine 379: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 379, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 18: memo = \"#{memo} #{word}\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 76: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "busca la función que crea enlaces o directorios para el destino", "query": "symlink mkdir_p link", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lang": "es", "candidates": [{"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "busca la función que crea enlaces o directorios para el destino", "query": "symlink mkdir_p link", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "busca la función que crea enlaces o directorios para el destino", "query": "symlink mkdir_p link", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lang": "es", "candidates": [{"text": "Next: read lib/thor/command.rb lines=96-119\nread public_method? for detail", "file": "lib/thor/command.rb", "symbol": "public_method?", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=619-642\nread handle_argument_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_argument_error", "line": 619, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=40-63\nread invoke! for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=264-287\nread prepare_message for detail", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=90-113\nread snake_case for detail", "file": "lib/thor/util.rb", "symbol": "snake_case", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoker", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=393-416\nread class_at_least_one for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=322-345\nread quiet? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=35-58\nread identical? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "identical?", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=248-271\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=49-72\nread capture for detail", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=109-132\nread CommandConflict for detail", "file": "spec/fixtures/group.thor", "symbol": "CommandConflict", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=249-272\nread banner for detail", "file": "lib/thor/group.rb", "symbol": "banner", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=65-88\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=750-773\nread from_superclass for detail", "file": "lib/thor/base.rb", "symbol": "from_superclass", "line": 750, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=35-58\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=73-96\nread ask for detail", "file": "lib/thor/shell/html.rb", "symbol": "ask", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "C'est quoi l'exception qui est levée quand une commande est bien trouvée mais mal exécutée ?", "query": "command not invoked", "file": "lib/thor/error.rb", "symbol": "InvocationError", "line": 62, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/encoding_implicit.thor\nLine 13: puts \"expected #{SOME_STRING.encoding.name} to equal UTF-8\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 396: # Thor::Actions#capture depends on what kind of buffer is used in ERB.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 396, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 91: def five", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 210: end", "file": "spec/group_spec.rb", "symbol": "", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 10: pid= spawn({\"RUBYLIB\" => ruby_lib},", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 50: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 62: class InvocationError < Error", "file": "lib/thor/error.rb", "symbol": "InvocationError", "line": 62, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/base.rb\nLine 625: raise InvocationError, msg", "file": "lib/thor/base.rb", "symbol": "", "line": 625, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 343: end", "file": "spec/base_spec.rb", "symbol": "", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 107: it \"does not swallow Thor::Group InvocationError\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 107, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nLine 38: # Set the terminal's background ANSI color to red.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 62: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 362: # Overwrite check_unknown_options? to take subcommands and options into account.", "file": "lib/thor.rb", "symbol": "", "line": 362, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 146: [klass, command]", "file": "lib/thor/util.rb", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 22: stdout.printf(\"%-#{colwidth}s\", value)", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 3: gem_dir= File.expand_path(\"#{File.dirname(__FILE__)}/..\")", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 23: expect(thor_command(\"error\")).to eq(1)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 357: expect(MyScript.start(%w(-T fish))).to eq(%w(fish))", "file": "spec/thor_spec.rb", "symbol": "", "line": 357, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 43: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 5: describe \"file's encoding\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 267: alias_method :create_task, :create_command", "file": "lib/thor/group.rb", "symbol": "", "line": 267, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 31: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/├─ command2/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 54: enum.join(\", \")", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "C'est quoi l'exception qui est levée quand une commande est bien trouvée mais mal exécutée ?", "query": "command not invoked", "file": "lib/thor/error.rb", "symbol": "InvocationError", "line": 62, "lang": "fr", "candidates": [{"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "C'est quoi l'exception qui est levée quand une commande est bien trouvée mais mal exécutée ?", "query": "command not invoked", "file": "lib/thor/error.rb", "symbol": "InvocationError", "line": 62, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=37-60\nread fetch for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "fetch", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=333-356\nread comment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "comment_lines", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=118-141\nread parse_array for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_array", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=24-47\nread UndefinedCommandError for detail", "file": "lib/thor/error.rb", "symbol": "UndefinedCommandError", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=20-43\nread Error for detail", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/directory_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/create_file_spec.rb lines=21-44\nread revoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=47-70\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=128-151\nread send for detail", "file": "spec/fixtures/script.thor", "symbol": "send", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/basic_spec.rb lines=5-28\nread shell for detail", "file": "spec/shell/basic_spec.rb", "symbol": "shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=133-156\nread potentially_ambiguous for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=567-590\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=138-161\nread subclass_files for detail", "file": "lib/thor/base.rb", "symbol": "subclass_files", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=289-312\nread display_klasses for detail", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=83-106\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=172-195\nread get_options_from_invocations for detail", "file": "lib/thor/group.rb", "symbol": "get_options_from_invocations", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=72-95\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=62-85\nread InvocationError for detail", "file": "lib/thor/error.rb", "symbol": "InvocationError", "line": 62, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=161-184\nread initialize for detail", "file": "spec/fixtures/script.thor", "symbol": "initialize", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Estou tentando ajustar como as tabelas são renderizadas no terminal. Onde fica a lógica que controla o preenchimento das células e o truncamento de texto quando a linha fica muito grande?", "query": "terminal table printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lang": "pt", "candidates": [{"text": "File: lib/thor/line_editor/basic.rb\nLine 1: class Thor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 4: class Thor", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 11: puts \"ok\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 46: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 5: class Thor", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nLine 1: Bundler.require :development, :default", "file": "spec/fixtures/help.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 1: require \"rake\"", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 6: def self.available?", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 51: context \"specifying :symbolic => false\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 372: expect(content).to eq(<<-TABLE)", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 372, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 224: describe \".register-ing a Thor::Group subclass with class options\" do", "file": "spec/register_spec.rb", "symbol": "", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 1: class Thor", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 71: klass = Class.new do", "file": "spec/command_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 6: class Thor", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nLine 5: require 'thor'", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 86: # class_option :style, :type => :string, :default => :mock", "file": "lib/thor/invocation.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 4: class Thor", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 13: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 80: describe \"#class_at_least_one_option_names\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 14: ].detect(&:available?)", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 35: #", "file": "lib/thor/shell.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 28: class ThorTask < Thor", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 31: expect(command(foo: :required).formatted_usage(object)).to eq(\"foo:can_has BAR --foo=FOO\")", "file": "spec/command_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estou tentando ajustar como as tabelas são renderizadas no terminal. Onde fica a lógica que controla o preenchimento das células e o truncamento de texto quando a linha fica muito grande?", "query": "terminal table printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lang": "pt", "candidates": [{"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\ndefines Thor", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Estou tentando ajustar como as tabelas são renderizadas no terminal. Onde fica a lógica que controla o preenchimento das células e o truncamento de texto quando a linha fica muito grande?", "query": "terminal table printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estou tentando ajustar como as tabelas são renderizadas no terminal. Onde fica a lógica que controla o preenchimento das células e o truncamento de texto quando a linha fica muito grande?", "query": "terminal table printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/util.rb lines=264-287\nread escape_globs for detail", "file": "lib/thor/util.rb", "symbol": "escape_globs", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=159-182\nread attr_writer for detail", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=138-161\nread say_status for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "say_status", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=52-75\nread render for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "render", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=16-39\nread parse for detail", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=23-46\nread Shell for detail", "file": "lib/thor/shell.rb", "symbol": "Shell", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/command.thor lines=10-33\nread describe for detail", "file": "spec/fixtures/command.thor", "symbol": "describe", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=126-149\nread validate! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate!", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=55-78\nread Parent for detail", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=84-107\nread current_is_value? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=77-100\nread required_arguments_for for detail", "file": "lib/thor/command.rb", "symbol": "required_arguments_for", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=169-192\nread check_unknown_options! for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options!", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/exit_status.thor lines=14-37\nread ok for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "CLI 명령줄 옵션을 처리하는 클래스에서, 옵션 해시를 파싱된 문자열 스위치로 변환하는 로직을 찾아주세요. boolean, 배열, 해시 등 다양한 데이터 타입의 값을 '--key value' 형식으로 처리하는 메서드가 어디에 정의되어 있는지 확인해야 합니다.", "query": "thor option switches", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 3: class Thor", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 52: def enum_to_s", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 1: class Thor", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 265: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 265, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 61: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 272: klass.class_eval \"def shell; end\"", "file": "spec/base_spec.rb", "symbol": "", "line": 272, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 635: super cool", "file": "spec/thor_spec.rb", "symbol": "", "line": 635, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 1: class Thor", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nLine 27: expect($stdout).to receive(:print).with(\" conflict README\\n\")", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 1: class Thor", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 25: action CreateFile.new(self, destination, block || data.to_s, config)", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 73: name", "file": "spec/command_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 5: class Thor", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nLine 173: allow($stdout).to receive(:tty?).and_return(false)", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 16: false", "file": "lib/thor/command.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 14: subcommand \"sub\", Subcommand", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 139: super(name.to_s, \"A dynamically-generated command\", name.to_s, nil, name.to_s, options)", "file": "lib/thor/command.rb", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 312: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 312, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 1: class Thor", "file": "lib/thor/error.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nLine 3: describe Thor do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nLine 233: end", "file": "spec/register_spec.rb", "symbol": "", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 39: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 15: desc \"install\", \"Build and install thor-#{Thor::VERSION}.gem into system gems\"", "file": "Thorfile", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "CLI 명령줄 옵션을 처리하는 클래스에서, 옵션 해시를 파싱된 문자열 스위치로 변환하는 로직을 찾아주세요. boolean, 배열, 해시 등 다양한 데이터 타입의 값을 '--key value' 형식으로 처리하는 메서드가 어디에 정의되어 있는지 확인해야 합니다.", "query": "thor option switches", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lang": "ko", "candidates": [{"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "CLI 명령줄 옵션을 처리하는 클래스에서, 옵션 해시를 파싱된 문자열 스위치로 변환하는 로직을 찾아주세요. boolean, 배열, 해시 등 다양한 데이터 타입의 값을 '--key value' 형식으로 처리하는 메서드가 어디에 정의되어 있는지 확인해야 합니다.", "query": "thor option switches", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/line_editor/readline.rb lines=50-73\nread PathCompletion for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "PathCompletion", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=86-109\nread force_or_skip_or_conflict for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_or_skip_or_conflict", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=65-88\nread peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=351-374\nread no_relations for detail", "file": "spec/fixtures/script.thor", "symbol": "no_relations", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=83-106\nread invoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "invoke!", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=159-182\nread attr_writer for detail", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=9-32\nread option for detail", "file": "spec/parser/option_spec.rb", "symbol": "option", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=12-35\nread initialize for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "initialize", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=153-176\nread _retrieve_class_and_command for detail", "file": "lib/thor/invocation.rb", "symbol": "_retrieve_class_and_command", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=619-642\nread handle_argument_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_argument_error", "line": 619, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=313-336\nread show_diff for detail", "file": "lib/thor/shell/basic.rb", "symbol": "show_diff", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=700-723\nread build_options for detail", "file": "lib/thor/base.rb", "symbol": "build_options", "line": 700, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "Je cherche la méthode qui permet de générer un nouveau fichier à partir d'un bloc de code ou d'une chaîne de caractères. Peux-tu m'expliquer comment elle gère les options de configuration et le contenu passé en argument ?", "query": "create file block", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lang": "fr", "candidates": [{"text": "File: lib/thor/command.rb\nLine 150: DynamicTask = DynamicCommand", "file": "lib/thor/command.rb", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 3: # Thor has a special class called Thor::Group. The main difference to Thor class", "file": "lib/thor/group.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 142: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 38: base = MyCounter.new [1, 2], third: 3", "file": "spec/base_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 10: yield", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 85: end", "file": "lib/thor/actions.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 4: class Thor", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 44: it \"does not create a directory in pretend mode\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 3: describe Thor do", "file": "spec/sort_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 156: def check_at_least_one!", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 198: on_red = shell.set_color \"hi!\", :white, :on_red", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 35: def dynamic_width_tput", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 5: describe Thor::Actions::InjectIntoFile do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 203: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 299: (klasses - groups).each { |k| list[k.namespace.split(\":\").first] += k.printable_commands(false) }", "file": "lib/thor/runner.rb", "symbol": "", "line": 299, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 23: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 65: it \"does not create a directory if pretending\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 9: my_script = Class.new(Thor) do", "file": "spec/sort_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 4: class EncodingOther < Thor", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 1: class MyScript < Thor", "file": "spec/fixtures/script.thor", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 3: class Thor", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Thorfile\nLine 29: end", "file": "Thorfile", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 13: desc \"sub\", \"My subcommand\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 41: expect(argument(:foo, type: :numeric).usage).to eq(\"N\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche la méthode qui permet de générer un nouveau fichier à partir d'un bloc de code ou d'une chaîne de caractères. Peux-tu m'expliquer comment elle gère les options de configuration et le contenu passé en argument ?", "query": "create file block", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lang": "fr", "candidates": [{"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "thor", "task": "Je cherche la méthode qui permet de générer un nouveau fichier à partir d'un bloc de code ou d'une chaîne de caractères. Peux-tu m'expliquer comment elle gère les options de configuration et le contenu passé en argument ?", "query": "create file block", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche la méthode qui permet de générer un nouveau fichier à partir d'un bloc de code ou d'une chaîne de caractères. Peux-tu m'expliquer comment elle gère les options de configuration et le contenu passé en argument ?", "query": "create file block", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/actions/create_file.rb lines=45-68\nread identical? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "identical?", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=98-121\nread WhinyGenerator for detail", "file": "spec/fixtures/group.thor", "symbol": "WhinyGenerator", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=102-125\nread invoke for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=9-32\nread option for detail", "file": "spec/parser/option_spec.rb", "symbol": "option", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=43-66\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=103-126\nread truncate for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "truncate", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=589-612\nread defined_in_gem? for detail", "file": "lib/thor.rb", "symbol": "defined_in_gem?", "line": 589, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=314-337\nread uncomment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "uncomment_lines", "line": 314, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=184-207\nread check_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type!", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=99-122\nread file_level_lookup for detail", "file": "lib/thor/actions/directory.rb", "symbol": "file_level_lookup", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=639-662\nread class_options_help for detail", "file": "lib/thor/base.rb", "symbol": "class_options_help", "line": 639, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=78-101\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=49-72\nread capture for detail", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "entferne führende bindestriche aus einem string", "query": "remove leading dashes", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lang": "de", "candidates": [{"text": "File: spec/fixtures/encoding_other.thor\nLine 17: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 3: def initialize", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 42: # If :exclude_pattern => /regexp/, prevents copying files that match that regexp.", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 32: first", "file": "spec/fixtures/group.thor", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 22: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 62: a[0] == :help ? -1 : a[0] <=> b[0]", "file": "spec/sort_spec.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 17: if (counter + word.length + 1) < width", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 22: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 47: it \"gets usage from rake tasks name\" do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 39: it \"has no malformed whitespace\" do", "file": "spec/quality_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 67: expect(command.run(dub, [1, 2, 3])).to eq([1, 2, 3])", "file": "spec/command_spec.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 220: argument :name, type: :string", "file": "spec/group_spec.rb", "symbol": "", "line": 220, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 6: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 165: end", "file": "lib/thor/util.rb", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 15: out = capture(:stdout) { shell.say \"Wow! Now we have colors *and* bold!\", [:green, :bold] }", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 164: def undasherize(str)", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/runner_spec.rb\nLine 115: expect(content.strip).to eq('ERROR: \"thor animal\" was called with no arguments", "file": "spec/runner_spec.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 6: print options[\"opt\"]", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 49: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 79: def shift", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 644: end", "file": "lib/thor/base.rb", "symbol": "", "line": 644, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 340: option :one", "file": "spec/fixtures/script.thor", "symbol": "", "line": 340, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "entferne führende bindestriche aus einem string", "query": "remove leading dashes", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lang": "de", "candidates": [{"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "entferne führende bindestriche aus einem string", "query": "remove leading dashes", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lang": "de", "candidates": [{"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=37-60\nread diff_lcs_loaded? for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=27-50\nread delete for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "delete", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=164-187\nread undasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/options.rb lines=65-88\nread peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=567-590\nread namespace for detail", "file": "lib/thor/base.rb", "symbol": "namespace", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=350-373\nread check_unknown_options! for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options!", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/argument_spec.rb lines=5-28\nread argument for detail", "file": "spec/parser/argument_spec.rb", "symbol": "argument", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=45-68\nread key? for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "key?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=105-128\nread wrong_arity for detail", "file": "spec/fixtures/group.thor", "symbol": "wrong_arity", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=59-82\nread foo for detail", "file": "spec/fixtures/script.thor", "symbol": "foo", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=3-26\nread Amazing for detail", "file": "spec/fixtures/command.thor", "symbol": "Amazing", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=639-662\nread class_options_help for detail", "file": "lib/thor/base.rb", "symbol": "class_options_help", "line": 639, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "¿Cómo se inicializa y configura la instancia de la acción de la CLI con sus parámetros?", "query": "Thor Command initialization", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lang": "es", "candidates": [{"text": "File: lib/thor/shell.rb\nLine 60: shell.#{method}(*args,&block)", "file": "lib/thor/shell.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 124: # Thor::Util.namespace_to_thor_class(\"foo:bar\") #=> Foo::Bar, nil # will invoke default command", "file": "lib/thor/util.rb", "symbol": "", "line": 124, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 48: when_no_thorfiles_exist do", "file": "spec/runner_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 54: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 21: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 33: desc \"invoker\", \"invoke a b command\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 51: # on Highline implementation and it automatically appends CLEAR to the end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 27: it \"accepts the help switch and calls the help command on the subcommand\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 75: end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 21: memo = \"#{memo}\\n#{word}\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 6: option \"--not_help\", :type => :boolean", "file": "spec/fixtures/help.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 20: BLACK = \"\\e[30m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 2: def thor_command(command)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nLine 98: let(:source) do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 51: it \"updates an already defined command\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 4: class EncodingWithUtf8 < Thor", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 24: validate! # Trigger specific validations", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 4: def command(options = {}, usage = \"can_has\")", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/script_exit_status_spec.rb\nLine 27: expect(thor_command(\"ok\")).to eq(0)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 3: class Amazing < Thor", "file": "spec/fixtures/command.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 40: required", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 277: expect($stdout).to receive(:print).with(\" create ~/.thor/command.thor\\n\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 277, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 336: return unless result", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 336, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 29: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "¿Cómo se inicializa y configura la instancia de la acción de la CLI con sus parámetros?", "query": "Thor Command initialization", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lang": "es", "candidates": [{"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nsibling in spec", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\ndefines command", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/rake_compat_spec.rb\nsibling in spec", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nsibling in spec", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nsibling in spec", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nsibling in spec", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "¿Cómo se inicializa y configura la instancia de la acción de la CLI con sus parámetros?", "query": "Thor Command initialization", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lang": "es", "candidates": [{"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "¿Cómo se inicializa y configura la instancia de la acción de la CLI con sus parámetros?", "query": "Thor Command initialization", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lang": "es", "candidates": [{"text": "Next: read lib/thor.rb lines=288-311\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=179-202\nread names_to_switch_names for detail", "file": "lib/thor/parser/options.rb", "symbol": "names_to_switch_names", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=194-217\nread print_wrapped for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_wrapped", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=24-47\nread remaining for detail", "file": "spec/parser/options_spec.rb", "symbol": "remaining", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/command_spec.rb lines=72-95\nread handle_no_command_error for detail", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=144-167\nread check_exclusive! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=263-286\nread create_command for detail", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=330-353\nread ask_simply for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_simply", "line": 330, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=210-233\nread Scripts for detail", "file": "spec/fixtures/script.thor", "symbol": "Scripts", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=9-32\nread error for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "error", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=311-334\nread MyOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyOptionScript", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=258-281\nread set_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "set_color", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=3-26\nread Amazing for detail", "file": "spec/fixtures/command.thor", "symbol": "Amazing", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=248-271\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=880-903\nread no_arg for detail", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=161-184\nread class_options_help for detail", "file": "lib/thor/group.rb", "symbol": "class_options_help", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=4-27\nread command for detail", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=110-133\nread G for detail", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=72-95\nread initialize for detail", "file": "lib/thor/actions.rb", "symbol": "initialize", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=153-176\nread what for detail", "file": "spec/fixtures/script.thor", "symbol": "what", "line": 153, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Investigate why the system thinks we are currently inside a block that prevents the definition of new executable actions.", "query": "no commands context", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lang": "en", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nLine 79: else", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 26: private", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 22: failing_lines = []", "file": "spec/quality_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 768: name = name.upcase if options[:loud]", "file": "spec/thor_spec.rb", "symbol": "", "line": 768, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 148: validate_enum_value!(name, value, \"Expected '%s' to be one of %s; got %s\")", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 541: def no_commands?", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/options_spec.rb\nLine 156: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 301: # Get classes which inherit from Thor::Base", "file": "lib/thor/runner.rb", "symbol": "", "line": 301, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 98: end", "file": "lib/thor/command.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 19: private", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 89: def default", "file": "spec/register_spec.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 12: else", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 248: \"more content\\n\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 7: options = {required: default.nil?, type: type, default: default}", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 160: method_options :force => :boolean, :param => :numeric", "file": "spec/fixtures/script.thor", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 18: ExitStatus.start(ARGV)", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 47: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 144: def check_exclusive!", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 74: def thor_classes_in(klass)", "file": "lib/thor/util.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 51: destination = args.first || source", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 33: it \"escapes HTML content when using the default colors\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 1: class Thor", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 14: capture(:stdout) { @action.invoke! }", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Investigate why the system thinks we are currently inside a block that prevents the definition of new executable actions.", "query": "no commands context", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lang": "en", "candidates": [{"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Investigate why the system thinks we are currently inside a block that prevents the definition of new executable actions.", "query": "no commands context", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Investigate why the system thinks we are currently inside a block that prevents the definition of new executable actions.", "query": "no commands context", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lang": "en", "candidates": [{"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=230-253\nread cow for detail", "file": "spec/fixtures/script.thor", "symbol": "cow", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=213-236\nread globs_for for detail", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=99-122\nread aliases_for_usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "aliases_for_usage", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/group_spec.rb lines=223-246\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=320-343\nread exclusive for detail", "file": "spec/fixtures/script.thor", "symbol": "exclusive", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=15-38\nread SubApp for detail", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=73-96\nread on_conflict_behavior for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "on_conflict_behavior", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=541-564\nread no_commands? for detail", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/tree_spec.rb lines=4-27\nread TreeApp for detail", "file": "spec/tree_spec.rb", "symbol": "TreeApp", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=371-394\nread capture for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "capture", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=48-71\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=98-121\nread WhinyGenerator for detail", "file": "spec/fixtures/group.thor", "symbol": "WhinyGenerator", "line": 98, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "busca os argumentos da classe verificando a cadeia de ancestrais", "query": "class arguments ancestors", "file": "lib/thor/base.rb", "symbol": "arguments", "line": 294, "lang": "pt", "candidates": [{"text": "File: spec/register_spec.rb\nLine 93: desc \"with_args\", \"subcommand with arguments\"", "file": "spec/register_spec.rb", "symbol": "", "line": 93, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 60: protected", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 25: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 391: expect(parse(\"\")[\"foo\"]).to eq(false)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 391, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 246: # end", "file": "lib/thor/actions.rb", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 14: it \"passes arguments to subcommand classes\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nLine 27: expect($stdout).to receive(:print).with(\" conflict README\\n\")", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 21: puts \"HIPER MEGA SUPER\"", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 1: #!/usr/bin/ruby", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 19: end.to raise_error(ArgumentError, \"Type :unknown is not valid for arguments.\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 1: require_relative \"basic\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 294: def arguments", "file": "lib/thor/base.rb", "symbol": "arguments", "line": 294, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/error.rb\nLine 26: attr_reader :error", "file": "lib/thor/error.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 46: it \"appends content to the file if before and after arguments not provided\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 62: action InjectIntoFile.new(self, destination, data, config)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 16: #", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 6: arguments = opts.map do |type, default|", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nLine 3: require \"bundler\"", "file": "Thorfile", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 72: #", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 33: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/subcommand1/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 19: #", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 50: # method that will invoke the klass and command. You can give a block to", "file": "lib/thor/group.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 72: it \"forwards arguments to the invoked command\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 72, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 55: )", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "busca os argumentos da classe verificando a cadeia de ancestrais", "query": "class arguments ancestors", "file": "lib/thor/base.rb", "symbol": "arguments", "line": 294, "lang": "pt", "candidates": [{"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "busca os argumentos da classe verificando a cadeia de ancestrais", "query": "class arguments ancestors", "file": "lib/thor/base.rb", "symbol": "arguments", "line": 294, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "busca os argumentos da classe verificando a cadeia de ancestrais", "query": "class arguments ancestors", "file": "lib/thor/base.rb", "symbol": "arguments", "line": 294, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=77-100\nread to_hash for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "to_hash", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=79-102\nread can_display_colors? for detail", "file": "lib/thor/shell/html.rb", "symbol": "can_display_colors?", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=91-114\nread required_options for detail", "file": "lib/thor/command.rb", "symbol": "required_options", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=72-95\nread shift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "shift", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=41-64\nread slice for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "slice", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=97-120\nread parse_hash for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_hash", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=9-32\nread HTML for detail", "file": "lib/thor/shell/html.rb", "symbol": "HTML", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=254-277\nread self_command for detail", "file": "lib/thor/group.rb", "symbol": "self_command", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=1-24\nread LCSDiff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "LCSDiff", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=14-37\nread print for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=100-123\nread force_on_collision? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_on_collision?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=160-183\nread dasherized? for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherized?", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=294-317\nread arguments for detail", "file": "lib/thor/base.rb", "symbol": "arguments", "line": 294, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/tree_spec.rb lines=15-38\nread SubApp for detail", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "O mecanismo de validação de obrigatoriedade para garantir que pelo menos uma opção de classe seja fornecida não está funcionando conforme o esperado quando múltiplas opções são definidas.", "query": "class option required", "file": "lib/thor/base.rb", "symbol": "class_at_least_one", "line": 393, "lang": "pt", "candidates": [{"text": "File: spec/actions/empty_directory_spec.rb\nLine 117: expect(@action.send(:convert_encoded_instructions, \"%private_file_name%.txt\")).to eq(\"expected.txt\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 504: it \"must not mix values with other switches\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 504, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 36: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 9: # it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 1: # encoding: UTF-8", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 25: # Set the terminal's foreground ANSI color to yellow.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 64: end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 3: class Subcommand < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 598: expect(File.binread(file)).to eq(\"module ApplicationHelper\\n def help; 'help'; end\\nend\\n\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 598, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 35: def identical?", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 294: class_at_least_one do", "file": "spec/fixtures/script.thor", "symbol": "", "line": 294, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 112: method_option :lazy, :lazy_default => \"yes\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 30: rakefile = File.basename(caller[0].match(/(.*):\\d+/)[1])", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 393: def class_at_least_one(*args, &block)", "file": "lib/thor/base.rb", "symbol": "class_at_least_one", "line": 393, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/html.rb\nLine 9: class HTML < Basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 80: # :on_blue", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 143: expect(klass.stop_on_unknown_option?(double(name: \"foo\"))).to be true", "file": "spec/thor_spec.rb", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 19: source = args.first", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 104: describe \"#class_at_least_one\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 104, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 307: #", "file": "lib/thor/actions.rb", "symbol": "", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 11: puts \"ok\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 48: #", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "O mecanismo de validação de obrigatoriedade para garantir que pelo menos uma opção de classe seja fornecida não está funcionando conforme o esperado quando múltiplas opções são definidas.", "query": "class option required", "file": "lib/thor/base.rb", "symbol": "class_at_least_one", "line": 393, "lang": "pt", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "thor", "task": "O mecanismo de validação de obrigatoriedade para garantir que pelo menos uma opção de classe seja fornecida não está funcionando conforme o esperado quando múltiplas opções são definidas.", "query": "class option required", "file": "lib/thor/base.rb", "symbol": "class_at_least_one", "line": 393, "lang": "pt", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "O mecanismo de validação de obrigatoriedade para garantir que pelo menos uma opção de classe seja fornecida não está funcionando conforme o esperado quando múltiplas opções são definidas.", "query": "class option required", "file": "lib/thor/base.rb", "symbol": "class_at_least_one", "line": 393, "lang": "pt", "candidates": [{"text": "Next: read spec/thor_spec.rb lines=827-850\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 827, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=191-214\nread open for detail", "file": "spec/fixtures/script.thor", "symbol": "open", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=200-223\nread in_root for detail", "file": "lib/thor/actions.rb", "symbol": "in_root", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=194-217\nread thor_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "thor_yaml", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoker", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=117-140\nread template for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=398-421\nread CapturableERB for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "CapturableERB", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=59-82\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=393-416\nread class_at_least_one for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one", "line": 393, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/create_link.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=20-43\nread RakeCompat for detail", "file": "lib/thor/rake_compat.rb", "symbol": "RakeCompat", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=122-145\nread invoke_command for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_command", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=2-25\nread Argument for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "我想了解一下这个工具库是怎么处理命令调用的逻辑的。能不能帮我看看在初始化的时候,它是如何通过配置项来追踪调用链并记录相关参数的?", "query": "invocation initialization", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/encoding_implicit.thor\nLine 14: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 1: class Thor", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 27: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 6: class Default < Thor", "file": "Thorfile", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nLine 3: describe Thor::Actions do", "file": "spec/actions_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nLine 3: class Subcommand < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 88: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 68: def absolute_matches", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 4: class EncodingOther < Thor", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 9: # ==== Examples", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 37: # Stores invocations for this class merging with superclass values.", "file": "lib/thor/group.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 28: class ThorTask < Thor", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nLine 9: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 155: expect(fireworks_output).to eq(\"kaboom!\\n\")", "file": "spec/register_spec.rb", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 4: describe Thor::Argument do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 4: describe Thor::Runner do", "file": "spec/runner_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 168: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 197: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 197, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 38: end", "file": "lib/thor/command.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 634: expect(File.binread(file)).to match(/__start__\\n greenblue\\n#\\n# yellowblue\\nyellowred\\n greenred\\norange\\n purple\\n ind#igo\\n # ind#igo\\n # spaces_between\\n__end__/)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 634, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 1: describe \"when the Thor class's exit_with_failure? method returns true\" do", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 9: describe Thor::Util do", "file": "spec/util_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 12: output_diff_line(diff)", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "我想了解一下这个工具库是怎么处理命令调用的逻辑的。能不能帮我看看在初始化的时候,它是如何通过配置项来追踪调用链并记录相关参数的?", "query": "invocation initialization", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lang": "zh", "candidates": [{"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "我想了解一下这个工具库是怎么处理命令调用的逻辑的。能不能帮我看看在初始化的时候,它是如何通过配置项来追踪调用链并记录相关参数的?", "query": "invocation initialization", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lang": "zh", "candidates": [{"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=131-154\nread validate_default_type! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate_default_type!", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=93-116\nread method_missing for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "method_missing", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=213-236\nread globs_for for detail", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=104-127\nread can_display_colors? for detail", "file": "lib/thor/shell/color.rb", "symbol": "can_display_colors?", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=138-161\nread potentially_ambiguous_but_hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous_but_hidden", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=246-269\nread method_at_least_one for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=194-217\nread print_wrapped for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_wrapped", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=126-149\nread validate! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate!", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/option.rb lines=107-130\nread show_default? for detail", "file": "lib/thor/parser/option.rb", "symbol": "show_default?", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=128-151\nread send for detail", "file": "spec/fixtures/script.thor", "symbol": "send", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=92-115\nread long_description for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=68-91\nread ClearCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "ClearCounter", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=142-165\nread update for detail", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "The helper responsible for providing an entity instance is printing the input identity to the standard output instead of returning a value.", "query": "print options who", "file": "spec/register_spec.rb", "symbol": "animal", "line": 52, "lang": "en", "candidates": [{"text": "File: spec/register_spec.rb\nLine 52: def animal", "file": "spec/register_spec.rb", "symbol": "animal", "line": 52, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/terminal.rb\nLine 15: result < 10 ? DEFAULT_TERMINAL_WIDTH : result", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 85: end", "file": "spec/base_spec.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 23: def four", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 28: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub print_opt --help)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 54: it \"accepts arrays\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 611: # +normalize_command_name+ also converts names like +animal-prison+", "file": "lib/thor.rb", "symbol": "", "line": 611, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nLine 164: def undasherize(str)", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 1: require \"helper\"", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 5: true", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 19: map \"-T\" => :animal, [\"-f\", \"--foo\"] => :foo", "file": "spec/fixtures/script.thor", "symbol": "", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 52: _, options = MyChildScript.start(%w(animal horse --other=fish))", "file": "spec/thor_spec.rb", "symbol": "", "line": 52, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 26: if options[:borders] && row == BORDER_SEPARATOR", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 50: expect(MyScript.commands.keys).to include(\"animal\")", "file": "spec/base_spec.rb", "symbol": "", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 104: when EQ_RE", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 210: expect(content).to match(/Possible values\\: apple, banana/)", "file": "spec/base_spec.rb", "symbol": "", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 144: @content ||= File.read(destination)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 23: File.readlines(filename).each_with_index do |line, number|", "file": "spec/quality_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 70: # :green", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 472: context \"and no force option\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 472, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 119: end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 218: # Return the path to the ruby interpreter taking into account multiple", "file": "lib/thor/util.rb", "symbol": "", "line": 218, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 73: ARGV.replace %w(my_script:animal horse)", "file": "spec/runner_spec.rb", "symbol": "", "line": 73, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 35: # Check if Diff::LCS is loaded. If it is, use it to create pretty output", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "The helper responsible for providing an entity instance is printing the input identity to the standard output instead of returning a value.", "query": "print options who", "file": "spec/register_spec.rb", "symbol": "animal", "line": 52, "lang": "en", "candidates": [{"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nsibling in spec", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nsibling in spec", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\ndefines animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nsibling in spec", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "The helper responsible for providing an entity instance is printing the input identity to the standard output instead of returning a value.", "query": "print options who", "file": "spec/register_spec.rb", "symbol": "animal", "line": 52, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "The helper responsible for providing an entity instance is printing the input identity to the standard output instead of returning a value.", "query": "print options who", "file": "spec/register_spec.rb", "symbol": "animal", "line": 52, "lang": "en", "candidates": [{"text": "Next: read spec/fixtures/encoding_other.thor lines=4-27\nread EncodingOther for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "EncodingOther", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=186-209\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=321-344\nread show_modules for detail", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=368-391\nread merge for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge", "line": 368, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=221-244\nread MyDefaults for detail", "file": "spec/fixtures/script.thor", "symbol": "MyDefaults", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=49-72\nread values_at for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "values_at", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/version.rb lines=1-24\nread Thor for detail", "file": "lib/thor/version.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=41-64\nread slice for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "slice", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=52-75\nread animal for detail", "file": "spec/register_spec.rb", "symbol": "animal", "line": 52, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/invoke.thor lines=39-62\nread B for detail", "file": "spec/fixtures/invoke.thor", "symbol": "B", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/argument_spec.rb lines=5-28\nread argument for detail", "file": "spec/parser/argument_spec.rb", "symbol": "argument", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I need to set up a convenience command that runs the RSpec test suite using bundler to ensure the correct dependencies are used. Please create a thor action that executes the RSpec specs.", "query": "run rspec tests", "file": "Thorfile", "symbol": "spec", "line": 26, "lang": "en", "candidates": [{"text": "File: spec/rake_compat_spec.rb\nLine 26: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 8: def encoding", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 9: @stdout = stdout", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 40: exempt = /\\.gitmodules|\\.marshal|fixtures|vendor|spec|ssl_certs|LICENSE|.devcontainer/", "file": "spec/quality_spec.rb", "symbol": "", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 14: # RSpec::Core::RakeTask.new(:spec) do |t|", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nLine 26: def spec", "file": "Thorfile", "symbol": "spec", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 11: paras.map! do |unwrapped|", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 221: output = capture(:stdout) { shell.file_collision(\"spec/fixtures/doc/README\") { \"README\\nEND\\n\" } }", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 221, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 6: attr_reader :stdout, :options", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 20: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 65: new_klass = klass.const_get(const_name)", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 15: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 152: let(:spec_dir) { File.join(@temp_dir, \"spec\") }", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 152, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 42: #", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 22: counter = word.length", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 16: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 62: it \"copies file from the source relative to the current path\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 162: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 5: script_path= \"#{gem_dir}/spec/fixtures/exit_status.thor\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nLine 9: add_filter \"/spec\"", "file": "spec/helper.rb", "symbol": "", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 4: class Thor", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 16: colwidth = (array.map { |el| el.to_s.size }.max || 0) + 2", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 16: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I need to set up a convenience command that runs the RSpec test suite using bundler to ensure the correct dependencies are used. Please create a thor action that executes the RSpec specs.", "query": "run rspec tests", "file": "Thorfile", "symbol": "spec", "line": 26, "lang": "en", "candidates": [{"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\ndefines spec", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "I need to set up a convenience command that runs the RSpec test suite using bundler to ensure the correct dependencies are used. Please create a thor action that executes the RSpec specs.", "query": "run rspec tests", "file": "Thorfile", "symbol": "spec", "line": 26, "lang": "en", "candidates": [{"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I need to set up a convenience command that runs the RSpec test suite using bundler to ensure the correct dependencies are used. Please create a thor action that executes the RSpec specs.", "query": "run rspec tests", "file": "Thorfile", "symbol": "spec", "line": 26, "lang": "en", "candidates": [{"text": "Next: read lib/thor/actions.rb lines=133-156\nread find_in_source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "find_in_source_paths", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=104-127\nread local_method? for detail", "file": "lib/thor/command.rb", "symbol": "local_method?", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=16-39\nread install for detail", "file": "Thorfile", "symbol": "install", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=153-176\nread load_thorfile for detail", "file": "lib/thor/util.rb", "symbol": "load_thorfile", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=21-44\nread release for detail", "file": "Thorfile", "symbol": "release", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=30-53\nread current_command_chain for detail", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=11-34\nread build for detail", "file": "Thorfile", "symbol": "build", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Thorfile lines=6-29\nread Default for detail", "file": "Thorfile", "symbol": "Default", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell.rb lines=44-67\nread initialize for detail", "file": "lib/thor/shell.rb", "symbol": "initialize", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=129-152\nread subclasses for detail", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=248-271\nread run for detail", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=249-272\nread banner for detail", "file": "lib/thor/group.rb", "symbol": "banner", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=26-49\nread spec for detail", "file": "Thorfile", "symbol": "spec", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/group.rb lines=161-184\nread class_options_help for detail", "file": "lib/thor/group.rb", "symbol": "class_options_help", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=313-336\nread show_diff for detail", "file": "lib/thor/shell/basic.rb", "symbol": "show_diff", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=73-96\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=247-270\nread Arities for detail", "file": "spec/fixtures/script.thor", "symbol": "Arities", "line": 247, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=210-233\nread Scripts for detail", "file": "spec/fixtures/script.thor", "symbol": "Scripts", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=24-47\nread UndefinedCommandError for detail", "file": "lib/thor/error.rb", "symbol": "UndefinedCommandError", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Pourquoi cette méthode retourne-t-elle toujours faux et lance-t-elle un avertissement de dépréciation ?", "query": "exit on failure", "file": "lib/thor/base.rb", "symbol": "exit_on_failure?", "line": 629, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/exit_status.thor\nLine 14: def ok", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 72: expect(Thor::Util.snake_case(\"FOO\")).to eq(\"foo\")", "file": "spec/util_spec.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 94: foreground, bold = colors", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 629: def exit_on_failure?", "file": "lib/thor/base.rb", "symbol": "exit_on_failure?", "line": 629, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/basic_spec.rb\nLine 228: expect(shell.base).to receive(:options).and_return(quiet: true)", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 31: def dynamic_width_stty", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 69: def revoke!", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 2: # frozen_string_literal: true", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 556: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 556, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 17: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 140: return source_file if File.exist?(source_file)", "file": "lib/thor/actions.rb", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 11: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 117: expect(@action.send(:convert_encoded_instructions, \"%private_file_name%.txt\")).to eq(\"expected.txt\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 66: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 2: def thor_command(command)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 24: expect(output).to eq(\"output\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 36: capture(:stdout) { action.revoke! }", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 375: expect(File.read(file)).to eq(\"__start__\\nREADME\\n__end__\\nanother stuff\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 375, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 41: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 24: $stdin.gets", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 9: method_options :forcefully => :boolean", "file": "spec/fixtures/command.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 64: @content = capture(:stdout) { MyCounter.help(Thor::Base.shell.new) }", "file": "spec/group_spec.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 15: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Pourquoi cette méthode retourne-t-elle toujours faux et lance-t-elle un avertissement de dépréciation ?", "query": "exit on failure", "file": "lib/thor/base.rb", "symbol": "exit_on_failure?", "line": 629, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Pourquoi cette méthode retourne-t-elle toujours faux et lance-t-elle un avertissement de dépréciation ?", "query": "exit on failure", "file": "lib/thor/base.rb", "symbol": "exit_on_failure?", "line": 629, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Pourquoi cette méthode retourne-t-elle toujours faux et lance-t-elle un avertissement de dépréciation ?", "query": "exit on failure", "file": "lib/thor/base.rb", "symbol": "exit_on_failure?", "line": 629, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/base.rb lines=629-652\nread exit_on_failure? for detail", "file": "lib/thor/base.rb", "symbol": "exit_on_failure?", "line": 629, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=10-33\nread initialize for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "initialize", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=228-251\nread dispatch for detail", "file": "lib/thor/group.rb", "symbol": "dispatch", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=111-134\nread group for detail", "file": "spec/fixtures/group.thor", "symbol": "group", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=30-53\nread current_command_chain for detail", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=7-30\nread RakeTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "RakeTask", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=68-91\nread reverse_merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=230-253\nread cow for detail", "file": "spec/fixtures/script.thor", "symbol": "cow", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=253-276\nread thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=221-244\nread command_exists? for detail", "file": "lib/thor/group.rb", "symbol": "command_exists?", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=3-26\nread EncodingImplicit for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "EncodingImplicit", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=199-222\nread printable_commands for detail", "file": "lib/thor/group.rb", "symbol": "printable_commands", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=72-95\nread handle_no_command_error for detail", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=55-78\nread Parent for detail", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "find the group that prints sequential integers when invoked", "query": "thor group print", "file": "spec/fixtures/invoke.thor", "symbol": "C", "line": 64, "lang": "en", "candidates": [{"text": "File: lib/thor/util.rb\nLine 182: \"C:/\"", "file": "lib/thor/util.rb", "symbol": "", "line": 182, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nLine 64: class C < Thor::Group", "file": "spec/fixtures/invoke.thor", "symbol": "C", "line": 64, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/help.thor\nLine 13: Help.start(ARGV)", "file": "spec/fixtures/help.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 41: ON_GREEN = \"\\e[42m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 82: expect(command.run(klass.new)).to eq(\"can_has\")", "file": "spec/command_spec.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 13: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 20: task :super do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 156: expect(Thor::Util.user_home).to eq(\"C:/\")", "file": "spec/util_spec.rb", "symbol": "", "line": 156, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 18: memo = \"#{memo} #{word}\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 130: end", "file": "spec/group_spec.rb", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 102: buffer << \"\\n\" if force_new_line && !message.to_s.end_with?(\"\\n\")", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 80: end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 249: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 64: it \"runs a command by calling a method in the given instance\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 48: options[:simple]", "file": "spec/fixtures/group.thor", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 28: def initialize(error)", "file": "lib/thor/error.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 82: color = args.first", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 357: create \"--baz\" => :string, \"--foo\" => \"bar\"", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 357, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 66: expect(File.exist?(file)).to be false", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 97: it \"shows skipped status to the user if skip is given\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 75: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 28: end", "file": "Thorfile", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 16: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find the group that prints sequential integers when invoked", "query": "thor group print", "file": "spec/fixtures/invoke.thor", "symbol": "C", "line": 64, "lang": "en", "candidates": [{"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\ndefines C", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find the group that prints sequential integers when invoked", "query": "thor group print", "file": "spec/fixtures/invoke.thor", "symbol": "C", "line": 64, "lang": "en", "candidates": [{"text": "Next: read lib/thor/line_editor/readline.rb lines=82-105\nread base_path for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "base_path", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=130-153\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=360-383\nread answer_match for detail", "file": "lib/thor/shell/basic.rb", "symbol": "answer_match", "line": 360, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=77-100\nread _shared_configuration for detail", "file": "lib/thor/shell.rb", "symbol": "_shared_configuration", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=78-101\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=72-95\nread handle_no_command_error for detail", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=482-505\nread print_exclusive_options for detail", "file": "lib/thor.rb", "symbol": "print_exclusive_options", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=307-330\nread mix for detail", "file": "spec/fixtures/script.thor", "symbol": "mix", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=39-62\nread three for detail", "file": "spec/fixtures/group.thor", "symbol": "three", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoker", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=30-53\nread current_command_chain for detail", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=213-236\nread globs_for for detail", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=6-29\nread snack for detail", "file": "spec/fixtures/enum.thor", "symbol": "snack", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=64-87\nread C for detail", "file": "spec/fixtures/invoke.thor", "symbol": "C", "line": 64, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/error.rb lines=65-88\nread UnknownArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=347-370\nread ask_filtered for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_filtered", "line": 347, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/base_spec.rb lines=4-27\nread Amazing for detail", "file": "spec/base_spec.rb", "symbol": "Amazing", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "How do I prevent multiple flags from being used at once in a command?", "query": "exclusive option error", "file": "lib/thor.rb", "symbol": "method_exclusive", "line": 203, "lang": "en", "candidates": [{"text": "File: lib/thor/parser/argument.rb\nLine 65: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 24: if private_method?(instance)", "file": "lib/thor/command.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 27: data = block_given? ? block : args.shift", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 3: class ExitStatus < Thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 40: def invoke!", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 15: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 106: expect(action.identical?).to be true", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 437: describe \"#method_exclusive\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 437, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 14: base.extend ClassMethods", "file": "lib/thor/actions.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 17: argument :second, :type => :numeric, :default => 2", "file": "spec/fixtures/group.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 78: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 14: it \"sets bold if specified\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 15: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 208: msg = \"#{basename} #{command.name} takes #{arity} argument\".dup", "file": "lib/thor/group.rb", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 210: stdout = capture(:stdout) { Thor::Runner.start(%w(installed)) }", "file": "spec/runner_spec.rb", "symbol": "", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 203: def method_exclusive(*args, &block)", "file": "lib/thor.rb", "symbol": "method_exclusive", "line": 203, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 21: else", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 57: desc \"z\", \"Last Command\"", "file": "spec/sort_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 193: @destination_stack.pop", "file": "lib/thor/actions.rb", "symbol": "", "line": 193, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 531: context \"when the user enters an ambiguous substring of a command\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 531, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 26: super", "file": "lib/thor/invocation.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 130: it \"logs status\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 21: def output_diff_line(diff) #:nodoc:", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "How do I prevent multiple flags from being used at once in a command?", "query": "exclusive option error", "file": "lib/thor.rb", "symbol": "method_exclusive", "line": 203, "lang": "en", "candidates": [{"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "How do I prevent multiple flags from being used at once in a command?", "query": "exclusive option error", "file": "lib/thor.rb", "symbol": "method_exclusive", "line": 203, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "How do I prevent multiple flags from being used at once in a command?", "query": "exclusive option error", "file": "lib/thor.rb", "symbol": "method_exclusive", "line": 203, "lang": "en", "candidates": [{"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=221-244\nread command_exists? for detail", "file": "lib/thor/group.rb", "symbol": "command_exists?", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=109-132\nread sans_backtrace for detail", "file": "lib/thor/command.rb", "symbol": "sans_backtrace", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=6-29\nread Thor for detail", "file": "lib/thor/shell/color.rb", "symbol": "Thor", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=399-422\nread set_eoutvar for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "set_eoutvar", "line": 399, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=9-32\nread terminal_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "terminal_width", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=99-122\nread file_level_lookup for detail", "file": "lib/thor/actions/directory.rb", "symbol": "file_level_lookup", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=248-271\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=48-71\nread add_runtime_options! for detail", "file": "lib/thor/actions.rb", "symbol": "add_runtime_options!", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=203-226\nread method_exclusive for detail", "file": "lib/thor.rb", "symbol": "method_exclusive", "line": 203, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/actions/create_file_spec.rb lines=17-40\nread invoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoker", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=6-29\nread WrappedPrinter for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "WrappedPrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=104-127\nread local_method? for detail", "file": "lib/thor/command.rb", "symbol": "local_method?", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=291-314\nread gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=123-146\nread say_status for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "say_status", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=10-33\nread create_file for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Thor의 현재 버전을 콘솔에 출력하는 메서드를 찾아줘.", "query": "thor version output", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lang": "ko", "candidates": [{"text": "File: spec/shell_spec.rb\nLine 8: describe \"#initialize\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 16: @depth.positive?", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 17: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 49: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 7: best_available.new(prompt, options).readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 21: content = capture(:stdout) { Thor::Runner.start(%w(help list)) }", "file": "spec/runner_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 13: end", "file": "Thorfile", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 32: def corrections", "file": "lib/thor/error.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 7: options = {required: default.nil?, type: type, default: default}", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 84: content = if @behavior == :after", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 14: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 37: expect(runner.options.force).to be true", "file": "spec/actions_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 6: def self.readline(prompt, options = {})", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 39: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 35: expect(%w(rake_compat_spec.rb Thorfile)).to include(Rake.application.rakefile)", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 22: it \"a command that raises a Thor::Error exits with a status of 1\" do", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 26: @depth -= 1", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 24: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 90: It even has two paragraphs.", "file": "spec/fixtures/script.thor", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 16: counter = 0 if word.include? \"\\n\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 123: def version", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/command_spec.rb\nLine 20: expect(command(bar: :required).formatted_usage(object, false, true)).to eq(\"foo can_has --bar=BAR\")", "file": "spec/command_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 38: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/Another top level command/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Thor의 현재 버전을 콘솔에 출력하는 메서드를 찾아줘.", "query": "thor version output", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Thor의 현재 버전을 콘솔에 출력하는 메서드를 찾아줘.", "query": "thor version output", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> group", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> ../thor", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> open-uri", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Thor의 현재 버전을 콘솔에 출력하는 메서드를 찾아줘.", "query": "thor version output", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/parser/option.rb lines=126-149\nread validate! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate!", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=4-27\nread EncodingWithUtf8 for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=76-99\nread call_myself_with_wrong_arity for detail", "file": "spec/fixtures/script.thor", "symbol": "call_myself_with_wrong_arity", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=153-176\nread replace! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replace!", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=123-146\nread version for detail", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/terminal.rb lines=20-43\nread unix? for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "unix?", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=45-68\nread invocation_blocks for detail", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/color_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/color_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=58-81\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=228-251\nread dispatch for detail", "file": "lib/thor/group.rb", "symbol": "dispatch", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=126-149\nread on_file_clash_behavior for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_file_clash_behavior", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=294-317\nread arguments for detail", "file": "lib/thor/base.rb", "symbol": "arguments", "line": 294, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=165-188\nread print_in_columns for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_in_columns", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=17-40\nread Util for detail", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=243-266\nread ChildDefault for detail", "file": "spec/fixtures/script.thor", "symbol": "ChildDefault", "line": 243, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "테스트 설정 시 기본 thor 서브클래스를 임시로 제거했다가 다시 복구하는 메서드 찾기", "query": "thor subclasses cleanup", "file": "spec/runner_spec.rb", "symbol": "when_no_thorfiles_exist", "line": 5, "lang": "ko", "candidates": [{"text": "File: lib/thor/error.rb\nLine 39: end", "file": "lib/thor/error.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 203: expect(Thor::Util.escape_globs(\"apps?\")).to eq('apps\\\\?')", "file": "spec/util_spec.rb", "symbol": "", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 352: expect(content).to eq(<<-TABLE)", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 352, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 17: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 228: # option :one", "file": "lib/thor.rb", "symbol": "", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 36: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 13: it \"sets arguments array\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 61: def namespace(name)", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 47: ON_MAGENTA = \"\\e[45m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 33: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 6: failing_lines << number + 1 if line =~ /^ *(describe|it|context) {1}'{1}/", "file": "spec/quality_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 526: opts = nil", "file": "lib/thor.rb", "symbol": "", "line": 526, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 40: expect(parse(\"product\", \"title\", \"age\")[\"array\"]).to eq(%w(title age))", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 5: def when_no_thorfiles_exist", "file": "spec/runner_spec.rb", "symbol": "when_no_thorfiles_exist", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/terminal.rb\nLine 6: class << self", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 29: ENV[\"THOR_SHELL\"] = \"TestShell\"", "file": "spec/shell_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 216: expect(Scripts::MyScript.namespace).to eq(\"scripts:my_script\")", "file": "spec/base_spec.rb", "symbol": "", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 5: class_option \"fruit\", :aliases => \"-f\", :type => :string, :enum => %w(apple banana)", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 5: desc :bugs, \"ALL THE BUGZ!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 102: invoke! \"doc/README\", before: /(__end__)/ do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 10: class Parent < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 73: it \"shows exist status\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 55: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "테스트 설정 시 기본 thor 서브클래스를 임시로 제거했다가 다시 복구하는 메서드 찾기", "query": "thor subclasses cleanup", "file": "spec/runner_spec.rb", "symbol": "when_no_thorfiles_exist", "line": 5, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nsibling in spec", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nsibling in spec", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nsibling in spec", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\ndefines when_no_thorfiles_exist", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nsibling in spec", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "테스트 설정 시 기본 thor 서브클래스를 임시로 제거했다가 다시 복구하는 메서드 찾기", "query": "thor subclasses cleanup", "file": "spec/runner_spec.rb", "symbol": "when_no_thorfiles_exist", "line": 5, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "테스트 설정 시 기본 thor 서브클래스를 임시로 제거했다가 다시 복구하는 메서드 찾기", "query": "thor subclasses cleanup", "file": "spec/runner_spec.rb", "symbol": "when_no_thorfiles_exist", "line": 5, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/actions/file_manipulation.rb lines=399-422\nread set_eoutvar for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "set_eoutvar", "line": 399, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=600-623\nread retrieve_command_name for detail", "file": "lib/thor.rb", "symbol": "retrieve_command_name", "line": 600, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=403-426\nread class_exclusive_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=174-197\nread normalize_aliases for detail", "file": "lib/thor/parser/option.rb", "symbol": "normalize_aliases", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=170-193\nread prepend_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "prepend_to_file", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=180-203\nread print_table for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_table", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=73-96\nread ask for detail", "file": "lib/thor/shell/html.rb", "symbol": "ask", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=309-332\nread printable_commands for detail", "file": "lib/thor.rb", "symbol": "printable_commands", "line": 309, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=54-77\nread set_color for detail", "file": "lib/thor/shell/html.rb", "symbol": "set_color", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=225-248\nread initialize_thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "initialize_thorfiles", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=634-657\nread find_command_possibilities for detail", "file": "lib/thor.rb", "symbol": "find_command_possibilities", "line": 634, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=37-60\nread diff_lcs_loaded? for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=48-71\nread Child1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "Child1", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=104-127\nread F for detail", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/runner_spec.rb lines=5-28\nread when_no_thorfiles_exist for detail", "file": "spec/runner_spec.rb", "symbol": "when_no_thorfiles_exist", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=9-32\nread error for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "error", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=657-680\nread print_options for detail", "file": "lib/thor/base.rb", "symbol": "print_options", "line": 657, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "在命令行工具中,当一个命令定义了必需的字符串参数,但执行时未提供该参数时,程序应该报错并给出明确提示,而不是在调用内部方法时抛出未定义的错误。", "query": "thor arguments validation", "file": "spec/fixtures/script.thor", "symbol": "Scripts", "line": 210, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 89: it \"doesn't remove the root path from the absolute path if it is not at the beginning\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 17: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 93: # break old APIs unnecessarily :P", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 269: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 65: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 16: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 547: # Scripts::MyScript, the help method, for example, will be called as:", "file": "lib/thor/base.rb", "symbol": "", "line": 547, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 70: end", "file": "lib/thor/util.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 170: stop_on_unknown_option! :exec", "file": "spec/thor_spec.rb", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 349: end", "file": "spec/base_spec.rb", "symbol": "", "line": 349, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 59: options = Scripts::MyScript.start(args)", "file": "spec/thor_spec.rb", "symbol": "", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 24: $stdin.gets", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 59: expect(Scripts::MyScript.start(%w(zoo my_special_param --param=normal_param))).to eq(\"my_special_param\")", "file": "spec/base_spec.rb", "symbol": "", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nLine 55: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 196: printer.print(message)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 23: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 6: barn_help = capture(:stdout) { Scripts::MyDefaults.start(%w(barn)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 12: expect(Thor::Util.find_by_namespace(\"\")).to eq(Scripts::MyDefaults)", "file": "spec/util_spec.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 5: SOME_STRING = \"Some ������\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 210: module Scripts", "file": "spec/fixtures/script.thor", "symbol": "Scripts", "line": 210, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/invoke.thor\nLine 34: def invoker(*args)", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 350: expect { action :run, \"false\" }.to raise_error(SystemExit)", "file": "spec/actions_spec.rb", "symbol": "", "line": 350, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "在命令行工具中,当一个命令定义了必需的字符串参数,但执行时未提供该参数时,程序应该报错并给出明确提示,而不是在调用内部方法时抛出未定义的错误。", "query": "thor arguments validation", "file": "spec/fixtures/script.thor", "symbol": "Scripts", "line": 210, "lang": "zh", "candidates": [{"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines Scripts", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "在命令行工具中,当一个命令定义了必需的字符串参数,但执行时未提供该参数时,程序应该报错并给出明确提示,而不是在调用内部方法时抛出未定义的错误。", "query": "thor arguments validation", "file": "spec/fixtures/script.thor", "symbol": "Scripts", "line": 210, "lang": "zh", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=138-161\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=329-352\nread class_option for detail", "file": "lib/thor/base.rb", "symbol": "class_option", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_link_spec.rb lines=31-54\nread invoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "invoke!", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=53-76\nread remaining for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "remaining", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=21-44\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=313-336\nread show_diff for detail", "file": "lib/thor/shell/basic.rb", "symbol": "show_diff", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=107-130\nread show_default? for detail", "file": "lib/thor/parser/option.rb", "symbol": "show_default?", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=210-233\nread Scripts for detail", "file": "spec/fixtures/script.thor", "symbol": "Scripts", "line": 210, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/terminal.rb lines=31-54\nread dynamic_width_stty for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_stty", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=174-197\nread normalize_aliases for detail", "file": "lib/thor/parser/option.rb", "symbol": "normalize_aliases", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=9-32\nread terminal_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "terminal_width", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=72-95\nread initialize for detail", "file": "lib/thor/actions.rb", "symbol": "initialize", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=194-217\nread thor_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "thor_yaml", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=27-50\nread revoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=483-506\nread all_commands for detail", "file": "lib/thor/base.rb", "symbol": "all_commands", "line": 483, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=322-345\nread quiet? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Estou tentando entender a ordem de execução das tarefas de automação. Onde está o método que imprime o número dois e chama a próxima etapa na sequência?", "query": "p 2 invoke", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lang": "pt", "candidates": [{"text": "File: spec/parser/argument_spec.rb\nLine 5: def argument(name, options = {})", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 12: def two", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/register_spec.rb\nLine 37: desc \"part two\"", "file": "spec/register_spec.rb", "symbol": "", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nLine 68: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 51: stream = stream.to_s", "file": "spec/helper.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 120: expect(File.read(file)).to eq(\"__start__\\nREADME\\nmore content\\n__end__\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 107: # invoked. The block receives two parameters, an instance of the current", "file": "lib/thor/group.rb", "symbol": "", "line": 107, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 84: # returns true, force it, otherwise skip.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 29: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 442: expect(exclusives.first).to eq(%w[one two three])", "file": "spec/thor_spec.rb", "symbol": "", "line": 442, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 191: # option :two", "file": "lib/thor.rb", "symbol": "", "line": 191, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 38: # It receives arguments in an Array and two hashes, one for options and", "file": "lib/thor/base.rb", "symbol": "", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nLine 71: type: :numeric,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 334: expect { action :run, \"true\", abort_on_failure: true, capture: true }.not_to raise_error", "file": "spec/actions_spec.rb", "symbol": "", "line": 334, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 144: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 37: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 5: script_path= \"#{gem_dir}/spec/fixtures/exit_status.thor\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 16: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 29: para.split(\"\\n\").each do |line|", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 346: # Extend check unknown options to accept a hash of conditions.", "file": "lib/thor.rb", "symbol": "", "line": 346, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 23: end", "file": "Thorfile", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 28: This generator runs three commands: one, two and three.", "file": "spec/fixtures/group.thor", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nLine 6: arguments = opts.map do |type, default|", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estou tentando entender a ordem de execução das tarefas de automação. Onde está o método que imprime o número dois e chama a próxima etapa na sequência?", "query": "p 2 invoke", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lang": "pt", "candidates": [{"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\ndefines two", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estou tentando entender a ordem de execução das tarefas de automação. Onde está o método que imprime o número dois e chama a próxima etapa na sequência?", "query": "p 2 invoke", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lang": "pt", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=619-642\nread handle_argument_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_argument_error", "line": 619, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=147-170\nread replacement_present? for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=308-331\nread thor for detail", "file": "lib/thor/actions.rb", "symbol": "thor", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=89-112\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell.rb lines=44-67\nread initialize for detail", "file": "lib/thor/shell.rb", "symbol": "initialize", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_link_spec.rb lines=31-54\nread invoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "invoke!", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=263-286\nread create_command for detail", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=216-239\nread apply for detail", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=234-257\nread switch_option for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch_option", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=265-288\nread optional_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "optional_arg", "line": 265, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=59-82\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=29-52\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=27-50\nread revoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=288-311\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=89-112\nread parse for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse", "line": 89, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Como verificar se um método é definido localmente na instância, sem considerar os herdados?", "query": "local method check instance", "file": "lib/thor/command.rb", "symbol": "local_method?", "line": 104, "lang": "pt", "candidates": [{"text": "File: lib/thor/runner.rb\nLine 14: def self.exit_on_failure?", "file": "lib/thor/runner.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 5: require 'thor'", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 45: ON_CYAN = \"background-color: cyan\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 16: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 191: expect(capture(:stdout) do", "file": "spec/actions_spec.rb", "symbol": "", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 17: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 135: allow(File).to receive(:exist?).with(root_file).and_return(true)", "file": "spec/runner_spec.rb", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 1: #!/usr/bin/ruby", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 20: stdout.puts value", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 1: require \"rbconfig\"", "file": "lib/thor/shell.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 314: #", "file": "lib/thor/base.rb", "symbol": "", "line": 314, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 56: create string: nil, numeric: nil", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 16: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 34: it \"when behavior is set to force, overwrite options\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 56: `git ls-files`.split(\"\\n\").each do |filename|", "file": "spec/quality_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 4: lib_path= \"#{gem_dir}/lib\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 104: def local_method?(instance, name)", "file": "lib/thor/command.rb", "symbol": "local_method?", "line": 104, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/register_spec.rb\nLine 167: end", "file": "spec/register_spec.rb", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 45: super", "file": "lib/thor/shell.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 24: expect(parse(\"name\", \"+13\")[\"numeric\"]).to eq(13)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 3: describe Thor::Shell do", "file": "spec/shell_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 7: def enter", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 17: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Como verificar se um método é definido localmente na instância, sem considerar os herdados?", "query": "local method check instance", "file": "lib/thor/command.rb", "symbol": "local_method?", "line": 104, "lang": "pt", "candidates": [{"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Como verificar se um método é definido localmente na instância, sem considerar os herdados?", "query": "local method check instance", "file": "lib/thor/command.rb", "symbol": "local_method?", "line": 104, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/base.rb lines=689-712\nread build_option for detail", "file": "lib/thor/base.rb", "symbol": "build_option", "line": 689, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/application.rb lines=1-24\nread Application for detail", "file": "spec/fixtures/application.rb", "symbol": "Application", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=144-167\nread method_missing for detail", "file": "spec/fixtures/script.thor", "symbol": "method_missing", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=112-135\nread are_colors_disabled? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_disabled?", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=126-149\nread validate! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate!", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/version.rb lines=1-24\nread Thor for detail", "file": "lib/thor/version.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=39-62\nread required? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "required?", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=131-154\nread find_class_and_command_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_class_and_command_by_namespace", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=104-127\nread local_method? for detail", "file": "lib/thor/command.rb", "symbol": "local_method?", "line": 104, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=201-224\nread paint for detail", "file": "spec/fixtures/script.thor", "symbol": "paint", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=163-186\nread method_option for detail", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=314-337\nread uncomment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "uncomment_lines", "line": 314, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=174-197\nread list for detail", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=68-91\nread reverse_merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "这个方法是用来获取当前的命令执行链条的吗?", "query": "current_command_chain", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 122, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 44: expect(ThorTask.tasks[\"cool\"].description).to eq(\"Say it's cool\")", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 92: MyClassOptionScript.start %w[mix --one --two --three --five]", "file": "spec/base_spec.rb", "symbol": "", "line": 92, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nLine 122: def two", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 122, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/rake_compat_spec.rb\nLine 3: require \"rake/tasklib\"", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 253: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 29: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 35: @non_assigned_required << argument", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 45: expect(argument(:foo, type: :array).usage).to eq(\"one two three\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 152: #", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 50: expect(MyCounter.desc).to eq(\"Description:\\n This generator runs three commands: one, two and three.\\n\")", "file": "spec/group_spec.rb", "symbol": "", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 27: arity = instance.method(name).arity", "file": "lib/thor/command.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 28: This generator runs three commands: one, two and three.", "file": "spec/fixtures/group.thor", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nLine 54: desc \"a\", \"First Command\"", "file": "spec/sort_spec.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 17: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 90: It even has two paragraphs.", "file": "spec/fixtures/script.thor", "symbol": "", "line": 90, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nLine 486: expect(parse(\"--attributes\", \"name:one\", \"foo:1\", \"--attributes\", \"name:two\", \"bar:2\")[\"attributes\"]).to eq({\"name\"=>\"two\", \"foo\"=>\"1\", \"bar\" => \"2\"})", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 486, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nLine 154: bold = shell.set_color \"hi!\", :white, true", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 87: if force", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 672: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 672, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 74: @corrections ||=", "file": "lib/thor/error.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 19: #", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 44: class_option :who,", "file": "spec/register_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "这个方法是用来获取当前的命令执行链条的吗?", "query": "current_command_chain", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 122, "lang": "zh", "candidates": [{"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\ndefines two", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "这个方法是用来获取当前的命令执行链条的吗?", "query": "current_command_chain", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 122, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/util.rb lines=264-287\nread escape_globs for detail", "file": "lib/thor/util.rb", "symbol": "escape_globs", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=78-101\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=6-29\nread available? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/quality_spec.rb lines=21-44\nread check_for_extra_spaces for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=194-217\nread check_default_type for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=153-176\nread replace! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replace!", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=190-213\nread thor_root for detail", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=122-145\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 122, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions.rb lines=329-352\nread _cleanup_options_and_set for detail", "file": "lib/thor/actions.rb", "symbol": "_cleanup_options_and_set", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=288-311\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=45-68\nread invocation_blocks for detail", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=15-38\nread readline for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "readline", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=709-732\nread find_and_refresh_command for detail", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=131-154\nread find_class_and_command_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_class_and_command_by_namespace", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=107-130\nread revoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "revoke!", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=41-64\nread task for detail", "file": "lib/thor/rake_compat.rb", "symbol": "task", "line": 41, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "El método para descargar contenido desde una URL o un archivo local y escribirlo en un destino falla al intentar procesar los argumentos de configuración cuando se pasa un bloque, lo que podría causar problemas en la resolución de la ruta de destino.", "query": "download remote file", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lang": "es", "candidates": [{"text": "File: spec/base_spec.rb\nLine 27: end", "file": "spec/base_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 37: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 16: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 75: desc \"call_myself_with_wrong_arity\", \"get the right error\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nLine 181: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 197: ])", "file": "spec/util_spec.rb", "symbol": "", "line": 197, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 7: expect(barn_help).to include(\"barn help [COMMAND] # Describe subcommands or one specific subcommand\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 4: class EncodingWithUtf8 < Thor", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 123: it \"supports string aliases without a dash prefix\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 14: words.inject do |memo, word|", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 17: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 252: stub_request(:get, location).to_return(body: \"class Foo < Thor; end\")", "file": "spec/runner_spec.rb", "symbol": "", "line": 252, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 34: # older versions of Thor. On current versions, if you need to get the", "file": "lib/thor/util.rb", "symbol": "", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 77: # With borders we handle padding separately", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 16: it \"raises an error if type is unknown\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 242: stub_request(:get, @file)", "file": "spec/actions_spec.rb", "symbol": "", "line": 242, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nLine 28: BLUE = \"\\e[34m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 16: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 406: # Here +exec+ can be called with +--verbose+ to get diagnostic output,", "file": "lib/thor.rb", "symbol": "", "line": 406, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 25: @_initializer = [args, options, config]", "file": "lib/thor/invocation.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 164: describe \"#get\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 164, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 81: def get(source, *args, &block)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor.rb\nLine 11: #", "file": "lib/thor.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 1: class Thor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "El método para descargar contenido desde una URL o un archivo local y escribirlo en un destino falla al intentar procesar los argumentos de configuración cuando se pasa un bloque, lo que podría causar problemas en la resolución de la ruta de destino.", "query": "download remote file", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lang": "es", "candidates": [{"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "El método para descargar contenido desde una URL o un archivo local y escribirlo en un destino falla al intentar procesar los argumentos de configuración cuando se pasa un bloque, lo que podría causar problemas en la resolución de la ruta de destino.", "query": "download remote file", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "El método para descargar contenido desde una URL o un archivo local y escribirlo en un destino falla al intentar procesar los argumentos de configuración cuando se pasa un bloque, lo que podría causar problemas en la resolución de la ruta de destino.", "query": "download remote file", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lang": "es", "candidates": [{"text": "Next: read lib/thor/shell/terminal.rb lines=35-58\nread dynamic_width_tput for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_tput", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=501-524\nread remove_command for detail", "file": "lib/thor/base.rb", "symbol": "remove_command", "line": 501, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=281-304\nread Pear for detail", "file": "spec/fixtures/script.thor", "symbol": "Pear", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=449-472\nread command_exists? for detail", "file": "lib/thor.rb", "symbol": "command_exists?", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=117-140\nread template for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=65-88\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=700-723\nread build_options for detail", "file": "lib/thor/base.rb", "symbol": "build_options", "line": 700, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=172-195\nread validate_enum_value! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "validate_enum_value!", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=26-49\nread insert_into_file! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/rake_compat_spec.rb lines=7-30\nread RakeTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "RakeTask", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=172-195\nread get_options_from_invocations for detail", "file": "lib/thor/group.rb", "symbol": "get_options_from_invocations", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=25-48\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=128-151\nread bar for detail", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=216-239\nread apply for detail", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=288-311\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 288, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "我想在处理文件创建冲突时,先判断目标文件是否与现有内容完全一致。如果一致就直接标记为相同,否则再根据配置决定是强制覆盖还是跳过。", "query": "on_conflict identical behavior", "file": "lib/thor/actions/create_file.rb", "symbol": "on_conflict_behavior", "line": 73, "lang": "zh", "candidates": [{"text": "File: spec/parser/option_spec.rb\nLine 44: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 41: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 593: # computation will not occur.", "file": "lib/thor/base.rb", "symbol": "", "line": 593, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 73: def on_conflict_behavior(&block)", "file": "lib/thor/actions/create_file.rb", "symbol": "on_conflict_behavior", "line": 73, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor.rb\nLine 200: # If you give \"--one\" and \"--two\" at the same time ExclusiveArgumentsError", "file": "lib/thor.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 12: else", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 27: content = yield(content) if block", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 247: invoke_with_a_bang! \"doc/README\", before: /(__end__)/ do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 247, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 531: expect(parse(\"-n\", \"3\", \"-m\", \".5\")).to eq(\"n\" => 3, \"m\" => 0.5)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 531, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 38: # class MyScript < Thor", "file": "lib/thor/shell.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 118: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 137: :subtract", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 34: elsif argument.required?", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 184: nil", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 281: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 323: mute? || (base && base.options[:quiet])", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 323, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 9: r,w= IO.pipe", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 32: @mute", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 17: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 7: def enter", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 115: on_conflict_behavior(&block)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 115, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 374: revoke! \"doc/README\", \"more content\\n\", before: /\\z/", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 374, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 238: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "我想在处理文件创建冲突时,先判断目标文件是否与现有内容完全一致。如果一致就直接标记为相同,否则再根据配置决定是强制覆盖还是跳过。", "query": "on_conflict identical behavior", "file": "lib/thor/actions/create_file.rb", "symbol": "on_conflict_behavior", "line": 73, "lang": "zh", "candidates": [{"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "我想在处理文件创建冲突时,先判断目标文件是否与现有内容完全一致。如果一致就直接标记为相同,否则再根据配置决定是强制覆盖还是跳过。", "query": "on_conflict identical behavior", "file": "lib/thor/actions/create_file.rb", "symbol": "on_conflict_behavior", "line": 73, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "我想在处理文件创建冲突时,先判断目标文件是否与现有内容完全一致。如果一致就直接标记为相同,否则再根据配置决定是强制覆盖还是跳过。", "query": "on_conflict identical behavior", "file": "lib/thor/actions/create_file.rb", "symbol": "on_conflict_behavior", "line": 73, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=8-31\nread action for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=89-112\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=333-356\nread at_least_one for detail", "file": "spec/fixtures/script.thor", "symbol": "at_least_one", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=145-168\nread _shared_configuration for detail", "file": "lib/thor/invocation.rb", "symbol": "_shared_configuration", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=783-806\nread create_command for detail", "file": "lib/thor/base.rb", "symbol": "create_command", "line": 783, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=122-145\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=797-820\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 797, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=329-352\nread subcommand for detail", "file": "lib/thor.rb", "symbol": "subcommand", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=393-416\nread class_at_least_one for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=101-124\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=73-96\nread on_conflict_behavior for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "on_conflict_behavior", "line": 73, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=546-569\nread banner for detail", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=460-483\nread method_exclusive_option_names for detail", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=64-87\nread relative_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "relative_matches", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=69-92\nread initialize for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "config 파일에 내용을 삽입하는데, 이미 삽입된 내용인지 확인하고 에러를 발생시키는 메서드 어떻게 사용하나요?", "query": "insert file error revert", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lang": "ko", "candidates": [{"text": "File: lib/thor/parser/argument.rb\nLine 9: class_name = self.class.name.split(\"::\").last", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 13: Test.start(ARGV)", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 4: module Actions", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nLine 228: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 15: expect(capture(:stdout) { Scripts::MyDefaults.start(%w(barn open shotgun)) }.strip).to eq(\"That's going to leave a mark.\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 5: describe Thor::Actions::CreateLink, unless: windows? do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 4: module Actions", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 47: base.inside(\"doc\") do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 36: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 15: _, exit_status= Process.wait2(pid)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 170: opts ||= stored_opts.dup", "file": "lib/thor/invocation.rb", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 207: end", "file": "spec/util_spec.rb", "symbol": "", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 2: def check_for_spec_defs_with_single_quotes(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 19: source = args.first", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 4: module Actions", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/rake_compat.rb\nLine 11: # class Default < Thor", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 22: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 4: describe Thor::Actions::CreateFile do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 9: module Actions", "file": "lib/thor/actions.rb", "symbol": "", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 53: klass.send :define_method, non_namespaced_name do |*args|", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 4: module Actions", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 542: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 542, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 239: \"It does not verify the integrity of the generated back-up.\"", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 12: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "config 파일에 내용을 삽입하는데, 이미 삽입된 내용인지 확인하고 에러를 발생시키는 메서드 어떻게 사용하나요?", "query": "insert file error revert", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lang": "ko", "candidates": [{"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "config 파일에 내용을 삽입하는데, 이미 삽입된 내용인지 확인하고 에러를 발생시키는 메서드 어떻게 사용하나요?", "query": "insert file error revert", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "config 파일에 내용을 삽입하는데, 이미 삽입된 내용인지 확인하고 에러를 발생시키는 메서드 어떻게 사용하나요?", "query": "insert file error revert", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/actions/inject_into_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=26-49\nread insert_into_file! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=34-57\nread invoker for detail", "file": "spec/fixtures/invoke.thor", "symbol": "invoker", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=51-74\nread six for detail", "file": "spec/fixtures/group.thor", "symbol": "six", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=83-106\nread usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "usage", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=58-81\nread matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "matches", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=164-187\nread undasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=547-570\nread shell for detail", "file": "spec/thor_spec.rb", "symbol": "shell", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=686-709\nread tree for detail", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=278-301\nread stdout for detail", "file": "lib/thor/shell/basic.rb", "symbol": "stdout", "line": 278, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=104-127\nread F for detail", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=622-645\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=145-168\nread chmod for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "chmod", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=49-72\nread capture for detail", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=59-82\nread no_or_skip? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=216-239\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=191-214\nread open for detail", "file": "spec/fixtures/script.thor", "symbol": "open", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=69-92\nread initialize for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Je cherche comment est générée la ligne d'exemple pour l'aide en ligne de commande. Peux-tu m'expliquer comment la méthode construit la chaîne de caractères pour afficher un paramètre optionnel ou un booléen ?", "query": "command line usage", "file": "lib/thor/parser/option.rb", "symbol": "usage", "line": 83, "lang": "fr", "candidates": [{"text": "File: lib/thor/parser/option.rb\nLine 83: def usage(padding = 0)", "file": "lib/thor/parser/option.rb", "symbol": "usage", "line": 83, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell_spec.rb\nLine 4: def shell", "file": "spec/shell_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 585: it \"injects class arguments into default usage\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 585, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 27: # short:: When true, shows only usage.", "file": "lib/thor/group.rb", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nLine 17: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 28: \"#{filename} has spaces on the EOL on lines #{failing_lines.join(', ')}\" unless failing_lines.empty?", "file": "spec/quality_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 294: expect(error).to be_a NameError", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 294, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 88: dirname = File.dirname(file_destination).gsub(%r{/\\.$}, \"\")", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 35: def usage", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 2: class Command < Struct.new(:name, :description, :long_description, :wrap_long_description, :usage, :options, :options_relation, :ancestor_name)", "file": "lib/thor/command.rb", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 27: def print_default", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 31: def one", "file": "spec/fixtures/group.thor", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 46: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 96: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 14: # Thor::Error is raised when it's caused by wrong usage of thor classes. Those", "file": "lib/thor/error.rb", "symbol": "", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 7: Thor::Util.load_thorfile(File.expand_path(\"./fixtures/#{filename}\", __dir__))", "file": "spec/encoding_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 66: end).to eq(\"COOL\\n\")", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 1: module TestSubcommands", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 35: # usage:: Short usage for the subcommand", "file": "lib/thor.rb", "symbol": "", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 17: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 1: module TestSubcommands", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 38: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 2: def check_for_spec_defs_with_single_quotes(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche comment est générée la ligne d'exemple pour l'aide en ligne de commande. Peux-tu m'expliquer comment la méthode construit la chaîne de caractères pour afficher un paramètre optionnel ou un booléen ?", "query": "command line usage", "file": "lib/thor/parser/option.rb", "symbol": "usage", "line": 83, "lang": "fr", "candidates": [{"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche comment est générée la ligne d'exemple pour l'aide en ligne de commande. Peux-tu m'expliquer comment la méthode construit la chaîne de caractères pour afficher un paramètre optionnel ou un booléen ?", "query": "command line usage", "file": "lib/thor/parser/option.rb", "symbol": "usage", "line": 83, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/runner.rb lines=321-344\nread show_modules for detail", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=9-32\nread option for detail", "file": "spec/parser/option_spec.rb", "symbol": "option", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=37-60\nread diff_lcs_loaded? for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=460-483\nread method_exclusive_option_names for detail", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=403-426\nread class_exclusive_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=48-71\nread Child1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "Child1", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/directory_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoker", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=144-167\nread method_missing for detail", "file": "spec/fixtures/script.thor", "symbol": "method_missing", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=310-333\nread display_commands for detail", "file": "lib/thor/runner.rb", "symbol": "display_commands", "line": 310, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=201-224\nread paint for detail", "file": "spec/fixtures/script.thor", "symbol": "paint", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=83-106\nread usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "usage", "line": 83, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=58-81\nread namespaces_in_content for detail", "file": "lib/thor/util.rb", "symbol": "namespaces_in_content", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=153-176\nread load_thorfile for detail", "file": "lib/thor/util.rb", "symbol": "load_thorfile", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=23-46\nread revoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoke!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=206-229\nread PackageNameScript for detail", "file": "spec/fixtures/script.thor", "symbol": "PackageNameScript", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=163-186\nread method_option for detail", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Necesito verificar si la consola de salida estándar soporta colores y si el terminal no es de tipo \"dumb\" para habilitar el coloreado de texto.", "query": "terminal color support", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lang": "es", "candidates": [{"text": "File: spec/sort_spec.rb\nLine 71: it \"puts help first then sorts them lexicographillay\" do", "file": "spec/sort_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 2: # frozen_string_literal: true", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 35: # Check if Diff::LCS is loaded. If it is, use it to create pretty output", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 480: Usage: \"thor scripts:arities:one_arg ARG\"'", "file": "spec/thor_spec.rb", "symbol": "", "line": 480, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 367: enum = %w(apple banana)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 367, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 4: class EncodingOther < Thor", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 144: expect do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 205: alias_method :printable_tasks, :printable_commands", "file": "lib/thor/group.rb", "symbol": "", "line": 205, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 90: unless as", "file": "lib/thor/runner.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 1: describe \"when the Thor class's exit_with_failure? method returns true\" do", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 1: # encoding: ISO-8859-7", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 135: expect(content).to match(%r{create doc/components})", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 32: #", "file": "lib/thor/shell.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 5: true", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 13: w.close", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 289: # end", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 1: # module: random", "file": "spec/fixtures/command.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 291: # switches.", "file": "lib/thor/actions.rb", "symbol": "", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 15: class SubApp < Thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 47: end", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 108: def are_colors_supported?", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/command.rb\nLine 20: # implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 28: @dynamic_width ||= (dynamic_width_stty.nonzero? || dynamic_width_tput)", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 2: module Shell", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Necesito verificar si la consola de salida estándar soporta colores y si el terminal no es de tipo \"dumb\" para habilitar el coloreado de texto.", "query": "terminal color support", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lang": "es", "candidates": [{"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Necesito verificar si la consola de salida estándar soporta colores y si el terminal no es de tipo \"dumb\" para habilitar el coloreado de texto.", "query": "terminal color support", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lang": "es", "candidates": [{"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Necesito verificar si la consola de salida estándar soporta colores y si el terminal no es de tipo \"dumb\" para habilitar el coloreado de texto.", "query": "terminal color support", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lang": "es", "candidates": [{"text": "Next: read lib/thor/actions/inject_into_file.rb lines=153-176\nread replace! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replace!", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=722-745\nread inherited for detail", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=213-236\nread globs_for for detail", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=294-317\nread arguments for detail", "file": "lib/thor/base.rb", "symbol": "arguments", "line": 294, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=6-29\nread Thor for detail", "file": "lib/thor/shell/color.rb", "symbol": "Thor", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=156-179\nread check_at_least_one! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_at_least_one!", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=122-145\nread baz for detail", "file": "spec/fixtures/group.thor", "symbol": "baz", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=108-131\nread are_colors_supported? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=28-51\nread add_to_history? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "add_to_history?", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=104-127\nread can_display_colors? for detail", "file": "lib/thor/shell/color.rb", "symbol": "can_display_colors?", "line": 104, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=61-84\nread namespace for detail", "file": "lib/thor/rake_compat.rb", "symbol": "namespace", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=44-67\nread initialize for detail", "file": "lib/thor/shell.rb", "symbol": "initialize", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=23-46\nread Shell for detail", "file": "lib/thor/shell.rb", "symbol": "Shell", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=169-192\nread check_unknown_options! for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options!", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Estoy revisando cómo se comportan los argumentos cuando se usan varias veces en los scripts de prueba. ¿Podrías mostrarme dónde se define la lógica para manejar parámetros repetidos?", "query": "multiple usages", "file": "spec/fixtures/script.thor", "symbol": "multiple_usages", "line": 269, "lang": "es", "candidates": [{"text": "File: lib/thor/line_editor/readline.rb\nLine 35: elsif completion_options.any?", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 30: expect(FileUtils).to receive(:chmod_R).with(0755, file)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 487: arity_asserter.call %w(multiple_usages), 'ERROR: \"thor multiple_usages\" was called with no arguments", "file": "spec/thor_spec.rb", "symbol": "", "line": 487, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 35: def initialize(base, destination, data, config = {})", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 16: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 195: $thor_runner = false", "file": "spec/register_spec.rb", "symbol": "", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 63: \"#{Thor::Util.escape_html(string)}\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 27: let(:action) do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 65: end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 269: def multiple_usages(arg)", "file": "spec/fixtures/script.thor", "symbol": "multiple_usages", "line": 269, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions.rb\nLine 118: path[0...root.size] = \".\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 64: alias_method :inject_into_file, :insert_into_file", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 25: def pop", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 99: context \"protected methods\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 3: class EncodingImplicit < Thor", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 44: case default", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 333: it \"checks unknown options\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 1: require \"helper\"", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 21: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 16: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 83: shell.say \"NO_COLOR is enforced! We should not have colors!\", :green", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 53: if enum.respond_to? :join", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 531: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 531, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estoy revisando cómo se comportan los argumentos cuando se usan varias veces en los scripts de prueba. ¿Podrías mostrarme dónde se define la lógica para manejar parámetros repetidos?", "query": "multiple usages", "file": "spec/fixtures/script.thor", "symbol": "multiple_usages", "line": 269, "lang": "es", "candidates": [{"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines multiple_usages", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estoy revisando cómo se comportan los argumentos cuando se usan varias veces en los scripts de prueba. ¿Podrías mostrarme dónde se define la lógica para manejar parámetros repetidos?", "query": "multiple usages", "file": "spec/fixtures/script.thor", "symbol": "multiple_usages", "line": 269, "lang": "es", "candidates": [{"text": "Next: read spec/shell_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/html.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/html.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=4-27\nread EncodingOther for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "EncodingOther", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=50-73\nread PluginInheritingFromClassOptionsGroup for detail", "file": "spec/register_spec.rb", "symbol": "PluginInheritingFromClassOptionsGroup", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=144-167\nread check_exclusive! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=778-801\nread baseclass for detail", "file": "lib/thor/base.rb", "symbol": "baseclass", "line": 778, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=129-152\nread method_options for detail", "file": "lib/thor.rb", "symbol": "method_options", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=264-287\nread escape_globs for detail", "file": "lib/thor/util.rb", "symbol": "escape_globs", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=172-195\nread validate_enum_value! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "validate_enum_value!", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=269-292\nread multiple_usages for detail", "file": "spec/fixtures/script.thor", "symbol": "multiple_usages", "line": 269, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/util.rb lines=203-226\nread thor_root_glob for detail", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=3-26\nread EncodingImplicit for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "EncodingImplicit", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=320-343\nread subcommands for detail", "file": "lib/thor.rb", "symbol": "subcommands", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=127-150\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/encoding_spec.rb lines=6-29\nread load_thorfile for detail", "file": "spec/encoding_spec.rb", "symbol": "load_thorfile", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=75-98\nread PluginWithDefaultcommandAndDeclaredArgument for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefaultcommandAndDeclaredArgument", "line": 75, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "¿Cómo se gestiona la conversión de una serie de valores consecutivos en un arreglo?", "query": "parse array values", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_array", "line": 118, "lang": "es", "candidates": [{"text": "File: lib/thor/shell/color.rb\nLine 40: # Set the terminal's background ANSI color to green.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 1: require \"rake\"", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 639: if possibilities.include?(meth)", "file": "lib/thor.rb", "symbol": "", "line": 639, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 38: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 37: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/A top level command/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 10: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 27: content = capture(:stdout) { Thor::Runner.start(%w(help my_script)) }", "file": "spec/runner_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 23: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 129: def uninstall(name)", "file": "lib/thor/runner.rb", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 17: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/command.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 23: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub print_opt --opt output)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 330: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 330, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 118: def parse_array(name)", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_array", "line": 118, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/util.rb\nLine 163: $stderr.puts(e.backtrace.first)", "file": "lib/thor/util.rb", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 7: #", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 20: @desc ||= from_superclass(:desc, nil)", "file": "lib/thor/group.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 22: it \"a command that raises a Thor::Error exits with a status of 1\" do", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 156: end", "file": "lib/thor/group.rb", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 3: add_runtime_options!", "file": "spec/fixtures/group.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 229: expect(parse(:foo, :boolean).usage).to include(\"[--no-foo]\")", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 565: # thor :my_command", "file": "lib/thor/base.rb", "symbol": "", "line": 565, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 27: when \"!\"", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "¿Cómo se gestiona la conversión de una serie de valores consecutivos en un arreglo?", "query": "parse array values", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_array", "line": 118, "lang": "es", "candidates": [{"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "¿Cómo se gestiona la conversión de una serie de valores consecutivos en un arreglo?", "query": "parse array values", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_array", "line": 118, "lang": "es", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=128-151\nread bar for detail", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=89-112\nread action for detail", "file": "lib/thor/actions.rb", "symbol": "action", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=41-64\nread slice for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "slice", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=248-271\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=8-31\nread action for detail", "file": "spec/actions_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=686-709\nread tree for detail", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=118-141\nread parse_array for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_array", "line": 118, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/encoding_spec.rb lines=6-29\nread load_thorfile for detail", "file": "spec/encoding_spec.rb", "symbol": "load_thorfile", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=320-343\nread exclusive for detail", "file": "spec/fixtures/script.thor", "symbol": "exclusive", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=90-113\nread snake_case for detail", "file": "lib/thor/util.rb", "symbol": "snake_case", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=199-222\nread printable_commands for detail", "file": "lib/thor/group.rb", "symbol": "printable_commands", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=28-51\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=145-168\nread chmod for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "chmod", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "我想看看实现命令行参数解析逻辑的地方。能帮我找一下那个根据传入的键值对自动推断数据类型并实例化配置对象的类方法吗?", "query": "parse option type", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lang": "zh", "candidates": [{"text": "File: spec/parser/options_spec.rb\nLine 11: opts[key] = Thor::Option.parse(key, value) unless value.is_a?(Thor::Option)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nLine 13: $main.instance_eval do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 51: end", "file": "lib/thor/error.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 24: capture(:stdout) { invoker.insert_into_file!(*args, &block) }", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 71: # supplied to B. This allows lazy parse of options. Let's suppose you have", "file": "lib/thor/invocation.rb", "symbol": "", "line": 71, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 173: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 75: # Let Thor::Options parse the options first, so it can remove", "file": "lib/thor/base.rb", "symbol": "", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 30: # If +stop_on_unknown+ is true, #parse will stop as soon as it encounters", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 176: expect(File.exist?(File.join(destination_root, \"doc\", \"config.rb\"))).to be false", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 176, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 120: expect(shell.yes?(\"Should I overwrite it?\")).to be true", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 79: @flag = Regexp.escape(@flag) unless @flag.is_a?(Regexp)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 391: runner({}, :revoke)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 391, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 15: def parse(*args)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nLine 45: def self.parse(key, value)", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/rake_compat.rb\nLine 55: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 78: end", "file": "spec/command_spec.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 570: it \"provides description for commands from classes in the same namespace\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 570, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 6: false", "file": "spec/fixtures/group.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 204: # Loads an external file and execute it in the instance binding.", "file": "lib/thor/actions.rb", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 42: require \"fileutils\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 100: case shifted", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 6: options[key] = Thor::Option.parse(key, value)", "file": "spec/command_spec.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 81: when :array", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "我想看看实现命令行参数解析逻辑的地方。能帮我找一下那个根据传入的键值对自动推断数据类型并实例化配置对象的类方法吗?", "query": "parse option type", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lang": "zh", "candidates": [{"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "我想看看实现命令行参数解析逻辑的地方。能帮我找一下那个根据传入的键值对自动推断数据类型并实例化配置对象的类方法吗?", "query": "parse option type", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lang": "zh", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=128-151\nread bar for detail", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=797-820\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 797, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=671-694\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=21-44\nread check_for_extra_spaces for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=4-27\nread EncodingOther for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "EncodingOther", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=192-215\nread append_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "append_to_file", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=83-106\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=347-370\nread ask_filtered for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_filtered", "line": 347, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=472-495\nread commands for detail", "file": "lib/thor/base.rb", "symbol": "commands", "line": 472, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor.rb lines=4-27\nread Thor for detail", "file": "lib/thor/line_editor.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=31-54\nread except for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=293-316\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=412-435\nread class_at_least_one_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one_option_names", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=438-461\nread disable_required_check? for detail", "file": "lib/thor.rb", "symbol": "disable_required_check?", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=307-330\nread mix for detail", "file": "spec/fixtures/script.thor", "symbol": "mix", "line": 307, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "環境変数やプラットフォームに応じて使用されるシェルを返す仕組みを探して", "query": "shell environment platform", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lang": "ja", "candidates": [{"text": "File: lib/thor/command.rb\nLine 58: # Add required options", "file": "lib/thor/command.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 113: raise \"Expected Thor class, got #{klass}\" unless klass <= Thor::Base", "file": "lib/thor/invocation.rb", "symbol": "", "line": 113, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 64: @content = capture(:stdout) { MyCounter.help(Thor::Base.shell.new) }", "file": "spec/group_spec.rb", "symbol": "", "line": 64, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nLine 27: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 6: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 7: expect(barn_help).to include(\"barn help [COMMAND] # Describe subcommands or one specific subcommand\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 26: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 30: Thor::Base.shell = Thor::Shell::Basic", "file": "spec/helper.rb", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 37: # override task on (main), for compatibility with Rake 0.9", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 2: class Argument #:nodoc:", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 4: module Base", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/encoding_spec.rb\nLine 15: load_thorfile(\"encoding_other.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 234: #", "file": "lib/thor.rb", "symbol": "", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 8: delete = Thor::Base.subclasses.select { |e| e.namespace == \"default\" }", "file": "spec/runner_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nLine 122: it \"returns the human name\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 10: def describe(name, opts)", "file": "spec/fixtures/command.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 19: it \"does not use a new line even with colors\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 50: invoke! \"doc\"", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 113: !ENV[\"NO_COLOR\"].nil? && !ENV[\"NO_COLOR\"].empty?", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 11: describe Thor::Base do", "file": "spec/base_spec.rb", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nLine 5: @shell ||= Thor::Base.shell.new", "file": "spec/sort_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 56: super", "file": "spec/fixtures/group.thor", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 15: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 104: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "環境変数やプラットフォームに応じて使用されるシェルを返す仕組みを探して", "query": "shell environment platform", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lang": "ja", "candidates": [{"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "環境変数やプラットフォームに応じて使用されるシェルを返す仕組みを探して", "query": "shell environment platform", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "環境変数やプラットフォームに応じて使用されるシェルを返す仕組みを探して", "query": "shell environment platform", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/invocation.rb lines=153-176\nread _retrieve_class_and_command for detail", "file": "lib/thor/invocation.rb", "symbol": "_retrieve_class_and_command", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=276-299\nread apple for detail", "file": "spec/fixtures/script.thor", "symbol": "apple", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=52-75\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 52, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=32-55\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=20-43\nread RakeCompat for detail", "file": "lib/thor/rake_compat.rb", "symbol": "RakeCompat", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=47-70\nread hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "hidden", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=39-62\nread B for detail", "file": "spec/fixtures/invoke.thor", "symbol": "B", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=43-66\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=91-114\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=225-248\nread current_is_value? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_value?", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=192-215\nread thor_root for detail", "file": "lib/thor/util.rb", "symbol": "thor_root", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=37-60\nread diff_lcs_loaded? for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=282-305\nread stderr for detail", "file": "lib/thor/shell/basic.rb", "symbol": "stderr", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=71-94\nread default_banner for detail", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=44-67\nread initialize for detail", "file": "lib/thor/shell.rb", "symbol": "initialize", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell.rb lines=23-46\nread Shell for detail", "file": "lib/thor/shell.rb", "symbol": "Shell", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell.rb lines=4-27\nread Base for detail", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/create_link.rb lines=40-63\nread invoke! for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=458-481\nread group for detail", "file": "lib/thor/base.rb", "symbol": "group", "line": 458, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "ターミナルの動的な幅を計算している箇所を探して", "query": "terminal dynamic width", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width", "line": 27, "lang": "ja", "candidates": [{"text": "File: spec/fixtures/subcommand.thor\nLine 17: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 27: def dynamic_width", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width", "line": 27, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell.rb\nLine 9: # it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 38: sentence << \"|\" if options[:borders]", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 5: class ColumnPrinter", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 83: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 13: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 117: instance.parent_options = options", "file": "lib/thor/invocation.rb", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 140: invoke!(\"doc\") do |content|", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 36: rescue NoMethodError => e", "file": "lib/thor/command.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 57: desc \"z\", \"Last Command\"", "file": "spec/sort_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 8: width = Terminal.terminal_width - @indent", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 41: base.with_padding do", "file": "spec/shell_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 23: expect(parse(\"name\", \"13\")[\"numeric\"]).to eq(13)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 18: #", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 9: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 49: dub = double", "file": "spec/command_spec.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 29: def five(number)", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 16: argument :first, :type => :numeric", "file": "spec/fixtures/group.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 29: options.fetch(:add_to_history, true)", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 32: # config:: give :verbose => false to not log the status.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 281: CGI.escapeHTML(string)", "file": "lib/thor/util.rb", "symbol": "", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 16: it \"sets the color if specified and tty?\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "ターミナルの動的な幅を計算している箇所を探して", "query": "terminal dynamic width", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width", "line": 27, "lang": "ja", "candidates": [{"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "ターミナルの動的な幅を計算している箇所を探して", "query": "terminal dynamic width", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width", "line": 27, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=4-27\nread shell for detail", "file": "spec/sort_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=1-24\nread Thor for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=121-144\nread handle_no_method_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_no_method_error?", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=26-49\nread insert_into_file! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=560-583\nread create_command for detail", "file": "lib/thor.rb", "symbol": "create_command", "line": 560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=207-230\nread handle_argument_error for detail", "file": "lib/thor/group.rb", "symbol": "handle_argument_error", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=27-50\nread dynamic_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width", "line": 27, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=65-88\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=3-26\nread Terminal for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Terminal", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=130-153\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=30-53\nread current_command_chain for detail", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/encoding_spec.rb lines=6-29\nread load_thorfile for detail", "file": "spec/encoding_spec.rb", "symbol": "load_thorfile", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=9-32\nread terminal_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "terminal_width", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/terminal.rb lines=20-43\nread unix? for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "unix?", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=384-407\nread diff_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "diff_tool", "line": 384, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=97-120\nread parse_hash for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_hash", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=7-30\nread bugs for detail", "file": "spec/fixtures/help.thor", "symbol": "bugs", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=72-95\nread shift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "shift", "line": 72, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "명령어 실행이나 옵션 설정을 취소하는 로직이 어디에 정의되어 있는지 찾아줘. 이미 등록된 호출 정보를 리스트에서 삭제하는 기능이 필요해.", "query": "remove invocation", "file": "lib/thor/group.rb", "symbol": "remove_invocation", "line": 149, "lang": "ko", "candidates": [{"text": "File: lib/thor/group.rb\nLine 149: def remove_invocation(*names)", "file": "lib/thor/group.rb", "symbol": "remove_invocation", "line": 149, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/options_spec.rb\nLine 547: enum = 1..2", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 13: Test.start(ARGV)", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 73: def on_conflict_behavior(&block)", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 14: words.inject do |memo, word|", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 7: def bugs", "file": "spec/fixtures/help.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 55: @text = text", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 160: found = @at_least_ones.find{ |one_reqs| one_reqs.none?{ |o| opts.include? o} }", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 326: # flag:: the regexp or string used to decide which lines to comment", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 48: #", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 32: # Set the terminal's background HTML color to black.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 14: def ok", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 306: d - diff, show the differences between the old and the new", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 306, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 2: module LineEditor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 4: lib_path= \"#{gem_dir}/lib\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 144: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 6: option \"--not_help\", :type => :boolean", "file": "spec/fixtures/help.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 224: expect(File).to receive(:open).with(path, \"w\")", "file": "spec/runner_spec.rb", "symbol": "", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 211: # Where to look for Thor files.", "file": "lib/thor/util.rb", "symbol": "", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 11: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 126: # Thor::Util.namespace_to_thor_class(\"foo:bar:baz\") #=> Foo::Bar, \"baz\"", "file": "lib/thor/util.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 45: when Array, String, Hash", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 71: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 31: arguments.each do |argument|", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "명령어 실행이나 옵션 설정을 취소하는 로직이 어디에 정의되어 있는지 찾아줘. 이미 등록된 호출 정보를 리스트에서 삭제하는 기능이 필요해.", "query": "remove invocation", "file": "lib/thor/group.rb", "symbol": "remove_invocation", "line": 149, "lang": "ko", "candidates": [{"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "명령어 실행이나 옵션 설정을 취소하는 로직이 어디에 정의되어 있는지 찾아줘. 이미 등록된 호출 정보를 리스트에서 삭제하는 기능이 필요해.", "query": "remove invocation", "file": "lib/thor/group.rb", "symbol": "remove_invocation", "line": 149, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "명령어 실행이나 옵션 설정을 취소하는 로직이 어디에 정의되어 있는지 찾아줘. 이미 등록된 호출 정보를 리스트에서 삭제하는 기능이 필요해.", "query": "remove invocation", "file": "lib/thor/group.rb", "symbol": "remove_invocation", "line": 149, "lang": "ko", "candidates": [{"text": "Next: read lib/thor.rb lines=129-152\nread method_options for detail", "file": "lib/thor.rb", "symbol": "method_options", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=27-50\nread source_root for detail", "file": "lib/thor/actions.rb", "symbol": "source_root", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=203-226\nread method_exclusive for detail", "file": "lib/thor.rb", "symbol": "method_exclusive", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=21-44\nread output_diff_line for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "output_diff_line", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=45-68\nread invocation_blocks for detail", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/base_spec.rb lines=4-27\nread Amazing for detail", "file": "spec/base_spec.rb", "symbol": "Amazing", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=493-516\nread print_at_least_one_required_options for detail", "file": "lib/thor.rb", "symbol": "print_at_least_one_required_options", "line": 493, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=203-226\nread thor_root_glob for detail", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=149-172\nread remove_invocation for detail", "file": "lib/thor/group.rb", "symbol": "remove_invocation", "line": 149, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=77-100\nread required_arguments_for for detail", "file": "lib/thor/command.rb", "symbol": "required_arguments_for", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=103-126\nread convert_encoded_instructions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "convert_encoded_instructions", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=85-108\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=100-123\nread force_on_collision? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_on_collision?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=811-834\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 811, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "find where the command execution begins and how it handles the arguments and error reporting", "query": "dispatch command start", "file": "lib/thor/base.rb", "symbol": "start", "line": 583, "lang": "en", "candidates": [{"text": "File: spec/fixtures/enum.thor\nLine 7: puts options['fruit']", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 74: before do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 35: expect(%w(rake_compat_spec.rb Thorfile)).to include(Rake.application.rakefile)", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 8: SimpleCov.start do", "file": "spec/helper.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nLine 65: ThorTask.start %w(cool)", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 65, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 17: expect(capture(:stdout) { Thor::Runner.start(%w(help)) }).to match(/List the available thor commands/)", "file": "spec/runner_spec.rb", "symbol": "", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nLine 29: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 35: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 87: silence_warnings do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 62: # Don't output 2 trailing spaces when printing the last column", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 74: expect(shell.ask(\"What's your favorite Neopolitan flavor?\", limited_to: flavors)).to eq(\"chocolate\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 6: option \"--not_help\", :type => :boolean", "file": "spec/fixtures/help.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 30: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/├─ command1/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 258: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 16: # The start of an ANSI bold sequence.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nLine 38: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/Another top level command/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 7: _, options = MyScript.start(args)", "file": "spec/thor_spec.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nLine 1: require \"helper\"", "file": "spec/sort_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 76: def can_has", "file": "spec/command_spec.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 3: require \"thor/actions\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 105: are_colors_supported? && !are_colors_disabled?", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 15: @hide = options[:hide]", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 26: def initialize(arguments = [])", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 583: def start(given_args = ARGV, config = {})", "file": "lib/thor/base.rb", "symbol": "start", "line": 583, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find where the command execution begins and how it handles the arguments and error reporting", "query": "dispatch command start", "file": "lib/thor/base.rb", "symbol": "start", "line": 583, "lang": "en", "candidates": [{"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "find where the command execution begins and how it handles the arguments and error reporting", "query": "dispatch command start", "file": "lib/thor/base.rb", "symbol": "start", "line": 583, "lang": "en", "candidates": [{"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find where the command execution begins and how it handles the arguments and error reporting", "query": "dispatch command start", "file": "lib/thor/base.rb", "symbol": "start", "line": 583, "lang": "en", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=583-606\nread start for detail", "file": "lib/thor/base.rb", "symbol": "start", "line": 583, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/rake_compat.rb lines=61-84\nread namespace for detail", "file": "lib/thor/rake_compat.rb", "symbol": "namespace", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=269-292\nread can_display_colors? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "can_display_colors?", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=108-131\nread are_colors_supported? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=556-579\nread dynamic_command_class for detail", "file": "lib/thor.rb", "symbol": "dynamic_command_class", "line": 556, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/group_spec.rb lines=223-246\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=89-112\nread default for detail", "file": "spec/register_spec.rb", "symbol": "default", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=72-95\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=258-281\nread command_help for detail", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=109-132\nread sans_backtrace for detail", "file": "lib/thor/command.rb", "symbol": "sans_backtrace", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=186-209\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=248-271\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=41-64\nread task for detail", "file": "lib/thor/rake_compat.rb", "symbol": "task", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=156-179\nread check_at_least_one! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_at_least_one!", "line": 156, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "ディレクトリを作成する処理において、既存のディレクトリの存在チェックやパスの設定が正しく行われているか確認したいです。特に、指定された出力先が既に存在する場合の挙動を調査しています。", "query": "create directory", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lang": "ja", "candidates": [{"text": "File: spec/actions/create_link_spec.rb\nLine 73: invoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 101: else", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 55: class Directory < EmptyDirectory #:nodoc:", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nLine 26: RSpec.describe \"Thor tree command\" do", "file": "spec/tree_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 66: class InjectIntoFile < EmptyDirectory #:nodoc:", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nLine 66: end).to eq(\"COOL\\n\")", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 102: end", "file": "spec/group_spec.rb", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 109: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 4: describe Thor::Actions::EmptyDirectory do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nLine 196: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 32: class CreateFile < EmptyDirectory #:nodoc:", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nLine 8: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 15: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 283: elsif option.lazy_default", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 88: end", "file": "spec/util_spec.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 23: class EmptyDirectory #:nodoc:", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/command_spec.rb\nLine 34: it \"allows multiple usages\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 516: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 516, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 76: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 4: super(base)", "file": "lib/thor/invocation.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 21: # parse :foo => \"bar\"", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 169: expect(capture(:stdout) { Thor::Runner.start }).not_to match(/amazing:help/)", "file": "spec/runner_spec.rb", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "ディレクトリを作成する処理において、既存のディレクトリの存在チェックやパスの設定が正しく行われているか確認したいです。特に、指定された出力先が既に存在する場合の挙動を調査しています。", "query": "create directory", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lang": "ja", "candidates": [{"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "ディレクトリを作成する処理において、既存のディレクトリの存在チェックやパスの設定が正しく行われているか確認したいです。特に、指定された出力先が既に存在する場合の挙動を調査しています。", "query": "create directory", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "ディレクトリを作成する処理において、既存のディレクトリの存在チェックやパスの設定が正しく行われているか確認したいです。特に、指定された出力先が既に存在する場合の挙動を調査しています。", "query": "create directory", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lang": "ja", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=257-280\nread one_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "one_arg", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=1-24\nread Thor for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=122-145\nread invoke_command for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_command", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=121-144\nread handle_no_method_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_no_method_error?", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=194-217\nread check_default_type for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=51-74\nread six for detail", "file": "spec/fixtures/group.thor", "symbol": "six", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=133-156\nread potentially_ambiguous for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=8-31\nread encoding for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/subcommand.thor lines=1-24\nread TestSubcommands for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "TestSubcommands", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=59-82\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=228-251\nread dispatch for detail", "file": "lib/thor/group.rb", "symbol": "dispatch", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=194-217\nread print_wrapped for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_wrapped", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=7-30\nread enter for detail", "file": "lib/thor/nested_context.rb", "symbol": "enter", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=143-166\nread content for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=360-383\nread answer_match for detail", "file": "lib/thor/shell/basic.rb", "symbol": "answer_match", "line": 360, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "implement a thor task that prints invoked", "query": "bugs task", "file": "spec/fixtures/help.thor", "symbol": "bugs", "line": 7, "lang": "en", "candidates": [{"text": "File: spec/fixtures/help.thor\nLine 7: def bugs", "file": "spec/fixtures/help.thor", "symbol": "bugs", "line": 7, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 32: def echo?", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 22: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 10: def describe(name, opts)", "file": "spec/fixtures/command.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 182: o.respond_to?(:switch_name) ? o.switch_name : o.human_name", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 112: expect(parse([:foo, :b, \"--bar\"], true).aliases).to eq([\"-b\", \"--bar\"])", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 317: end", "file": "lib/thor.rb", "symbol": "", "line": 317, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 11: def build", "file": "Thorfile", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 1: class Thor", "file": "lib/thor/command.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 60: end", "file": "spec/command_spec.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 158: end.not_to raise_error", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 172: def get_options_from_invocations(group_options, base_options) #:nodoc:", "file": "lib/thor/group.rb", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 193: expect(parse(:foo, :boolean)).to be_boolean", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 193, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 65: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 6: print options[\"opt\"]", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 85: '\\0' + replacement", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 19: load_thorfile(\"encoding_implicit.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 71: def two", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 53: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 123: expect(Thor::Util.find_class_and_command_by_namespace(\"fruits:ra\")).to eq([Apple, \"ra\"])", "file": "spec/util_spec.rb", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 39: end", "file": "spec/util_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 22: arity = nil", "file": "lib/thor/command.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 56: # of the returned String.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "implement a thor task that prints invoked", "query": "bugs task", "file": "spec/fixtures/help.thor", "symbol": "bugs", "line": 7, "lang": "en", "candidates": [{"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\ndefines bugs", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "implement a thor task that prints invoked", "query": "bugs task", "file": "spec/fixtures/help.thor", "symbol": "bugs", "line": 7, "lang": "en", "candidates": [{"text": "Next: read lib/thor/parser/option.rb lines=160-183\nread dasherized? for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherized?", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=172-195\nread animal for detail", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=180-203\nread print_table for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_table", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=567-590\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=314-337\nread uncomment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "uncomment_lines", "line": 314, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=105-128\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=49-72\nread capture for detail", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=7-30\nread bugs for detail", "file": "spec/fixtures/help.thor", "symbol": "bugs", "line": 7, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=65-88\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=80-103\nread ask for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=179-202\nread names_to_switch_names for detail", "file": "lib/thor/parser/options.rb", "symbol": "names_to_switch_names", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=138-161\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=438-461\nread disable_required_check? for detail", "file": "lib/thor.rb", "symbol": "disable_required_check?", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=206-229\nread PackageNameScript for detail", "file": "spec/fixtures/script.thor", "symbol": "PackageNameScript", "line": 206, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Comment capturer la sortie standard lors de l'appel de l'action ?", "query": "capture stdout invoke", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lang": "fr", "candidates": [{"text": "File: Thorfile\nLine 8: Bundler::GemHelper.install_tasks", "file": "Thorfile", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 6: ruby_lib= ENV[\"RUBYLIB\"].nil? ? lib_path : \"#{lib_path}:#{ENV['RUBYLIB']}\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 321: expected = \"Could not find command \\\"paintz\\\" in \\\"barn\\\" namespace.\\n\".dup", "file": "spec/base_spec.rb", "symbol": "", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 132: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 401: compiler.insert_cmd = \"#{eoutvar}.concat\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 401, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 17: def invoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/subcommand_spec.rb\nLine 34: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub print_opt -h)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 176: expect(File.exist?(File.join(destination_root, \"doc\", \"config.rb\"))).to be false", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 176, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 64: end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 232: expect(File).to receive(:delete).with(path)", "file": "spec/runner_spec.rb", "symbol": "", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 12: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 20: require \"diff/lcs\" # You need diff/lcs installed to run specs (but not to run Thor).", "file": "spec/helper.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 23: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 74: # :cyan", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 27: Description:", "file": "spec/fixtures/group.thor", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 37: expect(runner.options.force).to be true", "file": "spec/actions_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 199: #", "file": "lib/thor.rb", "symbol": "", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 43: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).not_to match(/help/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 109: describe \"#source_paths_for_search\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 9: it \"sets shell value\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 34: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 8: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 71: #", "file": "lib/thor/actions.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 19: load_thorfile(\"encoding_implicit.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Comment capturer la sortie standard lors de l'appel de l'action ?", "query": "capture stdout invoke", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lang": "fr", "candidates": [{"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\ndefines invoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nsibling in spec/actions", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Comment capturer la sortie standard lors de l'appel de l'action ?", "query": "capture stdout invoke", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Comment capturer la sortie standard lors de l'appel de l'action ?", "query": "capture stdout invoke", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lang": "fr", "candidates": [{"text": "Next: read spec/actions/create_file_spec.rb lines=17-40\nread invoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=264-287\nread prepare_message for detail", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=249-272\nread banner for detail", "file": "lib/thor/group.rb", "symbol": "banner", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=772-795\nread basename for detail", "file": "lib/thor/base.rb", "symbol": "basename", "line": 772, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=170-193\nread inside for detail", "file": "lib/thor/actions.rb", "symbol": "inside", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=16-39\nread install for detail", "file": "Thorfile", "symbol": "install", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=258-281\nread set_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "set_color", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=59-82\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=108-131\nread long_description_unwrapped for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description_unwrapped", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=15-38\nread readline for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "readline", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=25-48\nread silence! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "silence!", "line": 25, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=53-76\nread remaining for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "remaining", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=24-47\nread find_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_by_namespace", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=472-495\nread commands for detail", "file": "lib/thor/base.rb", "symbol": "commands", "line": 472, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=105-128\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=165-188\nread print_in_columns for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_in_columns", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=10-33\nread create_file for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=99-122\nread file_level_lookup for detail", "file": "lib/thor/actions/directory.rb", "symbol": "file_level_lookup", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=360-383\nread answer_match for detail", "file": "lib/thor/shell/basic.rb", "symbol": "answer_match", "line": 360, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=21-44\nread revoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=21-44\nread check_for_extra_spaces for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "メッセージを標準出力に表示するメソッドを探して", "query": "puts msg", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lang": "ja", "candidates": [{"text": "File: spec/register_spec.rb\nLine 59: def say(msg)", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nLine 22: RED = \"\\e[31m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 122: stderr.flush", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 123: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 87: elsif colors.all? { |color| color.is_a?(Symbol) || color.is_a?(String) }", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 103: allow(@action.base).to receive(:file_name).and_return(\"expected\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 7: def bugs", "file": "spec/fixtures/help.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 27: # Set the terminal's foreground ANSI color to blue.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 31: @default", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 202: desc \"say hi to name\"", "file": "spec/group_spec.rb", "symbol": "", "line": 202, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 672: shell.say(group_name ? \"#{group_name} options:\" : \"Options:\")", "file": "lib/thor/base.rb", "symbol": "", "line": 672, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 74: expect(Thor::Runner.start).to eq(%w(horse))", "file": "spec/runner_spec.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 219: allow(FileUtils).to receive(:mkdir_p)", "file": "spec/runner_spec.rb", "symbol": "", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 47: invoke!(\"doc/README\", \"more content\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 4: DEFAULT_TERMINAL_WIDTH = 80", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 35: load File.join(File.dirname(__FILE__), \"fixtures\", \"invoke.thor\")", "file": "spec/helper.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 151: describe \"#say\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 151, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nLine 42: before do", "file": "spec/sort_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 30: shell.say \"Usage:\"", "file": "lib/thor/group.rb", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 79: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 24: SHELL_DELEGATED_METHODS = [:ask, :error, :set_color, :yes?, :no?, :say, :say_error, :say_status, :print_in_columns, :print_table, :print_wrapped, :file_collision, :terminal_width]", "file": "lib/thor/shell.rb", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 29: say \"+ #{diff.new_element.chomp}\", :green, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 62: describe \"#say\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 62, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 7: end", "file": "spec/command_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "メッセージを標準出力に表示するメソッドを探して", "query": "puts msg", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lang": "ja", "candidates": [{"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\ndefines say", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nsibling in spec", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nsibling in spec", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nsibling in spec", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "メッセージを標準出力に表示するメソッドを探して", "query": "puts msg", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "メッセージを標準出力に表示するメソッドを探して", "query": "puts msg", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/command.rb lines=109-132\nread sans_backtrace for detail", "file": "lib/thor/command.rb", "symbol": "sans_backtrace", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=59-82\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=113-136\nread indentation for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=28-51\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=114-137\nread relative_to_original_destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "relative_to_original_destination_root", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=12-35\nread file for detail", "file": "spec/actions_spec.rb", "symbol": "file", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=385-408\nread actually_gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "actually_gsub_file", "line": 385, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=27-50\nread source_root for detail", "file": "lib/thor/actions.rb", "symbol": "source_root", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=99-122\nread file_level_lookup for detail", "file": "lib/thor/actions/directory.rb", "symbol": "file_level_lookup", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=308-331\nread thor for detail", "file": "lib/thor/actions.rb", "symbol": "thor", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=750-773\nread from_superclass for detail", "file": "lib/thor/base.rb", "symbol": "from_superclass", "line": 750, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=66-89\nread method_exclusive_option_names for detail", "file": "lib/thor/command.rb", "symbol": "method_exclusive_option_names", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=68-91\nread reverse_merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=144-167\nread check_exclusive! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=8-31\nread action for detail", "file": "spec/actions_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Wie wird verhindert, dass die Standard-Attribut-Methoden als CLI-Befehle angezeigt werden?", "query": "attr_reader no_commands", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lang": "de", "candidates": [{"text": "File: lib/thor/parser/argument.rb\nLine 21: @banner = options[:banner] || default_banner", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 83: # given_destination #=> baz", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 73: old_verbose = $VERBOSE", "file": "spec/helper.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 14: base.extend ClassMethods", "file": "lib/thor/actions.rb", "symbol": "", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 11: def invoker", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 125: say \"Thor #{Thor::VERSION}\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 70: end", "file": "spec/register_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 64: klass.const_set(const_name, Class.new(Thor))", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 13: end", "file": "Thorfile", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 45: def key?(key)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 550: end", "file": "lib/thor.rb", "symbol": "", "line": 550, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 20: stdout.puts value", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 20: stdout.puts value", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 154: module ClassMethods", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nLine 66: klass, command = self.class.prepare_for_invocation(nil, #{name.inspect})", "file": "lib/thor/group.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 414: [\"Name\", \"Number\"], # rubocop: disable Style/WordArray", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 414, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 61: create string: \"name\", numeric: 13", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 64: def relative_matches", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 9: method_options :forcefully => :boolean", "file": "spec/fixtures/command.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 5: base.extend ClassMethods", "file": "lib/thor/invocation.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 217: # options:: :for is applied for previous defined command.", "file": "lib/thor.rb", "symbol": "", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 5: class_option \"fruit\", :aliases => \"-f\", :type => :string, :enum => %w(apple banana)", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 15: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Wie wird verhindert, dass die Standard-Attribut-Methoden als CLI-Befehle angezeigt werden?", "query": "attr_reader no_commands", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lang": "de", "candidates": [{"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Wie wird verhindert, dass die Standard-Attribut-Methoden als CLI-Befehle angezeigt werden?", "query": "attr_reader no_commands", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lang": "de", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Wie wird verhindert, dass die Standard-Attribut-Methoden als CLI-Befehle angezeigt werden?", "query": "attr_reader no_commands", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lang": "de", "candidates": [{"text": "Next: read lib/thor/actions/file_manipulation.rb lines=192-215\nread append_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "append_to_file", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=67-90\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=154-177\nread ClassMethods for detail", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=482-505\nread print_exclusive_options for detail", "file": "lib/thor.rb", "symbol": "print_exclusive_options", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=163-186\nread method_option for detail", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=333-356\nread at_least_one for detail", "file": "spec/fixtures/script.thor", "symbol": "at_least_one", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=322-345\nread quiet? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=189-212\nread assign_result! for detail", "file": "lib/thor/parser/options.rb", "symbol": "assign_result!", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=289-312\nread display_klasses for detail", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=17-40\nread Util for detail", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=37-60\nread fetch for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "fetch", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=10-33\nread Parent for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=60-83\nread invoke! for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=172-195\nread animal for detail", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=36-59\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=5-28\nread parse for detail", "file": "spec/parser/option_spec.rb", "symbol": "parse", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Je cherche comment vérifier si l'instance de Thor est actuellement en mode muet. J'ai besoin de savoir comment accéder à l'état de cette propriété.", "query": "check mute status", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lang": "fr", "candidates": [{"text": "File: lib/thor/actions/directory.rb\nLine 105: end", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 3: NUMERIC = /[-+]?(\\d*\\.\\d+|\\d+)/", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 12: describe \"#formatted_usage\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 49: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 200: silence(:stdout) { Thor::Runner.start(%w(uninstall random)) }", "file": "spec/runner_spec.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 1: require_relative \"column_printer\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 17: array.each_with_index do |value, index|", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 12: def define", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 72: # TODO: Implement #ask for Thor::Shell::HTML", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 224: # end", "file": "lib/thor.rb", "symbol": "", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 118: it \"returns correct Thor class and the command name with hypen when shared namespaces\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 96: # Receives a string and convert it to camel case. camel_case returns CamelCase.", "file": "lib/thor/util.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 135: expect(content).to match(%r{create doc/components})", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 5: describe Thor::Actions::InjectIntoFile do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 10: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 38: describe \"with_padding\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 204: class_option :loud, type: :boolean", "file": "spec/group_spec.rb", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 5: def self.exit_on_failure?", "file": "spec/fixtures/group.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 191: expect(MyCounter.command_exists?(\"one\")).to be true", "file": "spec/group_spec.rb", "symbol": "", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 21: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 18: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 31: def mute?", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 4: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 715: raise ArgumentError, \"You supplied :for => #{name.inspect}, but the command #{name.inspect} could not be found.\"", "file": "lib/thor/base.rb", "symbol": "", "line": 715, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche comment vérifier si l'instance de Thor est actuellement en mode muet. J'ai besoin de savoir comment accéder à l'état de cette propriété.", "query": "check mute status", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Je cherche comment vérifier si l'instance de Thor est actuellement en mode muet. J'ai besoin de savoir comment accéder à l'état de cette propriété.", "query": "check mute status", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lang": "fr", "candidates": [{"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche comment vérifier si l'instance de Thor est actuellement en mode muet. J'ai besoin de savoir comment accéder à l'état de cette propriété.", "query": "check mute status", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/actions/inject_into_file.rb lines=83-106\nread invoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "invoke!", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=274-297\nread Apple for detail", "file": "spec/fixtures/script.thor", "symbol": "Apple", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=4-27\nread EncodingOther for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "EncodingOther", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=79-102\nread shift for detail", "file": "lib/thor/parser/options.rb", "symbol": "shift", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=127-150\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=449-472\nread command_exists? for detail", "file": "lib/thor.rb", "symbol": "command_exists?", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=567-590\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=228-251\nread dispatch for detail", "file": "lib/thor/group.rb", "symbol": "dispatch", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=55-78\nread Parent for detail", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=21-44\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=8-31\nread encoding for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=206-229\nread PackageNameScript for detail", "file": "spec/fixtures/script.thor", "symbol": "PackageNameScript", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=750-773\nread from_superclass for detail", "file": "lib/thor/base.rb", "symbol": "from_superclass", "line": 750, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "명령행 인자를 파싱할 때 옵션의 별칭(aliases)이나 그룹화 정보, 그리고 기본값의 타입을 처리하는 로직에서 문제가 발생하고 있습니다. 특히 옵션의 속성들을 초기화하고 유형을 정의하는 부분을 확인해 주세요.", "query": "command line option parser", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lang": "ko", "candidates": [{"text": "File: spec/register_spec.rb\nLine 208: end", "file": "spec/register_spec.rb", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 340: # Array[Thor::Option.name]", "file": "lib/thor/base.rb", "symbol": "", "line": 340, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 70: execute!", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 9: true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 4: DEFAULT_TERMINAL_WIDTH = 80", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 73: expect(parse(\"bar\")).to eq(\"string\" => \"bar\", \"numeric\" => 3.0)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 2: class Option < Argument #:nodoc:", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions.rb\nLine 91: instance.revoke!", "file": "lib/thor/actions.rb", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 119: \"foo\"", "file": "spec/fixtures/group.thor", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 6: options[key] = Thor::Option.parse(key, value)", "file": "spec/command_spec.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 283: yield(self, klass)", "file": "lib/thor/group.rb", "symbol": "", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 11: opts[key] = Thor::Option.parse(key, value) unless value.is_a?(Thor::Option)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 123: on_file_clash_behavior", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 4: describe Thor::Option do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 108: expect(content).to match(/\\[--unused\\]/)", "file": "spec/group_spec.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 184: # Array[Thor::Option.name]", "file": "lib/thor.rb", "symbol": "", "line": 184, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nLine 7: options = {required: default.nil?, type: type, default: default}", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 30: expect(output).to eq(sub_help)", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 1: class Thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 237: # symlink points to 'ruby_install_name'", "file": "lib/thor/util.rb", "symbol": "", "line": 237, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 34: rescue ArgumentError => e", "file": "lib/thor/command.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 28: # Takes a hash of Thor::Option and a hash with defaults.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 11: @prompt = prompt", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 81: \"%#{maxima}s\"", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "명령행 인자를 파싱할 때 옵션의 별칭(aliases)이나 그룹화 정보, 그리고 기본값의 타입을 처리하는 로직에서 문제가 발생하고 있습니다. 특히 옵션의 속성들을 초기화하고 유형을 정의하는 부분을 확인해 주세요.", "query": "command line option parser", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "명령행 인자를 파싱할 때 옵션의 별칭(aliases)이나 그룹화 정보, 그리고 기본값의 타입을 처리하는 로직에서 문제가 발생하고 있습니다. 특히 옵션의 속성들을 초기화하고 유형을 정의하는 부분을 확인해 주세요.", "query": "command line option parser", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lang": "ko", "candidates": [{"text": "Next: read spec/actions/inject_into_file_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=393-416\nread class_at_least_one for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=145-168\nread chmod for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "chmod", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=48-71\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=311-334\nread MyOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyOptionScript", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=58-81\nread matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "matches", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=31-54\nread except for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=789-812\nread initialize_added for detail", "file": "lib/thor/base.rb", "symbol": "initialize_added", "line": 789, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=64-87\nread reverse_merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=46-69\nread use_path_completion? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "use_path_completion?", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=39-62\nread required? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "required?", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=104-127\nread can_display_colors? for detail", "file": "lib/thor/shell/color.rb", "symbol": "can_display_colors?", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=111-134\nread group for detail", "file": "spec/fixtures/group.thor", "symbol": "group", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=38-61\nread part_two for detail", "file": "spec/register_spec.rb", "symbol": "part_two", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=449-472\nread command_exists? for detail", "file": "lib/thor.rb", "symbol": "command_exists?", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=10-33\nread initialize for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "initialize", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "busca la clase que define un comando por defecto y permite pasar argumentos adicionales", "query": "thor default_command args", "file": "spec/register_spec.rb", "symbol": "SubcommandWithDefault", "line": 85, "lang": "es", "candidates": [{"text": "File: spec/parser/arguments_spec.rb\nLine 20: it \"parses arguments in the given order\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 3: class Amazing < Thor", "file": "spec/fixtures/command.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 13: end", "file": "lib/thor/command.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 282: # command:: the command to be executed.", "file": "lib/thor/actions.rb", "symbol": "", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 70: shell.padding -= 1", "file": "lib/thor/shell.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 81: next if File.directory?(file_source)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 306: # #=> thor list --all --substring=rails", "file": "lib/thor/actions.rb", "symbol": "", "line": 306, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 172: it \"presents commands in the default namespace with an empty namespace\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 13: puts \"expected #{SOME_STRING.encoding.name} to equal UTF-8\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 118: replace!(regexp, content, true)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 99: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 67: # destination:: the relative path to the destination root.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 172: config ||= {}", "file": "lib/thor/invocation.rb", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 321: # which existed before the beginning of the line in tact and will insert", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 1: $LOAD_PATH.unshift File.expand_path(\"../lib\", __FILE__)", "file": "Thorfile", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 2: protected", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 74: end", "file": "lib/thor/group.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 85: class SubcommandWithDefault < Thor", "file": "spec/register_spec.rb", "symbol": "SubcommandWithDefault", "line": 85, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 16: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 299: #", "file": "lib/thor/actions.rb", "symbol": "", "line": 299, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 22: @depth += 1", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 231: alternate_ruby << RbConfig::CONFIG[\"EXEEXT\"]", "file": "lib/thor/util.rb", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "busca la clase que define un comando por defecto y permite pasar argumentos adicionales", "query": "thor default_command args", "file": "spec/register_spec.rb", "symbol": "SubcommandWithDefault", "line": 85, "lang": "es", "candidates": [{"text": "File: spec/register_spec.rb\ndefines SubcommandWithDefault", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nsibling in spec", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nsibling in spec", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nsibling in spec", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nsibling in spec", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "busca la clase que define un comando por defecto y permite pasar argumentos adicionales", "query": "thor default_command args", "file": "spec/register_spec.rb", "symbol": "SubcommandWithDefault", "line": 85, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "busca la clase que define un comando por defecto y permite pasar argumentos adicionales", "query": "thor default_command args", "file": "spec/register_spec.rb", "symbol": "SubcommandWithDefault", "line": 85, "lang": "es", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=4-27\nread Thor for detail", "file": "lib/thor/rake_compat.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=109-132\nread CommandConflict for detail", "file": "spec/fixtures/group.thor", "symbol": "CommandConflict", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=64-87\nread relative_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "relative_matches", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=184-207\nread check_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type!", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=96-119\nread name_with_dashes for detail", "file": "spec/fixtures/script.thor", "symbol": "name_with_dashes", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=607-630\nread public_command for detail", "file": "lib/thor/base.rb", "symbol": "public_command", "line": 607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=42-65\nread formatted_usage for detail", "file": "lib/thor/command.rb", "symbol": "formatted_usage", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=112-135\nread private_file_name for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Thorfile lines=11-34\nread build for detail", "file": "Thorfile", "symbol": "build", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=161-184\nread class_options_help for detail", "file": "lib/thor/group.rb", "symbol": "class_options_help", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=793-816\nread dispatch for detail", "file": "lib/thor/base.rb", "symbol": "dispatch", "line": 793, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=83-106\nread convert_key for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "convert_key", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=85-108\nread SubcommandWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "SubcommandWithDefault", "line": 85, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=789-812\nread initialize_added for detail", "file": "lib/thor/base.rb", "symbol": "initialize_added", "line": 789, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "implementa uma função para carregar um arquivo thor a partir de um nome de arquivo fornecido", "query": "load thor file", "file": "spec/encoding_spec.rb", "symbol": "load_thorfile", "line": 6, "lang": "pt", "candidates": [{"text": "File: lib/thor/util.rb\nLine 4: module Sandbox #:nodoc:", "file": "lib/thor/util.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 29: # Set the terminal's foreground HTML color to white.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 15: super", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 52: it \"copies file from source to default destination\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 227: Thor::Util.load_thorfile(f, nil, options[:debug]) unless Thor::Base.subclass_files.keys.include?(File.expand_path(f))", "file": "lib/thor/runner.rb", "symbol": "", "line": 227, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nLine 28: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub print_opt --help)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 78: expect(@content).to match(/\\[\\-\\-third=THREE\\]/)", "file": "spec/group_spec.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 22: super", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/command.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 117: instance.parent_options = options", "file": "lib/thor/invocation.rb", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 33: if use_path_completion?", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 293: end.not_to raise_error", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 16: rescue", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 42: # If :exclude_pattern => /regexp/, prevents copying files that match that regexp.", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 15: # Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 20: :banner => \"THREE\", :aliases => \"-t\"", "file": "spec/fixtures/group.thor", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 769: #", "file": "lib/thor/base.rb", "symbol": "", "line": 769, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 3: gem_dir= File.expand_path(\"#{File.dirname(__FILE__)}/..\")", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 6: def load_thorfile(filename)", "file": "spec/encoding_spec.rb", "symbol": "load_thorfile", "line": 6, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 327: it \"does not mutate the provided config\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 7: rescue LoadError", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 18: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 609: # a command or alias.", "file": "lib/thor.rb", "symbol": "", "line": 609, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "implementa uma função para carregar um arquivo thor a partir de um nome de arquivo fornecido", "query": "load thor file", "file": "spec/encoding_spec.rb", "symbol": "load_thorfile", "line": 6, "lang": "pt", "candidates": [{"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\ndefines load_thorfile", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/command_spec.rb\nsibling in spec", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nsibling in spec", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nsibling in spec", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nsibling in spec", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "implementa uma função para carregar um arquivo thor a partir de um nome de arquivo fornecido", "query": "load thor file", "file": "spec/encoding_spec.rb", "symbol": "load_thorfile", "line": 6, "lang": "pt", "candidates": [{"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "implementa uma função para carregar um arquivo thor a partir de um nome de arquivo fornecido", "query": "load thor file", "file": "spec/encoding_spec.rb", "symbol": "load_thorfile", "line": 6, "lang": "pt", "candidates": [{"text": "Next: read spec/shell/html_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/html_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=105-128\nread wrong_arity for detail", "file": "spec/fixtures/group.thor", "symbol": "wrong_arity", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/encoding_spec.rb lines=6-29\nread load_thorfile for detail", "file": "spec/encoding_spec.rb", "symbol": "load_thorfile", "line": 6, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=115-138\nread H for detail", "file": "spec/fixtures/invoke.thor", "symbol": "H", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/group_spec.rb lines=206-229\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=32-55\nread completion_proc for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_proc", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=67-90\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=107-130\nread show_default? for detail", "file": "lib/thor/parser/option.rb", "symbol": "show_default?", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/verbose.thor lines=8-31\nread exit_on_failure? for detail", "file": "spec/fixtures/verbose.thor", "symbol": "exit_on_failure?", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=59-82\nread exit_on_failure? for detail", "file": "spec/subcommand_spec.rb", "symbol": "exit_on_failure?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=778-801\nread baseclass for detail", "file": "lib/thor/base.rb", "symbol": "baseclass", "line": 778, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=109-132\nread sans_backtrace for detail", "file": "lib/thor/command.rb", "symbol": "sans_backtrace", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=7-30\nread RakeTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "RakeTask", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=138-161\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=274-297\nread Apple for detail", "file": "spec/fixtures/script.thor", "symbol": "Apple", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=84-107\nread unshift for detail", "file": "lib/thor/parser/options.rb", "symbol": "unshift", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=253-276\nread thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles", "line": 253, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "指定したソースから相対パスへリンクを作成する処理を探して", "query": "create link", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lang": "ja", "candidates": [{"text": "File: lib/thor/parser/options.rb\nLine 10: # Receives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 56: # Common methods that are delegated to the shell.", "file": "lib/thor/shell.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 4: module Actions", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 44: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 20: desc \"release\", \"Create tag v#{Thor::VERSION} and build and push thor-#{Thor::VERSION}.gem to Rubygems\"", "file": "Thorfile", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 33: attr_reader :data", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 85: end", "file": "spec/command_spec.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 5: describe Thor::Actions::CreateLink, unless: windows? do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 4: module Actions", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nLine 43: `git ls-files`.split(\"\\n\").each do |filename|", "file": "spec/quality_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 2: include Thor::Actions", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 5: describe Thor::Actions::Directory do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\nLine 4: module Actions", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/option_spec.rb\nLine 114: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 26: RSpec.describe \"Thor tree command\" do", "file": "spec/tree_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 79: describe \"and is identical\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 12: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 80: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 118: replace!(regexp, content, true)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 8: puts \"Invoked!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 78: ARGV.replace %w(my_script -T horse)", "file": "spec/runner_spec.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 17: name", "file": "lib/thor/invocation.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 2: include Thor::Actions", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "指定したソースから相対パスへリンクを作成する処理を探して", "query": "create link", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lang": "ja", "candidates": [{"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "指定したソースから相対パスへリンクを作成する処理を探して", "query": "create link", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "指定したソースから相対パスへリンクを作成する処理を探して", "query": "create link", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/parser/argument.rb lines=39-62\nread required? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "required?", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/create_link.rb lines=40-63\nread invoke! for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=262-285\nread argument for detail", "file": "lib/thor/base.rb", "symbol": "argument", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=84-107\nread unshift for detail", "file": "lib/thor/parser/options.rb", "symbol": "unshift", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=37-60\nread diff_lcs_loaded? for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=6-29\nread Thor for detail", "file": "lib/thor/shell/color.rb", "symbol": "Thor", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=170-193\nread inside for detail", "file": "lib/thor/actions.rb", "symbol": "inside", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=589-612\nread defined_in_gem? for detail", "file": "lib/thor.rb", "symbol": "defined_in_gem?", "line": 589, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=21-44\nread output_diff_line for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "output_diff_line", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=69-92\nread initialize for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=35-58\nread identical? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "identical?", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=32-55\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=47-70\nread SubcommandTest1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "SubcommandTest1", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=138-161\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=73-96\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Necesito saber por qué las invocaciones de métodos de esta clase no están acumulando correctamente las definidas en las clases padre. Parece que el método que gestiona estas invocaciones no está fusionando correctamente los valores heredados, lo que provoca que se pierdan configuraciones o comandos definidos en la jerarquía de clases.", "query": "merge superclass invocations", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lang": "es", "candidates": [{"text": "File: spec/quality_spec.rb\nLine 57: next unless filename =~ included", "file": "spec/quality_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 33: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/subcommand1/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 19: @type = (type || :string).to_sym", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 43: def show_default?", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 323: # Allow current root to be shared between invocations.", "file": "lib/thor/actions.rb", "symbol": "", "line": 323, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nLine 53: yield", "file": "spec/helper.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 168: # This is disabled by default to allow dynamic invocations.", "file": "lib/thor/base.rb", "symbol": "", "line": 168, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 11: self.options = other.options.dup if other.options", "file": "lib/thor/command.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 11: # available only in class methods invocations (i.e. in Thor::Group).", "file": "lib/thor/invocation.rb", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nLine 5: true", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 39: def invocations #:nodoc:", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nLine 15: CLEAR = \"\\e[0m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 335: at_least_one :after1, :after2, :for => :at_least_one", "file": "spec/fixtures/script.thor", "symbol": "", "line": 335, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 75: # Allow shell to be shared between invocations.", "file": "lib/thor/shell.rb", "symbol": "", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 38: instance_eval do", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 44: # for injection (:after or :before) or :force => true for", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 16: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 60: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 12: # The start of an HTML bold sequence.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 5: false", "file": "spec/fixtures/command.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 587: alias_method :create_task, :create_command", "file": "lib/thor.rb", "symbol": "", "line": 587, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 13: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 5: module LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 18: # Don't output trailing spaces when printing the last column", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Necesito saber por qué las invocaciones de métodos de esta clase no están acumulando correctamente las definidas en las clases padre. Parece que el método que gestiona estas invocaciones no está fusionando correctamente los valores heredados, lo que provoca que se pierdan configuraciones o comandos definidos en la jerarquía de clases.", "query": "merge superclass invocations", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lang": "es", "candidates": [{"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Necesito saber por qué las invocaciones de métodos de esta clase no están acumulando correctamente las definidas en las clases padre. Parece que el método que gestiona estas invocaciones no está fusionando correctamente los valores heredados, lo que provoca que se pierdan configuraciones o comandos definidos en la jerarquía de clases.", "query": "merge superclass invocations", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lang": "es", "candidates": [{"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Necesito saber por qué las invocaciones de métodos de esta clase no están acumulando correctamente las definidas en las clases padre. Parece que el método que gestiona estas invocaciones no está fusionando correctamente los valores heredados, lo que provoca que se pierdan configuraciones o comandos definidos en la jerarquía de clases.", "query": "merge superclass invocations", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lang": "es", "candidates": [{"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=31-54\nread GroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "GroupPlugin", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=110-133\nread invoke_from_option for detail", "file": "lib/thor/group.rb", "symbol": "invoke_from_option", "line": 110, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=45-68\nread invocation_blocks for detail", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=50-73\nread PluginInheritingFromClassOptionsGroup for detail", "file": "spec/register_spec.rb", "symbol": "PluginInheritingFromClassOptionsGroup", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=37-60\nread fetch for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "fetch", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=329-352\nread _cleanup_options_and_set for detail", "file": "lib/thor/actions.rb", "symbol": "_cleanup_options_and_set", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=24-47\nread remaining for detail", "file": "spec/parser/options_spec.rb", "symbol": "remaining", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=31-54\nread file for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=89-112\nread action for detail", "file": "lib/thor/actions.rb", "symbol": "action", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=12-35\nread command2 for detail", "file": "spec/tree_spec.rb", "symbol": "command2", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=613-636\nread normalize_command_name for detail", "file": "lib/thor.rb", "symbol": "normalize_command_name", "line": 613, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=174-197\nread normalize_aliases for detail", "file": "lib/thor/parser/option.rb", "symbol": "normalize_aliases", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=43-66\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "명령 실행 시 쉘 인스턴스를 공유하도록 설정하는 로직이 어디에 있지?", "query": "shared shell configuration", "file": "lib/thor/shell.rb", "symbol": "_shared_configuration", "line": 77, "lang": "ko", "candidates": [{"text": "File: lib/thor/invocation.rb\nLine 145: def _shared_configuration #:nodoc:", "file": "lib/thor/invocation.rb", "symbol": "", "line": 145, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nLine 7: puts options['fruit']", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 36: list.sort!", "file": "spec/sort_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 54: enum.join(\", \")", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 28: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 6: class << self", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 245: expect(capture(:stderr) do", "file": "spec/thor_spec.rb", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 37: DidYouMean::SpellChecker.new(dictionary: error.all_commands)", "file": "lib/thor/error.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 312: desc \"exclusive\", \"\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 312, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 77: def _shared_configuration #:nodoc:", "file": "lib/thor/shell.rb", "symbol": "_shared_configuration", "line": 77, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/arguments_spec.rb\nLine 38: create string: nil, array: nil", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 8: desc \"describe NAME\", \"say that someone is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 17: # Set the terminal's foreground HTML color to red.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 107: ENV[\"THOR_DEBUG\"] = \"1\"", "file": "spec/base_spec.rb", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 66: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 61: super(base, destination, {recursive: true}.merge(config))", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 325: def _shared_configuration #:nodoc:", "file": "lib/thor/actions.rb", "symbol": "", "line": 325, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nLine 80: end", "file": "lib/thor/error.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 390: #", "file": "lib/thor/base.rb", "symbol": "", "line": 390, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 78: end", "file": "spec/command_spec.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 36: capture(:stdout) { action.revoke! }", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 154: previous_value = File::ALT_SEPARATOR", "file": "spec/util_spec.rb", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 4: describe Thor::Argument do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "명령 실행 시 쉘 인스턴스를 공유하도록 설정하는 로직이 어디에 있지?", "query": "shared shell configuration", "file": "lib/thor/shell.rb", "symbol": "_shared_configuration", "line": 77, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "명령 실행 시 쉘 인스턴스를 공유하도록 설정하는 로직이 어디에 있지?", "query": "shared shell configuration", "file": "lib/thor/shell.rb", "symbol": "_shared_configuration", "line": 77, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "명령 실행 시 쉘 인스턴스를 공유하도록 설정하는 로직이 어디에 있지?", "query": "shared shell configuration", "file": "lib/thor/shell.rb", "symbol": "_shared_configuration", "line": 77, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=139-162\nread parse_numeric for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_numeric", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=4-27\nread command for detail", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=221-244\nread ruby_command for detail", "file": "lib/thor/util.rb", "symbol": "ruby_command", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=112-135\nread private_file_name for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=13-36\nread invoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=44-67\nread initialize for detail", "file": "lib/thor/shell.rb", "symbol": "initialize", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=219-242\nread strict_args_position for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=56-79\nread revoke! for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "revoke!", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=39-62\nread required? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "required?", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=325-348\nread subcommand_classes for detail", "file": "lib/thor.rb", "symbol": "subcommand_classes", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=4-27\nread Base for detail", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=253-276\nread zero_args for detail", "file": "spec/fixtures/script.thor", "symbol": "zero_args", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=23-46\nread Shell for detail", "file": "lib/thor/shell.rb", "symbol": "Shell", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/html.rb lines=79-102\nread can_display_colors? for detail", "file": "lib/thor/shell/html.rb", "symbol": "can_display_colors?", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=77-100\nread _shared_configuration for detail", "file": "lib/thor/shell.rb", "symbol": "_shared_configuration", "line": 77, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=12-35\nread exists_and_identical? for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=42-65\nread formatted_usage for detail", "file": "lib/thor/command.rb", "symbol": "formatted_usage", "line": 42, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "There is a way to trigger the execution of a group task by passing a specific string through a command line option, but I need to see how this mechanism is implemented in the test fixtures.", "query": "thor group invoke", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lang": "en", "candidates": [{"text": "File: spec/shell/html_spec.rb\nLine 26: it \"uses color to say status\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 59: expect(File.symlink?(destination_path)).to be false", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 133: end", "file": "lib/thor.rb", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 155: success = content.gsub!(regexp, string)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 154: invoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 197: invoke_with_a_bang!(\"doc/README\", \"more specific content\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 197, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 119: end", "file": "lib/thor/command.rb", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 326: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 1: #!/usr/bin/ruby", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 110: class G < Thor::Group", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell.rb\nLine 44: def initialize(args = [], options = {}, config = {})", "file": "lib/thor/shell.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 173: end", "file": "spec/register_spec.rb", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 110: destination = File.join(thor_root, thor_yaml[as][:filename])", "file": "lib/thor/runner.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 17: Rake::Task[\"install\"].execute", "file": "Thorfile", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 15: def parse(*args)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 53: # contents", "file": "lib/thor/util.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 116: @content = capture(:stdout) { G.start }", "file": "spec/group_spec.rb", "symbol": "", "line": 116, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 230: expect(FileUtils).to receive(:rm_rf).with(path)", "file": "spec/runner_spec.rb", "symbol": "", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 82: end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 17: Rake::Task[\"install\"].execute", "file": "Thorfile", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 125: # Holds source paths in instance so they can be manipulated.", "file": "lib/thor/actions.rb", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 57: SHELL_DELEGATED_METHODS.each do |method|", "file": "lib/thor/shell.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 12: puts \"ok\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 350: correct_answer = nil", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 350, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "There is a way to trigger the execution of a group task by passing a specific string through a command line option, but I need to see how this mechanism is implemented in the test fixtures.", "query": "thor group invoke", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lang": "en", "candidates": [{"text": "File: spec/fixtures/invoke.thor\ndefines G", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "There is a way to trigger the execution of a group task by passing a specific string through a command line option, but I need to see how this mechanism is implemented in the test fixtures.", "query": "thor group invoke", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lang": "en", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=62-85\nread InvocationError for detail", "file": "lib/thor/error.rb", "symbol": "InvocationError", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=158-181\nread parse_string for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_string", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=4-27\nread EncodingWithUtf8 for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=126-149\nread on_file_clash_behavior for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_file_clash_behavior", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=243-266\nread ChildDefault for detail", "file": "spec/fixtures/script.thor", "symbol": "ChildDefault", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=71-94\nread example_default_command for detail", "file": "spec/fixtures/script.thor", "symbol": "example_default_command", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=58-81\nread initialize for detail", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=22-45\nread SuperSecretPlugin for detail", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=76-99\nread unshift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "unshift", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=17-40\nread invoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=556-579\nread dynamic_command_class for detail", "file": "lib/thor.rb", "symbol": "dynamic_command_class", "line": 556, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/script_exit_status_spec.rb lines=2-25\nread thor_command for detail", "file": "spec/script_exit_status_spec.rb", "symbol": "thor_command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=84-107\nread unshift for detail", "file": "lib/thor/parser/options.rb", "symbol": "unshift", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=109-132\nread CommandConflict for detail", "file": "spec/fixtures/group.thor", "symbol": "CommandConflict", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=110-133\nread G for detail", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=368-391\nread merge for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge", "line": 368, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "查找用于定义属性写入器并排除在命令行列表之外的方法实现", "query": "attr_writer no_commands", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lang": "zh", "candidates": [{"text": "File: lib/thor/shell.rb\nLine 6: attr_writer :shell", "file": "lib/thor/shell.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nLine 27: it \"accepts the help switch and calls the help command on the subcommand\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 282: file = File.join(destination_root, \"doc/config.yaml\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 41: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 9: attr_writer :another_attribute", "file": "spec/fixtures/script.thor", "symbol": "", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 295: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 295, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 44: # Set the terminal's background HTML color to cyan.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 159: def attr_writer(*) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/options.rb\nLine 166: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 8: # Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 44: constant = constant.to_s.gsub(/^Thor::Sandbox::/, \"\")", "file": "lib/thor/util.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 115: on_conflict_behavior(&block)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 64: alias_method :inject_into_file, :insert_into_file", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 351: it \"does not add attr_writer as a command\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 351, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 106: Thor.send :remove_const, :Help", "file": "spec/util_spec.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 397: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 397, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 103: \"more content\\n\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 4: desc \"snack\"", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 98: return shift if peek.is_a?(Hash)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 235: end", "file": "spec/group_spec.rb", "symbol": "", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 92: # or tab character, a new line is not appended (print + flush). Otherwise", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 5: module LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 28: $thor_runner = true", "file": "spec/helper.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "查找用于定义属性写入器并排除在命令行列表之外的方法实现", "query": "attr_writer no_commands", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lang": "zh", "candidates": [{"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "查找用于定义属性写入器并排除在命令行列表之外的方法实现", "query": "attr_writer no_commands", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lang": "zh", "candidates": [{"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "查找用于定义属性写入器并排除在命令行列表之外的方法实现", "query": "attr_writer no_commands", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/nested_context.rb lines=25-48\nread pop for detail", "file": "lib/thor/nested_context.rb", "symbol": "pop", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=20-43\nread unix? for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "unix?", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=254-277\nread self_command for detail", "file": "lib/thor/group.rb", "symbol": "self_command", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=7-30\nread RakeTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "RakeTask", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=420-443\nread stop_on_unknown_option! for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option!", "line": 420, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=103-126\nread files for detail", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=2-25\nread NestedContext for detail", "file": "lib/thor/nested_context.rb", "symbol": "NestedContext", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=216-239\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=159-182\nread attr_writer for detail", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/command.rb lines=87-110\nread not_debugging? for detail", "file": "lib/thor/command.rb", "symbol": "not_debugging?", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=276-299\nread _invoke_for_class_method for detail", "file": "lib/thor/group.rb", "symbol": "_invoke_for_class_method", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=128-151\nread bar for detail", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=100-123\nread private_method? for detail", "file": "lib/thor/command.rb", "symbol": "private_method?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=11-34\nread HashWithIndifferentAccess for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=15-38\nread parse for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "parse", "line": 15, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Je cherche à créer une commande Thor qui ne s'affiche pas dans l'aide mais reste exécutable depuis la ligne de commande. Pourriez-vous me montrer comment implémenter cette classe de commande spécifique ?", "query": "hidden command thor", "file": "lib/thor/command.rb", "symbol": "HiddenCommand", "line": 129, "lang": "fr", "candidates": [{"text": "File: lib/thor/error.rb\nLine 51: end", "file": "lib/thor/error.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 129: class HiddenCommand < Command", "file": "lib/thor/command.rb", "symbol": "HiddenCommand", "line": 129, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nLine 112: verbose = options.fetch(:verbose, :white)", "file": "lib/thor/group.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 29: end", "file": "Thorfile", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 37: completion_options.select { |option| option.start_with?(text) }", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 54: # end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 13: puts \"expected #{SOME_STRING.encoding.name} to equal UTF-8\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 16: @padding = 0", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 12: words = unwrapped.split(\" \")", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 80: true", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 6: def load_thorfile(filename)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 8: desc \"describe NAME\", \"say that someone is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 541: MyScript.start(%w(f), shell: shell)", "file": "spec/thor_spec.rb", "symbol": "", "line": 541, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 215: #", "file": "lib/thor/actions.rb", "symbol": "", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 59: AmbiguousTaskError = AmbiguousCommandError", "file": "lib/thor/error.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 269: options[:required]", "file": "lib/thor/base.rb", "symbol": "", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 568: base_class = @hide ? Thor::HiddenCommand : Thor::Command", "file": "lib/thor.rb", "symbol": "", "line": 568, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nLine 14: def self.exit_on_failure?", "file": "lib/thor/runner.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 26: end.compact!", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 371: it \"subtracts when appending\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 104: class F < Thor::Group", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 75: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 305: # thor :list, :all => true, :substring => 'rails'", "file": "lib/thor/actions.rb", "symbol": "", "line": 305, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 1: require \"helper\"", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche à créer une commande Thor qui ne s'affiche pas dans l'aide mais reste exécutable depuis la ligne de commande. Pourriez-vous me montrer comment implémenter cette classe de commande spécifique ?", "query": "hidden command thor", "file": "lib/thor/command.rb", "symbol": "HiddenCommand", "line": 129, "lang": "fr", "candidates": [{"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche à créer une commande Thor qui ne s'affiche pas dans l'aide mais reste exécutable depuis la ligne de commande. Pourriez-vous me montrer comment implémenter cette classe de commande spécifique ?", "query": "hidden command thor", "file": "lib/thor/command.rb", "symbol": "HiddenCommand", "line": 129, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/actions/inject_into_file.rb lines=107-130\nread revoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "revoke!", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=190-213\nread thor_root for detail", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=168-191\nread user_home for detail", "file": "lib/thor/util.rb", "symbol": "user_home", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=174-197\nread normalize_aliases for detail", "file": "lib/thor/parser/option.rb", "symbol": "normalize_aliases", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=85-108\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=61-84\nread namespace for detail", "file": "lib/thor/rake_compat.rb", "symbol": "namespace", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=347-370\nread ask_filtered for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_filtered", "line": 347, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=434-457\nread disable_required_check! for detail", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=129-152\nread HiddenCommand for detail", "file": "lib/thor/command.rb", "symbol": "HiddenCommand", "line": 129, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=112-135\nread private_file_name for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=4-27\nread command for detail", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=138-161\nread say_status for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "say_status", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=420-443\nread stop_on_unknown_option! for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option!", "line": 420, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=692-715\nread build_command_tree for detail", "file": "lib/thor.rb", "symbol": "build_command_tree", "line": 692, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "utf-8 인코딩이 올바르게 적용되었는지 확인하고 테스트하는 thor 명령어를 작성해줘", "query": "thor utf-8 encoding test", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "EncodingImplicit", "line": 3, "lang": "ko", "candidates": [{"text": "File: spec/shell/color_spec.rb\nLine 187: colorless = shell.set_color \"hi!\", :white", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 269: def can_display_colors?", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 67: def one", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 37: def fetch(key, *args)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 90: # is invoked all options are parsed again, so RR can extract only the options", "file": "lib/thor/invocation.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 130: it \"logs status\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 196: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 427: def remove_argument(*names)", "file": "lib/thor/base.rb", "symbol": "", "line": 427, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 10: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 3: class EncodingImplicit < Thor", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "EncodingImplicit", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 9: paras = message.split(\"\\n\\n\")", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 1: require \"helper\"", "file": "spec/shell_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 625: end", "file": "lib/thor.rb", "symbol": "", "line": 625, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 10: def self.best_available", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 13: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 212: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 212, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 6: def self.available?", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 178: end", "file": "spec/register_spec.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 104: class AtLeastOneRequiredArgumentError < InvocationError", "file": "lib/thor/error.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 7: end", "file": "spec/util_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 20: expect(capture(:stdout) { Thor::Sandbox::EncodingImplicit.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nLine 8: def corrections", "file": "lib/thor/error.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 5: base.extend ClassMethods", "file": "lib/thor/invocation.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "utf-8 인코딩이 올바르게 적용되었는지 확인하고 테스트하는 thor 명령어를 작성해줘", "query": "thor utf-8 encoding test", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "EncodingImplicit", "line": 3, "lang": "ko", "candidates": [{"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\ndefines EncodingImplicit", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "utf-8 인코딩이 올바르게 적용되었는지 확인하고 테스트하는 thor 명령어를 작성해줘", "query": "thor utf-8 encoding test", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "EncodingImplicit", "line": 3, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "utf-8 인코딩이 올바르게 적용되었는지 확인하고 테스트하는 thor 명령어를 작성해줘", "query": "thor utf-8 encoding test", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "EncodingImplicit", "line": 3, "lang": "ko", "candidates": [{"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=8-31\nread encoding for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=201-224\nread paint for detail", "file": "spec/fixtures/script.thor", "symbol": "paint", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=3-26\nread EncodingImplicit for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "EncodingImplicit", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=363-386\nread check_unknown_options? for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options?", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=81-104\nread call_unexistent_method for detail", "file": "spec/fixtures/script.thor", "symbol": "call_unexistent_method", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=94-117\nread with_args for detail", "file": "spec/register_spec.rb", "symbol": "with_args", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=211-234\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=4-27\nread Shell for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=159-182\nread attr_writer for detail", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=377-400\nread merge_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge_tool", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=177-200\nread check_unknown_options? for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=108-131\nread are_colors_supported? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=21-44\nread output_diff_line for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "output_diff_line", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=52-75\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=139-162\nread parse_numeric for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_numeric", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=446-469\nread remove_class_option for detail", "file": "lib/thor/base.rb", "symbol": "remove_class_option", "line": 446, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=9-32\nread option for detail", "file": "spec/parser/option_spec.rb", "symbol": "option", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=329-352\nread _cleanup_options_and_set for detail", "file": "lib/thor/actions.rb", "symbol": "_cleanup_options_and_set", "line": 329, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "The logic that populates the internal tracking of mandatory parameters and default values from an input list seems to be missing a check for whether a default value is present before deciding if a parameter must be flagged as unassigned.", "query": "argument requirements defaults", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lang": "en", "candidates": [{"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 8: puts \"Invoked!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 45: error_messages << check_for_tab_characters(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 24: next if line =~ /^\\s+#.*\\s+\\n$/", "file": "spec/quality_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 29: def five(number)", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 95: end", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 659: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 659, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 9: method_options :forcefully => :boolean", "file": "spec/fixtures/command.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 43: class ClassOptionGroupPlugin < Thor::Group", "file": "spec/register_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 32: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 69: def initialize(base, destination, data, config)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 234: if File.symlink? alternate_ruby", "file": "lib/thor/util.rb", "symbol": "", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 40: expect(task).to be", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 16: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 9: def initialize(stdout, options = {})", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 35: def initialize(base, destination, data, config = {})", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nLine 7: class Test < Thor", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 34: def initialize(base, destination, config = {})", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 8: def initialize(stdout, options = {})", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nLine 86: @switches = switches", "file": "lib/thor/error.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 12: def initialize(hash = {})", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 26: def initialize(arguments = [])", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 20: private", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 47: # directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "The logic that populates the internal tracking of mandatory parameters and default values from an input list seems to be missing a check for whether a default value is present before deciding if a parameter must be flagged as unassigned.", "query": "argument requirements defaults", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lang": "en", "candidates": [{"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "The logic that populates the internal tracking of mandatory parameters and default values from an input list seems to be missing a check for whether a default value is present before deciding if a parameter must be flagged as unassigned.", "query": "argument requirements defaults", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lang": "en", "candidates": [{"text": "Next: read lib/thor/parser/option.rb lines=174-197\nread normalize_aliases for detail", "file": "lib/thor/parser/option.rb", "symbol": "normalize_aliases", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_link_spec.rb lines=35-58\nread revoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "revoke!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=160-183\nread dasherized? for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherized?", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=239-262\nread inject_into_module for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_module", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=329-352\nread class_option for detail", "file": "lib/thor/base.rb", "symbol": "class_option", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=10-33\nread Parent for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=261-284\nread two_args for detail", "file": "spec/fixtures/script.thor", "symbol": "two_args", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=166-189\nread _parse_initialization_options for detail", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=54-77\nread set_color for detail", "file": "lib/thor/shell/html.rb", "symbol": "set_color", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=30-53\nread current_command_chain for detail", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=215-238\nread strict_args_position! for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=179-202\nread names_to_switch_names for detail", "file": "lib/thor/parser/options.rb", "symbol": "names_to_switch_names", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=94-117\nread with_args for detail", "file": "spec/register_spec.rb", "symbol": "with_args", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=40-63\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=145-168\nread chmod for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "chmod", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=99-122\nread destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "destination_root", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Wo wird diese leere Methode in den Tests aufgerufen?", "query": "empty method call", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lang": "de", "candidates": [{"text": "File: lib/thor/parser/option.rb\nLine 73: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 11: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 11: def a; end", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 64: it \"accepts data as a block\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 64, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nLine 264: expect(runner.instance_variable_get(\"@foo\")).to eq(\"FOO\")", "file": "spec/actions_spec.rb", "symbol": "", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 14: ].detect(&:available?)", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 70: execute!", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 49: it \"prints a message to the user and gets the response\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 166: my_script2 = Class.new(Thor) do", "file": "spec/thor_spec.rb", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 14: describe \"with value as a symbol\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nLine 22: desc \"sub\", \"Subcommands\"", "file": "spec/tree_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 78: flavors = %w(strawberry chocolate vanilla)", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 24: it \"does not set the color if specified and NO_COLOR is set to a non-empty value\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 11: if SOME_STRING.encoding.name == \"ISO-8859-7\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 102: end", "file": "spec/base_spec.rb", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 14: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 61: elsif required = (value == :required) # rubocop:disable Lint/AssignmentInCondition", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 82: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 29: it \"prints a tree of all commands\" do", "file": "spec/tree_spec.rb", "symbol": "", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nLine 69: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 132: def on_conflict_behavior", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 41: # Sets the output padding while executing a block and resets it.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 65: end", "file": "spec/group_spec.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 15: _, exit_status= Process.wait2(pid)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Wo wird diese leere Methode in den Tests aufgerufen?", "query": "empty method call", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lang": "de", "candidates": [{"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nsibling in spec", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nsibling in spec", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\ndefines a", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Wo wird diese leere Methode in den Tests aufgerufen?", "query": "empty method call", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lang": "de", "candidates": [{"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Wo wird diese leere Methode in den Tests aufgerufen?", "query": "empty method call", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lang": "de", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=130-153\nread say_status for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_status", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=231-254\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=85-108\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=191-214\nread open for detail", "file": "spec/fixtures/script.thor", "symbol": "open", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=53-76\nread merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=210-233\nread Scripts for detail", "file": "spec/fixtures/script.thor", "symbol": "Scripts", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=4-27\nread shell for detail", "file": "spec/sort_spec.rb", "symbol": "shell", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=64-87\nread reverse_merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=145-168\nread chmod for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "chmod", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=72-95\nread initialize for detail", "file": "lib/thor/actions.rb", "symbol": "initialize", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=120-143\nread I for detail", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=35-58\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=246-269\nread method_at_least_one for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Ich möchte eine Thor-Befehlsgruppe erstellen, die einen Snack-Wahlprozess simuliert. Der Befehl muss eine Option für die Fruchtakzeptanz anbieten, die auf Apfel und Banane beschränkt ist.", "query": "Thor class option enum", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lang": "de", "candidates": [{"text": "File: lib/thor/actions/directory.rb\nLine 94: base.copy_file(file_source, file_destination, config, &@block)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 24: GREEN = \"\\e[32m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 61: it \"returns the given destination\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/subcommand_spec.rb\nLine 6: barn_help = capture(:stdout) { Scripts::MyDefaults.start(%w(barn)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 529: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 529, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 14: # Embed in a String to clear all previous ANSI sequences.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 202: it \"sets color when the NO_COLOR environment variable is ignored for being an empty string\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 442: expect(exclusives.first).to eq(%w[one two three])", "file": "spec/thor_spec.rb", "symbol": "", "line": 442, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 72: else", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 13: def initialize #:nodoc:", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 207: File.directory?(file) ? File.join(file, \"main.thor\") : file", "file": "lib/thor/util.rb", "symbol": "", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 620: do some fooing", "file": "spec/thor_spec.rb", "symbol": "", "line": 620, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 9: # destination:: the relative path to the destination root.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 265: true", "file": "lib/thor/group.rb", "symbol": "", "line": 265, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 14: def ok", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 99: end", "file": "lib/thor/error.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 619: ::FileUtils.cp_r(source_root, destination_root)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 619, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 107: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 12: puts \"ok\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 209: content = capture(:stdout) { Enum.help(Thor::Base.shell.new) }", "file": "spec/base_spec.rb", "symbol": "", "line": 209, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nLine 15: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 43: ON_MAGENTA = \"background-color: magenta\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 33: # expand %something%, this `something` should be a public method in the class calling", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Ich möchte eine Thor-Befehlsgruppe erstellen, die einen Snack-Wahlprozess simuliert. Der Befehl muss eine Option für die Fruchtakzeptanz anbieten, die auf Apfel und Banane beschränkt ist.", "query": "Thor class option enum", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lang": "de", "candidates": [{"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\ndefines Enum", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Ich möchte eine Thor-Befehlsgruppe erstellen, die einen Snack-Wahlprozess simuliert. Der Befehl muss eine Option für die Fruchtakzeptanz anbieten, die auf Apfel und Banane beschränkt ist.", "query": "Thor class option enum", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lang": "de", "candidates": [{"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Ich möchte eine Thor-Befehlsgruppe erstellen, die einen Snack-Wahlprozess simuliert. Der Befehl muss eine Option für die Fruchtakzeptanz anbieten, die auf Apfel und Banane beschränkt ist.", "query": "Thor class option enum", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lang": "de", "candidates": [{"text": "Next: read lib/thor/util.rb lines=168-191\nread user_home for detail", "file": "lib/thor/util.rb", "symbol": "user_home", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=58-81\nread initialize for detail", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "LineEditor", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=67-90\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=103-126\nread files for detail", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=59-82\nread no_or_skip? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=61-84\nread world for detail", "file": "spec/fixtures/group.thor", "symbol": "world", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=567-590\nread namespace for detail", "file": "lib/thor/base.rb", "symbol": "namespace", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=6-29\nread snack for detail", "file": "spec/fixtures/enum.thor", "symbol": "snack", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/directory_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=98-121\nread MalformattedArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "MalformattedArgumentError", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=1-24\nread Enum for detail", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=131-154\nread find_class_and_command_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_class_and_command_by_namespace", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=45-68\nread invocation_blocks for detail", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Comment hériter de Thor::Shell::Basic et ajouter la possibilité de définir les couleurs tout en incluant LCSDiff ?", "query": "shell color ansi", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lang": "fr", "candidates": [{"text": "File: spec/parser/option_spec.rb\nLine 70: expect(parse(:foo, \"bar\").type).to eq(:string)", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 11: load_thorfile(\"encoding_with_utf8.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 17: Thor::Shell::Color", "file": "lib/thor/shell.rb", "symbol": "", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 3: class EncodingImplicit < Thor", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 3: describe Thor::Shell::Color do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 5: begin", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 152: describe \".register-ing a Thor subclass\" do", "file": "spec/register_spec.rb", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 164: it \"invokes the default command correctly\" do", "file": "spec/register_spec.rb", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 39: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 36: @data = data", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 130: it \"logs status\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 3: class ExitStatus < Thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 4: SOME_STRING = \"Some λέξεις 一些词 🎉\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 402: [\"Name\", \"Number\", \"Color\"], # rubocop: disable Style/WordArray", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 402, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nLine 226: group_output = capture(:stdout) { BoringVendorProvidedCLI.start(%w(zoo)) }", "file": "spec/register_spec.rb", "symbol": "", "line": 226, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 67: desc \"say MSG [MSG]\", \"print multiple messages\"", "file": "spec/register_spec.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 187: expect(action(:get, \"doc/README\", \"docs/README\")).to eq(\" create docs/README\\n\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 23: subcommand \"sub\", SubApp", "file": "spec/tree_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 35: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 11: class Color < Basic", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/util.rb\nLine 39: #", "file": "lib/thor/util.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 54: #", "file": "lib/thor/util.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 14: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 13: desc \"ok\", \"exit with no error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Comment hériter de Thor::Shell::Basic et ajouter la possibilité de définir les couleurs tout en incluant LCSDiff ?", "query": "shell color ansi", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lang": "fr", "candidates": [{"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Comment hériter de Thor::Shell::Basic et ajouter la possibilité de définir les couleurs tout en incluant LCSDiff ?", "query": "shell color ansi", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Comment hériter de Thor::Shell::Basic et ajouter la possibilité de définir les couleurs tout en incluant LCSDiff ?", "query": "shell color ansi", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/shell/terminal.rb lines=31-54\nread dynamic_width_stty for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_stty", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=108-131\nread are_colors_supported? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=6-29\nread Thor for detail", "file": "lib/thor/shell/color.rb", "symbol": "Thor", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/verbose.thor lines=7-30\nread Test for detail", "file": "spec/fixtures/verbose.thor", "symbol": "Test", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=350-373\nread check_unknown_options! for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options!", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=377-400\nread merge_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge_tool", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=96-119\nread public_method? for detail", "file": "lib/thor/command.rb", "symbol": "public_method?", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=77-100\nread BrokenCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "BrokenCounter", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=128-151\nread send for detail", "file": "spec/fixtures/script.thor", "symbol": "send", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=329-352\nread class_option for detail", "file": "lib/thor/base.rb", "symbol": "class_option", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=263-286\nread gsub_file! for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=371-394\nread capture for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "capture", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=594-617\nread initialize_added for detail", "file": "lib/thor.rb", "symbol": "initialize_added", "line": 594, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=104-127\nread can_display_colors? for detail", "file": "lib/thor/shell/color.rb", "symbol": "can_display_colors?", "line": 104, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=84-107\nread unshift for detail", "file": "lib/thor/parser/options.rb", "symbol": "unshift", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=41-64\nread slice for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "slice", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=26-49\nread squirrel for detail", "file": "spec/register_spec.rb", "symbol": "squirrel", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=118-141\nread parse_array for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_array", "line": 118, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "파일에 내용을 삽입할 때 사용하는 객체를 생성하고 캐싱하는 메서드가 어디에 있나요?", "query": "inject into file", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoker", "line": 11, "lang": "ko", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nLine 86: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 79: if options[:for]", "file": "lib/thor.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 71: it \"returns the default value if none is provided\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 6: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 264: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 13: else", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 14: invoke :three", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 37: # source:: the relative path to the source root.", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 35: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 11: def invoker(options = {})", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoker", "line": 11, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/command_spec.rb\nLine 56: it \"dup options hash\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 8: allow(invoker).to receive(:file_name).and_return(\"rdoc\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nLine 5: false", "file": "spec/fixtures/command.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 29: # Hack. Make rakefile point to invoker, so rdoc task is generated properly.", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 559: # Finally, if you change your namespace to default:", "file": "lib/thor/base.rb", "symbol": "", "line": 559, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 40: # initialize the invoker are used to initialize the invoked.", "file": "lib/thor/invocation.rb", "symbol": "", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 25: instance.class.handle_no_command_error(name)", "file": "lib/thor/command.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 69: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 59: result", "file": "spec/helper.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 33: desc \"invoker\", \"invoke a b command\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 12: words = unwrapped.split(\" \")", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 75: invoke!", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 134: end", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "파일에 내용을 삽입할 때 사용하는 객체를 생성하고 캐싱하는 메서드가 어디에 있나요?", "query": "inject into file", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoker", "line": 11, "lang": "ko", "candidates": [{"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\ndefines invoker", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nsibling in spec/actions", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "파일에 내용을 삽입할 때 사용하는 객체를 생성하고 캐싱하는 메서드가 어디에 있나요?", "query": "inject into file", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoker", "line": 11, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "파일에 내용을 삽입할 때 사용하는 객체를 생성하고 캐싱하는 메서드가 어디에 있나요?", "query": "inject into file", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoker", "line": 11, "lang": "ko", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=153-176\nread what for detail", "file": "spec/fixtures/script.thor", "symbol": "what", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=27-50\nread revoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=215-238\nread current_is_switch_formatted? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch_formatted?", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=145-168\nread _shared_configuration for detail", "file": "lib/thor/invocation.rb", "symbol": "_shared_configuration", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoker", "line": 11, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/group.thor lines=51-74\nread six for detail", "file": "spec/fixtures/group.thor", "symbol": "six", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=263-286\nread create_command for detail", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=31-54\nread file for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=72-95\nread initialize for detail", "file": "lib/thor/actions.rb", "symbol": "initialize", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=174-197\nread list for detail", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=350-373\nread remove_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "remove_file", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=84-107\nread current_is_value? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=71-94\nread default_banner for detail", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoker", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=95-118\nread RequiredArgumentMissingError for detail", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=567-590\nread namespace for detail", "file": "lib/thor/base.rb", "symbol": "namespace", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=172-195\nread validate_enum_value! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "validate_enum_value!", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/application_helper.rb lines=1-24\nread ApplicationHelper for detail", "file": "spec/fixtures/application_helper.rb", "symbol": "ApplicationHelper", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=104-127\nread AtLeastOneRequiredArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "AtLeastOneRequiredArgumentError", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=62-85\nread InvocationError for detail", "file": "lib/thor/error.rb", "symbol": "InvocationError", "line": 62, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Je cherche la logique qui gère l'affichage des données sous forme de tableau dans la console. Peux-tu m'expliquer comment sont calculées les largeurs de colonnes et le rendu des bordures ?", "query": "render table terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lang": "fr", "candidates": [{"text": "File: spec/thor_spec.rb\nLine 440: exclusives = cmd.options_relation[:exclusive_option_names]", "file": "spec/thor_spec.rb", "symbol": "", "line": 440, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 181: printer = TablePrinter.new(stdout, options)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 181, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\nLine 15: # create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 19: private", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 11: paras.map! do |unwrapped|", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 93: say_status :conflict, :red", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 28: This generator runs three commands: one, two and three.", "file": "spec/fixtures/group.thor", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 48: else", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 249: false", "file": "spec/fixtures/script.thor", "symbol": "", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 219: # ==== Returns", "file": "lib/thor/group.rb", "symbol": "", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 475: action :gsub_file, \"doc/README\", \"__start__\", \"START\"", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 475, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 108: @destination_stack[0] = File.expand_path(root || \"\")", "file": "lib/thor/actions.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 6: class TablePrinter < ColumnPrinter", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nLine 5: class_option \"fruit\", :aliases => \"-f\", :type => :string, :enum => %w(apple banana)", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 73: expect(parse(\"bar\")).to eq(\"string\" => \"bar\", \"numeric\" => 3.0)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 8: end", "file": "spec/register_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 197: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 197, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 99: File.expand_path(name)", "file": "lib/thor/runner.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 87: # ==== Returns", "file": "lib/thor/util.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 139: when Symbol", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 51: #", "file": "lib/thor/invocation.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 133: )", "file": "spec/register_spec.rb", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 79: def shift", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche la logique qui gère l'affichage des données sous forme de tableau dans la console. Peux-tu m'expliquer comment sont calculées les largeurs de colonnes et le rendu des bordures ?", "query": "render table terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lang": "fr", "candidates": [{"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\ndefines TablePrinter", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Je cherche la logique qui gère l'affichage des données sous forme de tableau dans la console. Peux-tu m'expliquer comment sont calculées les largeurs de colonnes et le rendu des bordures ?", "query": "render table terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lang": "fr", "candidates": [{"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche la logique qui gère l'affichage des données sous forme de tableau dans la console. Peux-tu m'expliquer comment sont calculées les largeurs de colonnes et le rendu des bordures ?", "query": "render table terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=95-118\nread print_status for detail", "file": "spec/fixtures/invoke.thor", "symbol": "print_status", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=230-253\nread switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch?", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=53-76\nread remaining for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "remaining", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=47-70\nread SubcommandTest1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "SubcommandTest1", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/base_spec.rb lines=6-29\nread hello for detail", "file": "spec/base_spec.rb", "symbol": "hello", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=657-680\nread print_options for detail", "file": "lib/thor/base.rb", "symbol": "print_options", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=39-62\nread B for detail", "file": "spec/fixtures/invoke.thor", "symbol": "B", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=89-112\nread parse for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=230-253\nread cow for detail", "file": "spec/fixtures/script.thor", "symbol": "cow", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=153-176\nread what for detail", "file": "spec/fixtures/script.thor", "symbol": "what", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=358-381\nread class_exclusive for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=393-416\nread class_at_least_one for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=145-168\nread chmod for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "chmod", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I'm trying to figure out how the CLI handles displaying tabular data to the terminal. Where is the logic that iterates through the rows and columns to output the formatted text to the console?", "query": "print array rows", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lang": "en", "candidates": [{"text": "File: spec/actions/empty_directory_spec.rb\nLine 94: invoke!", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 18: def print(array)", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 148: say_status :chmod, relative_to_original_destination_root(path), config.fetch(:verbose, true)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 656: # Receives a set of options and print them.", "file": "lib/thor/base.rb", "symbol": "", "line": 656, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 69: # In order to print long description verbatim, with indentation and spacing exactly", "file": "lib/thor.rb", "symbol": "", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 355: it \"does not add attr_accessor as a command\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 355, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 47: expect(File.exist?(File.join(destination_root, \"doc/config.rb\"))).to be false", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 16: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 18: config = args.last.is_a?(Hash) ? args.pop : {}", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 66: expect($stdout).to receive(:print).with(\"What's your password? \")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 90: describe \"#find_class_and_command_by_namespace\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 59: def self.exit_on_failure?", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 29: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 66: base.inside(\"foo\", pretend: true) do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 58: desc \"say MSG\", \"print MSG\"", "file": "spec/register_spec.rb", "symbol": "", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 14: def print(array)", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 201: klass = Class.new(Thor::Group) do", "file": "spec/group_spec.rb", "symbol": "", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 52: action Directory.new(self, source, destination || source, config, &block)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 620: name = [command.ancestor_name, command.name].compact.join(\" \")", "file": "lib/thor/base.rb", "symbol": "", "line": 620, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 147: old_filename = thor_yaml[name][:filename]", "file": "lib/thor/runner.rb", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 22: # #=> Option foo with default value bar", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 595: it \"does not print class exclusive options\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 595, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nLine 17: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 215: def strict_args_position!", "file": "lib/thor/base.rb", "symbol": "", "line": 215, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm trying to figure out how the CLI handles displaying tabular data to the terminal. Where is the logic that iterates through the rows and columns to output the formatted text to the console?", "query": "print array rows", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lang": "en", "candidates": [{"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\ndefines print", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "I'm trying to figure out how the CLI handles displaying tabular data to the terminal. Where is the logic that iterates through the rows and columns to output the formatted text to the console?", "query": "print array rows", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lang": "en", "candidates": [{"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm trying to figure out how the CLI handles displaying tabular data to the terminal. Where is the logic that iterates through the rows and columns to output the formatted text to the console?", "query": "print array rows", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lang": "en", "candidates": [{"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=49-72\nread values_at for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "values_at", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=137-160\nread DynamicCommand for detail", "file": "lib/thor/command.rb", "symbol": "DynamicCommand", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=345-368\nread only_one for detail", "file": "spec/fixtures/script.thor", "symbol": "only_one", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=4-27\nread shell for detail", "file": "spec/sort_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/verbose.thor lines=8-31\nread exit_on_failure? for detail", "file": "spec/fixtures/verbose.thor", "symbol": "exit_on_failure?", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=96-119\nread public_method? for detail", "file": "lib/thor/command.rb", "symbol": "public_method?", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=38-61\nread part_two for detail", "file": "spec/register_spec.rb", "symbol": "part_two", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=541-564\nread no_commands? for detail", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=56-79\nread exists? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=827-850\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 827, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=363-386\nread check_unknown_options? for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options?", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=84-107\nread unshift for detail", "file": "lib/thor/parser/options.rb", "symbol": "unshift", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "当数组元素不足以填满终端行宽时,最后一列的输出可能会因为缺少换行符或逻辑判断问题,导致后续内容的排版错乱,或者在处理边界情况时无法正确触发换行。", "query": "terminal column print", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lang": "zh", "candidates": [{"text": "File: lib/thor/base.rb\nLine 656: # Receives a set of options and print them.", "file": "lib/thor/base.rb", "symbol": "", "line": 656, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 18: def print(array)", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 4: def shell", "file": "spec/shell_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 69: protected", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 134: # Changes the mode of the given file or directory.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 64: end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 16: expect(shell.base).to eq(base)", "file": "spec/shell_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 7: def print(message)", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 14: def print(array)", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/base_spec.rb\nLine 200: it \"allows extra options to be given\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 17: Rake::Task[\"install\"].execute", "file": "Thorfile", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 27: expect($stdout).to receive(:print).with(\" conflict README\\n\")", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nLine 1: #!/usr/bin/ruby", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 595: it \"does not print class exclusive options\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 595, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 36: @data = data", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 10: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 291: send(:\"parse_#{option.type}\", switch)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 10: desc \"command2\", \"Another top level command\"", "file": "spec/tree_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 7: expect(barn_help).to include(\"barn help [COMMAND] # Describe subcommands or one specific subcommand\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 24: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 15: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 167: end", "file": "spec/register_spec.rb", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 91: # Say (print) something to the user. If the sentence ends with a whitespace", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 91, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 168: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "当数组元素不足以填满终端行宽时,最后一列的输出可能会因为缺少换行符或逻辑判断问题,导致后续内容的排版错乱,或者在处理边界情况时无法正确触发换行。", "query": "terminal column print", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lang": "zh", "candidates": [{"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\ndefines print", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "当数组元素不足以填满终端行宽时,最后一列的输出可能会因为缺少换行符或逻辑判断问题,导致后续内容的排版错乱,或者在处理边界情况时无法正确触发换行。", "query": "terminal column print", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lang": "zh", "candidates": [{"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "当数组元素不足以填满终端行宽时,最后一列的输出可能会因为缺少换行符或逻辑判断问题,导致后续内容的排版错乱,或者在处理边界情况时无法正确触发换行。", "query": "terminal column print", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/shell/html.rb lines=9-32\nread HTML for detail", "file": "lib/thor/shell/html.rb", "symbol": "HTML", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=115-138\nread say_error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_error", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=15-38\nread SubApp for detail", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=27-50\nread revoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=59-82\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=263-286\nread gsub_file! for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=166-189\nread _parse_initialization_options for detail", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=117-140\nread with_optional for detail", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=96-119\nread name_with_dashes for detail", "file": "spec/fixtures/script.thor", "symbol": "name_with_dashes", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=363-386\nread check_unknown_options? for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options?", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=14-37\nread print for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=434-457\nread disable_required_check! for detail", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=4-27\nread Shell for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=483-506\nread all_commands for detail", "file": "lib/thor/base.rb", "symbol": "all_commands", "line": 483, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=9-32\nread option for detail", "file": "spec/parser/option_spec.rb", "symbol": "option", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=112-135\nread private_file_name for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I'm trying to figure out how the framework discovers task definition files in the directory hierarchy. Where is the logic that traverses parent directories to find configuration or script files?", "query": "discover thorfiles directory", "file": "lib/thor/runner.rb", "symbol": "thorfiles", "line": 253, "lang": "en", "candidates": [{"text": "File: lib/thor/actions/inject_into_file.rb\nLine 105: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 286: required: false,", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 14: it \"respects explicit non-UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 252: \"It does not verify the integrity of the generated back-up.\\n\"", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 252, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 113: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 17: if (counter + word.length + 1) < width", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 482: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 12: @opt = Thor::Arguments.new(arguments)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 28: @_source_root = path if path", "file": "lib/thor/actions.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 253: def thorfiles(relevant_to = nil, skip_lookup = false)", "file": "lib/thor/runner.rb", "symbol": "thorfiles", "line": 253, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/error.rb\nLine 47: message = \"Could not find command #{command.inspect}\"", "file": "lib/thor/error.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 59: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 76: # Convert to a Hash with String keys.", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 22: desc \"sub\", \"Subcommands\"", "file": "spec/tree_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 59: AmbiguousTaskError = AmbiguousCommandError", "file": "lib/thor/error.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 6: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 9: define", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 38: # You can also supply the arguments, options and configuration values for", "file": "lib/thor/invocation.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 1: require \"helper\"", "file": "spec/command_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 180: colorless = shell.set_color \"hi!\", :white", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 15: describe \"#ask\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 99: it \"allows invocation to be configured with blocks\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 47: it \"raises error if a class/command cannot be found for a setup without thorfiles\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 48: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm trying to figure out how the framework discovers task definition files in the directory hierarchy. Where is the logic that traverses parent directories to find configuration or script files?", "query": "discover thorfiles directory", "file": "lib/thor/runner.rb", "symbol": "thorfiles", "line": 253, "lang": "en", "candidates": [{"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "I'm trying to figure out how the framework discovers task definition files in the directory hierarchy. Where is the logic that traverses parent directories to find configuration or script files?", "query": "discover thorfiles directory", "file": "lib/thor/runner.rb", "symbol": "thorfiles", "line": 253, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> open-uri", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> ../thor", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> group", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm trying to figure out how the framework discovers task definition files in the directory hierarchy. Where is the logic that traverses parent directories to find configuration or script files?", "query": "discover thorfiles directory", "file": "lib/thor/runner.rb", "symbol": "thorfiles", "line": 253, "lang": "en", "candidates": [{"text": "Next: read lib/thor.rb lines=258-281\nread command_help for detail", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=78-101\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=80-103\nread ask for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=80-103\nread Defined for detail", "file": "spec/fixtures/invoke.thor", "symbol": "Defined", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=253-276\nread thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles", "line": 253, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=110-133\nread G for detail", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=86-109\nread force_or_skip_or_conflict for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_or_skip_or_conflict", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=31-54\nread GroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "GroupPlugin", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=34-57\nread invoker for detail", "file": "spec/fixtures/invoke.thor", "symbol": "invoker", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=412-435\nread class_at_least_one_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one_option_names", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=634-657\nread find_command_possibilities for detail", "file": "lib/thor.rb", "symbol": "find_command_possibilities", "line": 634, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=293-316\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=153-176\nread _retrieve_class_and_command for detail", "file": "lib/thor/invocation.rb", "symbol": "_retrieve_class_and_command", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/terminal.rb lines=3-26\nread Terminal for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Terminal", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=57-80\nread PluginWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefault", "line": 57, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Wie heißt die Standardmethode?", "query": "default method", "file": "spec/register_spec.rb", "symbol": "default", "line": 89, "lang": "de", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nLine 32: if !argument.default.nil?", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 5: attr_reader :name, :description, :enum, :required, :type, :default, :banner", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 7: true", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 98: # Shows the file collision menu to the user and gets the result.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 89: def default", "file": "spec/register_spec.rb", "symbol": "default", "line": 89, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/group.thor\nLine 17: argument :second, :type => :numeric, :default => 2", "file": "spec/fixtures/group.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 14: ].detect(&:available?)", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 215: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 27: print_border_separator", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 57: # array of acceptable answers. If one of those is not supplied,", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 16: it \"uses argument's default value\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nLine 27: let(:action) do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 24: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 36: @disable_required_check = disable_required_check", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 577: # from an array. If you are inside Ruby and want to use a Thor class, you", "file": "lib/thor/base.rb", "symbol": "", "line": 577, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 6: arguments = opts.map do |type, default|", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 46: super(convert_key(key))", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 25: namespace = \"default#{namespace}\" if namespace.empty? || namespace =~ /^:/", "file": "lib/thor/util.rb", "symbol": "", "line": 25, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 90: # options.shebang # => \"/usr/lib/local/ruby\"", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 7: def enter", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 16: # Sets the default command when thor is executed without an explicit command to be called.", "file": "lib/thor.rb", "symbol": "", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 128: def bar", "file": "spec/fixtures/group.thor", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 79: @flag = Regexp.escape(@flag) unless @flag.is_a?(Regexp)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Wie heißt die Standardmethode?", "query": "default method", "file": "spec/register_spec.rb", "symbol": "default", "line": 89, "lang": "de", "candidates": [{"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nsibling in spec", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nsibling in spec", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\ndefines default", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Wie heißt die Standardmethode?", "query": "default method", "file": "spec/register_spec.rb", "symbol": "default", "line": 89, "lang": "de", "candidates": [{"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Wie heißt die Standardmethode?", "query": "default method", "file": "spec/register_spec.rb", "symbol": "default", "line": 89, "lang": "de", "candidates": [{"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=4-27\nread Base for detail", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell.rb lines=66-89\nread with_padding for detail", "file": "lib/thor/shell.rb", "symbol": "with_padding", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=185-208\nread Barn for detail", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=501-524\nread remove_command for detail", "file": "lib/thor/base.rb", "symbol": "remove_command", "line": 501, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=199-222\nread printable_commands for detail", "file": "lib/thor/group.rb", "symbol": "printable_commands", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=12-35\nread file for detail", "file": "spec/actions_spec.rb", "symbol": "file", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=80-103\nread ask for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=168-191\nread dasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherize", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=7-30\nread RakeTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "RakeTask", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=159-182\nread attr_writer for detail", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=89-112\nread default for detail", "file": "spec/register_spec.rb", "symbol": "default", "line": 89, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/terminal.rb lines=35-58\nread dynamic_width_tput for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_tput", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=104-127\nread local_method? for detail", "file": "lib/thor/command.rb", "symbol": "local_method?", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=30-53\nread current_command_chain for detail", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=130-153\nread say_status for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_status", "line": 130, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Ich muss sicherstellen, dass bei der aktuellen Thor-Instanz alle registrierten Kommandos nacheinander ausgeführt werden. Kannst du mir zeigen, wie ich diese Logik implementiere?", "query": "invoke all commands", "file": "lib/thor/invocation.rb", "symbol": "invoke_all", "line": 133, "lang": "de", "candidates": [{"text": "File: spec/fixtures/invoke.thor\nLine 30: number == 5", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 12: puts \"ok\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 12: {out: w, err: [:child, :out]})", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 48: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 75: stringfied_constants = klass.constants.map(&:to_s)", "file": "lib/thor/util.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 110: regexp = if @behavior == :after", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 107: end", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 116: else", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 5: it \"maps a given subcommand to another Thor subclass\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 85: def destination=(destination)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 101: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 59: ::FileUtils.rm_rf(destination) if !pretend? && exists?", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 46: aliases: \"-w\",", "file": "spec/register_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 27: exec \"bundle exec rspec spec\"", "file": "Thorfile", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 774: end", "file": "lib/thor/base.rb", "symbol": "", "line": 774, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 122: def baz(name = 'baz')", "file": "spec/fixtures/group.thor", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 243: instance.invoke_all", "file": "lib/thor/group.rb", "symbol": "", "line": 243, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nLine 29: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 485: @all_commands.merge!(commands)", "file": "lib/thor/base.rb", "symbol": "", "line": 485, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 49: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 94: invoke!", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 5: SOME_STRING = \"Some ������\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 133: def invoke_all #:nodoc:", "file": "lib/thor/invocation.rb", "symbol": "invoke_all", "line": 133, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Ich muss sicherstellen, dass bei der aktuellen Thor-Instanz alle registrierten Kommandos nacheinander ausgeführt werden. Kannst du mir zeigen, wie ich diese Logik implementiere?", "query": "invoke all commands", "file": "lib/thor/invocation.rb", "symbol": "invoke_all", "line": 133, "lang": "de", "candidates": [{"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Ich muss sicherstellen, dass bei der aktuellen Thor-Instanz alle registrierten Kommandos nacheinander ausgeführt werden. Kannst du mir zeigen, wie ich diese Logik implementiere?", "query": "invoke all commands", "file": "lib/thor/invocation.rb", "symbol": "invoke_all", "line": 133, "lang": "de", "candidates": [{"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=309-332\nread printable_commands for detail", "file": "lib/thor.rb", "symbol": "printable_commands", "line": 309, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=76-99\nread call_myself_with_wrong_arity for detail", "file": "spec/fixtures/script.thor", "symbol": "call_myself_with_wrong_arity", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=78-101\nread glob_pattern for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "glob_pattern", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=251-274\nread error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "error", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=38-61\nread source_paths_for_search for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths_for_search", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=59-82\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=235-258\nread command_conflict for detail", "file": "spec/fixtures/script.thor", "symbol": "command_conflict", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=133-156\nread invoke_all for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_all", "line": 133, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=190-213\nread allow_incompatible_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "allow_incompatible_default_type!", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=108-131\nread long_description_unwrapped for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description_unwrapped", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=613-636\nread normalize_command_name for detail", "file": "lib/thor.rb", "symbol": "normalize_command_name", "line": 613, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=257-280\nread one_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "one_arg", "line": 257, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Je cherche la logique qui permet de récupérer une commande par son nom. Comment est gérée la duplication et l'ajout d'une commande provenant d'une autre classe vers la liste locale ?", "query": "find refresh command", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lang": "fr", "candidates": [{"text": "File: spec/actions/create_link_spec.rb\nLine 78: it \"shows created status to the user\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 37: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 12: pop", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 33: @stop_on_unknown = stop_on_unknown", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 81: #", "file": "lib/thor/invocation.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 19: it \"does not use a new line even with colors\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 105: return invoke_all", "file": "lib/thor/invocation.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 44: it \"returns usage for array types\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 167: # dir:: the directory to move to.", "file": "lib/thor/actions.rb", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 72: it \"does not create a link\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 146: it \"gives a list of the available Thor::Group classes\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 99: include Thor::Actions", "file": "spec/fixtures/group.thor", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 77: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 11: def a; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 61: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 22: desc \"sub\", \"Subcommands\"", "file": "spec/tree_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 56: command = find_and_refresh_command(options[:for])", "file": "lib/thor.rb", "symbol": "", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 797: def unknown(*args)", "file": "spec/thor_spec.rb", "symbol": "", "line": 797, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 709: def find_and_refresh_command(name) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions.rb\nLine 195: result", "file": "lib/thor/actions.rb", "symbol": "", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 3: class Amazing < Thor", "file": "spec/fixtures/command.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 53: yield", "file": "spec/helper.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 165: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche la logique qui permet de récupérer une commande par son nom. Comment est gérée la duplication et l'ajout d'une commande provenant d'une autre classe vers la liste locale ?", "query": "find refresh command", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lang": "fr", "candidates": [{"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Je cherche la logique qui permet de récupérer une commande par son nom. Comment est gérée la duplication et l'ajout d'une commande provenant d'une autre classe vers la liste locale ?", "query": "find refresh command", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lang": "fr", "candidates": [{"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche la logique qui permet de récupérer une commande par son nom. Comment est gérée la duplication et l'ajout d'une commande provenant d'une autre classe vers la liste locale ?", "query": "find refresh command", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/nested_context.rb lines=15-38\nread entered? for detail", "file": "lib/thor/nested_context.rb", "symbol": "entered?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=56-79\nread exists? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=21-44\nread base for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "base", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=39-62\nread required? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "required?", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=29-52\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=98-121\nread WhinyGenerator for detail", "file": "spec/fixtures/group.thor", "symbol": "WhinyGenerator", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=59-82\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=23-46\nread rake_classes for detail", "file": "lib/thor/rake_compat.rb", "symbol": "rake_classes", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=91-114\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=64-87\nread C for detail", "file": "spec/fixtures/invoke.thor", "symbol": "C", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=709-732\nread find_and_refresh_command for detail", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=157-180\nread MyChildScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyChildScript", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=123-146\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=49-72\nread values_at for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "values_at", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=308-331\nread thor for detail", "file": "lib/thor/actions.rb", "symbol": "thor", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=71-94\nread example_default_command for detail", "file": "spec/fixtures/script.thor", "symbol": "example_default_command", "line": 71, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "터미널의 가로 너비를 계산하는 로직이 어디에 있는지 찾고 있어요. 환경 변수나 시스템 명령어를 사용해서 화면 크기를 가져오는 부분이 어디인가요?", "query": "terminal width", "file": "lib/thor/shell/terminal.rb", "symbol": "Thor", "line": 1, "lang": "ko", "candidates": [{"text": "File: spec/actions/create_link_spec.rb\nLine 45: destination_path = File.join(destination_root, \"doc/config.rb\")", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 324: expect { action :run, \"echo $BAR\", env: {\"BAR\" => \"foo\"} }.to output(\"foo\\n\").to_stdout_from_any_process", "file": "spec/actions_spec.rb", "symbol": "", "line": 324, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 3: class Thor", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 85: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 363: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 123: #", "file": "lib/thor/util.rb", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 288: expect do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 1: class Thor", "file": "lib/thor/shell/terminal.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 24: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 5: describe Thor::Actions::InjectIntoFile do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 461: it \"does not log status if required\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 461, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 3: class Thor", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 11: class HashWithIndifferentAccess < ::Hash #:nodoc:", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 2: # frozen_string_literal: true", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 12: end", "file": "lib/thor/error.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 1: class Thor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 71: self.options_relation[:at_least_one_option_names] || []", "file": "lib/thor/command.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 174: expect(capture(:stdout) { Thor::Runner.start }).to match(/^thor :cow\\s+# prints 'moo'/m)", "file": "spec/runner_spec.rb", "symbol": "", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 59: exists_and_identical?(\"command.thor\", \"foo.thor\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 59: # puts \"hello #{name}\"", "file": "lib/thor/invocation.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 271: \"more content\\n\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 4: describe Thor::Arguments do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 69: #", "file": "lib/thor/invocation.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "터미널의 가로 너비를 계산하는 로직이 어디에 있는지 찾고 있어요. 환경 변수나 시스템 명령어를 사용해서 화면 크기를 가져오는 부분이 어디인가요?", "query": "terminal width", "file": "lib/thor/shell/terminal.rb", "symbol": "Thor", "line": 1, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "터미널의 가로 너비를 계산하는 로직이 어디에 있는지 찾고 있어요. 환경 변수나 시스템 명령어를 사용해서 화면 크기를 가져오는 부분이 어디인가요?", "query": "terminal width", "file": "lib/thor/shell/terminal.rb", "symbol": "Thor", "line": 1, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/actions/file_manipulation.rb lines=192-215\nread append_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "append_to_file", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=21-44\nread base for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "base", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=345-368\nread only_one for detail", "file": "spec/fixtures/script.thor", "symbol": "only_one", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=280-303\nread escape_html for detail", "file": "lib/thor/util.rb", "symbol": "escape_html", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/terminal.rb lines=27-50\nread dynamic_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=351-374\nread no_relations for detail", "file": "spec/fixtures/script.thor", "symbol": "no_relations", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=160-183\nread dasherized? for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherized?", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=7-30\nread print for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=87-110\nread not_debugging? for detail", "file": "lib/thor/command.rb", "symbol": "not_debugging?", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=827-850\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 827, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=10-33\nread describe for detail", "file": "spec/fixtures/command.thor", "symbol": "describe", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=254-277\nread self_command for detail", "file": "lib/thor/group.rb", "symbol": "self_command", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=3-26\nread Terminal for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Terminal", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/rake_compat_spec.rb lines=28-51\nread ThorTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "ThorTask", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=296-319\nread file_collision_help for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=22-45\nread SuperSecretPlugin for detail", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=1-24\nread Thor for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/terminal.rb lines=9-32\nread terminal_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "terminal_width", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/terminal.rb lines=20-43\nread unix? for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "unix?", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=257-280\nread one_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "one_arg", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=92-115\nread long_description for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=179-202\nread boom for detail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "O comportamento atual de validar argumentos desconhecidos não permite filtrar quais chaves devem ser verificadas. Preciso que a lógica de monitoramento de opções extras passe a aceitar um hash de configuração para permitir a inclusão ou exclusão de chaves específicas através de filtros de controle.", "query": "unknown options filter", "file": "lib/thor.rb", "symbol": "check_unknown_options!", "line": 350, "lang": "pt", "candidates": [{"text": "File: spec/register_spec.rb\nLine 32: desc \"part one\"", "file": "spec/register_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 128: }", "file": "spec/runner_spec.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 116: invoke! \"doc/README\", after: /(README\\n)/ do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 23: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 150: # If the name is nil or the given name is a command in the current class,", "file": "lib/thor/invocation.rb", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 79: private :can_has", "file": "spec/command_spec.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 188: private", "file": "lib/thor/runner.rb", "symbol": "", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 170: # in base_options are not added twice.", "file": "lib/thor/group.rb", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 66: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 76: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 263: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 105: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 76: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 37: #", "file": "lib/thor/actions.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 88: ARGV.replace %w(unknown)", "file": "spec/runner_spec.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 350: def check_unknown_options!(options = {})", "file": "lib/thor.rb", "symbol": "check_unknown_options!", "line": 350, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell_spec.rb\nLine 45: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 22: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 34: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 7: class Test < Thor", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 107: ENV[\"THOR_DEBUG\"] = \"1\"", "file": "spec/base_spec.rb", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 529: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 529, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 16: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 38: content = capture(:stdout) { Thor::Runner.start(%w(help my_counter)) }", "file": "spec/runner_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "O comportamento atual de validar argumentos desconhecidos não permite filtrar quais chaves devem ser verificadas. Preciso que a lógica de monitoramento de opções extras passe a aceitar um hash de configuração para permitir a inclusão ou exclusão de chaves específicas através de filtros de controle.", "query": "unknown options filter", "file": "lib/thor.rb", "symbol": "check_unknown_options!", "line": 350, "lang": "pt", "candidates": [{"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "O comportamento atual de validar argumentos desconhecidos não permite filtrar quais chaves devem ser verificadas. Preciso que a lógica de monitoramento de opções extras passe a aceitar um hash de configuração para permitir a inclusão ou exclusão de chaves específicas através de filtros de controle.", "query": "unknown options filter", "file": "lib/thor.rb", "symbol": "check_unknown_options!", "line": 350, "lang": "pt", "candidates": [{"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "O comportamento atual de validar argumentos desconhecidos não permite filtrar quais chaves devem ser verificadas. Preciso que a lógica de monitoramento de opções extras passe a aceitar um hash de configuração para permitir a inclusão ou exclusão de chaves específicas através de filtros de controle.", "query": "unknown options filter", "file": "lib/thor.rb", "symbol": "check_unknown_options!", "line": 350, "lang": "pt", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=53-76\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=325-348\nread _shared_configuration for detail", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=37-60\nread fetch for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "fetch", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=69-92\nread initialize for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/version.rb lines=1-24\nread Thor for detail", "file": "lib/thor/version.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=276-299\nread _invoke_for_class_method for detail", "file": "lib/thor/group.rb", "symbol": "_invoke_for_class_method", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=31-54\nread file for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=350-373\nread check_unknown_options! for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options!", "line": 350, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/sort_spec.rb lines=35-58\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=73-96\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=7-30\nread enter for detail", "file": "lib/thor/nested_context.rb", "symbol": "enter", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=104-127\nread camel_case for detail", "file": "lib/thor/util.rb", "symbol": "camel_case", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=97-120\nread parse_hash for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_hash", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=274-297\nread Apple for detail", "file": "spec/fixtures/script.thor", "symbol": "Apple", "line": 274, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "How does it check if there are no more remaining input values in the argument stack?", "query": "pile empty?", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lang": "en", "candidates": [{"text": "File: lib/thor/base.rb\nLine 340: # Array[Thor::Option.name]", "file": "lib/thor/base.rb", "symbol": "", "line": 340, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 31: def dynamic_width_stty", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 166: end", "file": "lib/thor/util.rb", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 10: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 71: let(:options) { {pretend: true} }", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 101: else", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 187: colorless = shell.set_color \"hi!\", :white", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 99: return if quiet?", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 44: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 83: end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 233: expect(klass.start(%w(--loud jose))).to eq([\"Hi JOSE\"])", "file": "spec/group_spec.rb", "symbol": "", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 36: # Set the terminal's background HTML color to green.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 157: opts = @assigns.keys", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 26: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 54: it \"prints arrays in a copy pasteable way\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 5: @shell ||= Thor::Shell::Color.new", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 151: stop_on_unknown_option! :foo", "file": "spec/thor_spec.rb", "symbol": "", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 11: if SOME_STRING.encoding.name == \"UTF-8\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 64: def last?", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/help.thor\nLine 3: class Help < Thor", "file": "spec/fixtures/help.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 126: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 4: require_relative \"lcs_diff\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 344: @table = []", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 344, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 78: @replacement = data.is_a?(Proc) ? data.call : data", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "How does it check if there are no more remaining input values in the argument stack?", "query": "pile empty?", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lang": "en", "candidates": [{"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "How does it check if there are no more remaining input values in the argument stack?", "query": "pile empty?", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lang": "en", "candidates": [{"text": "Next: read lib/thor/group.rb lines=221-244\nread command_exists? for detail", "file": "lib/thor/group.rb", "symbol": "command_exists?", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=64-87\nread last? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/register_spec.rb lines=85-108\nread SubcommandWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "SubcommandWithDefault", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=55-78\nread inherited for detail", "file": "spec/fixtures/group.thor", "symbol": "inherited", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_link_spec.rb lines=35-58\nread revoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "revoke!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/runner_spec.rb lines=5-28\nread when_no_thorfiles_exist for detail", "file": "spec/runner_spec.rb", "symbol": "when_no_thorfiles_exist", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=99-122\nread aliases_for_usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "aliases_for_usage", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=280-303\nread escape_html for detail", "file": "lib/thor/util.rb", "symbol": "escape_html", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=145-168\nread register_klass_file for detail", "file": "lib/thor/base.rb", "symbol": "register_klass_file", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=89-112\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=104-127\nread F for detail", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=333-356\nread comment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "comment_lines", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "EOLの末尾に余分なスペースが含まれていないか確認する機能を作成してください。対象ファイルの各行を読み込み、行末の空白を検出するロジックを実装してください。", "query": "eol trailing space check", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lang": "ja", "candidates": [{"text": "File: spec/parser/option_spec.rb\nLine 156: expect do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 506: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 506, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 574: true", "file": "lib/thor.rb", "symbol": "", "line": 574, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 38: return true if defined?(Diff::LCS)", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 13: super()", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 36: capture(:stdout) { action.revoke! }", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 791: end.to raise_error(ArgumentError, \"Expected a Symbol or String, got #{{loud: true, type: :boolean}}\")", "file": "spec/thor_spec.rb", "symbol": "", "line": 791, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 11: end", "file": "lib/thor/error.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 21: def check_for_extra_spaces(filename)", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/arguments.rb\nLine 157: #", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 73: protected", "file": "lib/thor/shell.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 46: yield", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 270: false", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 270, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 1: #!/usr/bin/ruby", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 39: #", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 225: false", "file": "spec/fixtures/script.thor", "symbol": "", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 36: initialize_thorfiles(meth)", "file": "lib/thor/runner.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 230: expect(MyChildScript.group).to eq(\"script\")", "file": "spec/base_spec.rb", "symbol": "", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 80: # true if running on windows, used for conditional spec skips", "file": "spec/helper.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 25: def pop", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 381: end", "file": "lib/thor.rb", "symbol": "", "line": 381, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 18: class << self", "file": "lib/thor/util.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 12: output_diff_line(diff)", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 4: module Actions", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "EOLの末尾に余分なスペースが含まれていないか確認する機能を作成してください。対象ファイルの各行を読み込み、行末の空白を検出するロジックを実装してください。", "query": "eol trailing space check", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lang": "ja", "candidates": [{"text": "File: spec/quality_spec.rb\ndefines check_for_extra_spaces", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nsibling in spec", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "EOLの末尾に余分なスペースが含まれていないか確認する機能を作成してください。対象ファイルの各行を読み込み、行末の空白を検出するロジックを実装してください。", "query": "eol trailing space check", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=264-287\nread prepare_message for detail", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=75-98\nread PluginWithDefaultcommandAndDeclaredArgument for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefaultcommandAndDeclaredArgument", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=169-192\nread check_unknown_options! for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options!", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=54-77\nread set_color for detail", "file": "lib/thor/shell/html.rb", "symbol": "set_color", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=2-25\nread check_for_spec_defs_with_single_quotes for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/quality_spec.rb lines=12-35\nread check_for_tab_characters for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=31-54\nread except for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=320-343\nread subcommands for detail", "file": "lib/thor.rb", "symbol": "subcommands", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=174-197\nread normalize_aliases for detail", "file": "lib/thor/parser/option.rb", "symbol": "normalize_aliases", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=10-33\nread create_file for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=203-226\nread thor_root_glob for detail", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=21-44\nread check_for_extra_spaces for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=613-636\nread normalize_command_name for detail", "file": "lib/thor.rb", "symbol": "normalize_command_name", "line": 613, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=114-137\nread handle_argument_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_argument_error?", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=56-79\nread exists? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=43-66\nread show_default? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "show_default?", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=8-31\nread encoding for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=161-184\nread initialize for detail", "file": "spec/fixtures/script.thor", "symbol": "initialize", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=25-48\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "The logic that initializes the counter instance seems to be memoizing the object with a hardcoded single-element array instead of using the provided input, which might prevent subsequent runs from using different values.", "query": "memoized counter instance", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lang": "en", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nLine 4: def runner(options = {}, behavior = :invoke)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nLine 126: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 27: autoload :Basic, File.expand_path(\"shell/basic\", __dir__)", "file": "lib/thor/shell.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 14: ].detect(&:available?)", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 74: if identical?", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 4: def runner(options = {})", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nLine 63: raise ArgumentError, \"An argument cannot be required and have default value.\" if required? && !default.nil?", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 5: class_option \"fruit\", :aliases => \"-f\", :type => :string, :enum => %w(apple banana)", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 61: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 163: class_name = self.class.name.split(\"::\").last.downcase", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 9: def error", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 16: puts \"COOL\"", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 87: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 24: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 2: require \"thor/runner\"", "file": "spec/runner_spec.rb", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nLine 18: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 47: message = \"Could not find command #{command.inspect}\"", "file": "lib/thor/error.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 4: @depth = 0", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 208: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 16: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 13: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 4: desc \"print_opt\", \"My method\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 253: # :force => true, to force the replacement regardless of runner behavior.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 253, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "The logic that initializes the counter instance seems to be memoizing the object with a hardcoded single-element array instead of using the provided input, which might prevent subsequent runs from using different values.", "query": "memoized counter instance", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lang": "en", "candidates": [{"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\ndefines runner", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nsibling in spec", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nsibling in spec", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nsibling in spec", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "The logic that initializes the counter instance seems to be memoizing the object with a hardcoded single-element array instead of using the provided input, which might prevent subsequent runs from using different values.", "query": "memoized counter instance", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lang": "en", "candidates": [{"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "The logic that initializes the counter instance seems to be memoizing the object with a hardcoded single-element array instead of using the provided input, which might prevent subsequent runs from using different values.", "query": "memoized counter instance", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lang": "en", "candidates": [{"text": "Next: read spec/actions/empty_directory_spec.rb lines=112-135\nread private_file_name for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=43-66\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=80-103\nread ask for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=161-184\nread class_options_help for detail", "file": "lib/thor/group.rb", "symbol": "class_options_help", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=12-35\nread file for detail", "file": "spec/actions_spec.rb", "symbol": "file", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=541-564\nread no_commands? for detail", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=27-50\nread revoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=482-505\nread print_exclusive_options for detail", "file": "lib/thor.rb", "symbol": "print_exclusive_options", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=583-606\nread start for detail", "file": "lib/thor/base.rb", "symbol": "start", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=72-95\nread initialize for detail", "file": "lib/thor/actions.rb", "symbol": "initialize", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/error.rb lines=95-118\nread RequiredArgumentMissingError for detail", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=133-156\nread find_in_source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "find_in_source_paths", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=709-732\nread find_and_refresh_command for detail", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=69-92\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=81-104\nread call_unexistent_method for detail", "file": "spec/fixtures/script.thor", "symbol": "call_unexistent_method", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=207-230\nread handle_argument_error for detail", "file": "lib/thor/group.rb", "symbol": "handle_argument_error", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=281-304\nread Pear for detail", "file": "spec/fixtures/script.thor", "symbol": "Pear", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=8-31\nread action for detail", "file": "spec/actions_spec.rb", "symbol": "action", "line": 8, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "I'm trying to figure out what the root configuration inherits from. Can you show me the definition of the primary class that extends the foundation?", "query": "extends Base", "file": "spec/fixtures/application.rb", "symbol": "Application", "line": 1, "lang": "en", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nLine 572: action :inject_into_class, \"application.rb\", \"Application\", \" filter_parameters :password\\n\"", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 572, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nLine 17: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 207: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 224: check_unknown_options!", "file": "spec/thor_spec.rb", "symbol": "", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 108: \"secret\",", "file": "spec/register_spec.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 61: self", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 2: def check_for_spec_defs_with_single_quotes(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 49: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 135: namespace = \"default\" if namespace.empty?", "file": "lib/thor/util.rb", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 142: private", "file": "spec/fixtures/script.thor", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 20: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 14: base = MyCounter.new [1, 2]", "file": "spec/base_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 3: class Thor", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 203: expect(Thor::Util.escape_globs(\"apps?\")).to eq('apps\\\\?')", "file": "spec/util_spec.rb", "symbol": "", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "Application", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 41: @diff_lcs_loaded = begin", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 31: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 11: self.options = other.options.dup if other.options", "file": "lib/thor/command.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 35: def initialize(base, destination, data, config = {})", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 25: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 1: module TestSubcommands", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 71: \"#{path}/\"", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 22: it \"a command that raises a Thor::Error exits with a status of 1\" do", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm trying to figure out what the root configuration inherits from. Can you show me the definition of the primary class that extends the foundation?", "query": "extends Base", "file": "spec/fixtures/application.rb", "symbol": "Application", "line": 1, "lang": "en", "candidates": [{"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\ndefines Application", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm trying to figure out what the root configuration inherits from. Can you show me the definition of the primary class that extends the foundation?", "query": "extends Base", "file": "spec/fixtures/application.rb", "symbol": "Application", "line": 1, "lang": "en", "candidates": [{"text": "Next: read spec/register_spec.rb lines=43-66\nread ClassOptionGroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "ClassOptionGroupPlugin", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=6-29\nread readline for detail", "file": "lib/thor/line_editor.rb", "symbol": "readline", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=83-106\nread usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "usage", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=789-812\nread initialize_added for detail", "file": "lib/thor/base.rb", "symbol": "initialize_added", "line": 789, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/application.rb lines=1-24\nread Application for detail", "file": "spec/fixtures/application.rb", "symbol": "Application", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/runner.rb lines=289-312\nread display_klasses for detail", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=258-281\nread command_help for detail", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=98-121\nread WhinyGenerator for detail", "file": "spec/fixtures/group.thor", "symbol": "WhinyGenerator", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=297-320\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 297, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=259-282\nread baseclass for detail", "file": "lib/thor/group.rb", "symbol": "baseclass", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_link_spec.rb lines=35-58\nread revoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "revoke!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=8-31\nread encoding for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=537-560\nread no_commands_context for detail", "file": "lib/thor/base.rb", "symbol": "no_commands_context", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=43-66\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=6-29\nread WrappedPrinter for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "WrappedPrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "查找检查默认类型的逻辑", "query": "check default type", "file": "lib/thor/base.rb", "symbol": "check_default_type", "line": 194, "lang": "zh", "candidates": [{"text": "File: lib/thor/error.rb\nLine 59: AmbiguousTaskError = AmbiguousCommandError", "file": "lib/thor/error.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 86: @switches = switches", "file": "lib/thor/error.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 854: it \"allows incompatible types if `check_default_type: false` is given\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 854, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nLine 8: @check_default_type = options[:check_default_type]", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nLine 70: context \"specifying :pretend => true\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 60: end", "file": "spec/helper.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 640: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 640, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 11: class HashWithIndifferentAccess < ::Hash #:nodoc:", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 32: CYAN = \"\\e[36m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 158: expect(bold).to eq(\"\\e[37m\\e[1mhi!\\e[0m\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 14: def z; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 21: # insert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 48: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 104: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 137: it \"raises an error if default is inconsistent with type and check_default_type is true\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 137, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 185: end", "file": "spec/group_spec.rb", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 60: expect(parse(:foo, [:a, :b]).type).to eq(:array)", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 80: @pile.unshift(arg)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 47: expect(capture(:stdout) { TreeApp.start([\"help\"]) }).to match(/tree.*Print a tree of all available commands/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 414: [\"Name\", \"Number\"], # rubocop: disable Style/WordArray", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 414, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 86: invoke \"a:three\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 194: def check_default_type #:nodoc:", "file": "lib/thor/base.rb", "symbol": "check_default_type", "line": 194, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nLine 57: #", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "查找检查默认类型的逻辑", "query": "check default type", "file": "lib/thor/base.rb", "symbol": "check_default_type", "line": 194, "lang": "zh", "candidates": [{"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "查找检查默认类型的逻辑", "query": "check default type", "file": "lib/thor/base.rb", "symbol": "check_default_type", "line": 194, "lang": "zh", "candidates": [{"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "查找检查默认类型的逻辑", "query": "check default type", "file": "lib/thor/base.rb", "symbol": "check_default_type", "line": 194, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=92-115\nread long_description for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=133-156\nread potentially_ambiguous for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=2-25\nread check_for_spec_defs_with_single_quotes for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/rake_compat_spec.rb lines=12-35\nread define for detail", "file": "spec/rake_compat_spec.rb", "symbol": "define", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/options_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=91-114\nread required_options for detail", "file": "lib/thor/command.rb", "symbol": "required_options", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=6-29\nread Default for detail", "file": "Thorfile", "symbol": "Default", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=4-27\nread Shell for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=385-408\nread actually_gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "actually_gsub_file", "line": 385, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=194-217\nread check_default_type for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type", "line": 194, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/register_spec.rb lines=85-108\nread SubcommandWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "SubcommandWithDefault", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "我现在正在处理 Thor 命令行的参数解析逻辑,需要确认当前配置是否启用了未知选项检查功能。请帮我查看 `check_unknown_options` 相关的实现细节。", "query": "check unknown options", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lang": "zh", "candidates": [{"text": "File: lib/thor/actions/create_file.rb\nLine 4: module Actions", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 47: message = \"Could not find command #{command.inspect}\"", "file": "lib/thor/error.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 38: expect(shell.set_color(\"\", [:nocolor])).to eq \"<htmlcontent>\"", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 87: @unknown = unknown", "file": "lib/thor/error.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 58: error_messages << check_for_spec_defs_with_single_quotes(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 28: super(convert_key(key))", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 57: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 1: # encoding: ISO-8859-7", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 83: destination = args.first", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 4: # Overwrite show_diff to show diff with colors if Diff::LCS is", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 10: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 8: actual = File.binread(destination).to_s.split(\"\\n\")", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 106: if chars.length <= @truncate", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 89: exists_and_identical?(\"doc\", \"doc\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 24: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 16: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 30: argument(:command, type: :string, enum: \"bar\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 177: def check_unknown_options?(config) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/encoding_spec.rb\nLine 18: it \"has implicit UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 11: @prompt = prompt", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 59: result", "file": "spec/helper.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 217: it \"provides extra args as `args`\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 1: require_relative \"line_editor/basic\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "我现在正在处理 Thor 命令行的参数解析逻辑,需要确认当前配置是否启用了未知选项检查功能。请帮我查看 `check_unknown_options` 相关的实现细节。", "query": "check unknown options", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lang": "zh", "candidates": [{"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "我现在正在处理 Thor 命令行的参数解析逻辑,需要确认当前配置是否启用了未知选项检查功能。请帮我查看 `check_unknown_options` 相关的实现细节。", "query": "check unknown options", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lang": "zh", "candidates": [{"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "我现在正在处理 Thor 命令行的参数解析逻辑,需要确认当前配置是否启用了未知选项检查功能。请帮我查看 `check_unknown_options` 相关的实现细节。", "query": "check unknown options", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=9-32\nread terminal_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "terminal_width", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/rake_compat_spec.rb lines=12-35\nread define for detail", "file": "spec/rake_compat_spec.rb", "symbol": "define", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=123-146\nread say_status for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "say_status", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=108-131\nread long_description_unwrapped for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description_unwrapped", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=32-55\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=127-150\nread J for detail", "file": "spec/fixtures/invoke.thor", "symbol": "J", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=64-87\nread last? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=59-82\nread foo for detail", "file": "spec/fixtures/script.thor", "symbol": "foo", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=177-200\nread check_unknown_options? for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/directory.rb lines=58-81\nread initialize for detail", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=264-287\nread escape_globs for detail", "file": "lib/thor/util.rb", "symbol": "escape_globs", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=97-120\nread parse_hash for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_hash", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=164-187\nread undasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=133-156\nread invoke_all for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_all", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=123-146\nread version for detail", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=9-32\nread error for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "error", "line": 9, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "find the logic that suggests corrections for unknown switches", "query": "switch spell corrections", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lang": "en", "candidates": [{"text": "File: spec/fixtures/exit_status.thor\nLine 10: raise Thor::Error.new(\"planned error\")", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 27: it \"accepts the help switch and calls the help command on the subcommand\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 115: it \"does not change the file if already includes content using after with capture\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 88: # Runs through the argument array getting strings that contains \":\" and", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 5: desc :bugs, \"ALL THE BUGZ!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 50: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 7: puts options['fruit']", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 151: context \"windows temp directories\", if: windows? do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 66: class SpellChecker", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 4: SOME_STRING = \"Some λέξεις 一些词 🎉\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 4: # Overwrite show_diff to show diff with colors if Diff::LCS is", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 352: expect(capture(:stderr) { MyScript.start(%w(another_attribute= foo)) }).to match(/Could not find/)", "file": "spec/base_spec.rb", "symbol": "", "line": 352, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 4: desc \"snack\"", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 117: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 35: sub_help = capture(:stdout) { TestSubcommands::Parent.start(%w(sub help print_opt)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 12: else", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 219: it \"does not print a message if muted\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 261: content = capture(:stderr) { Thor::Runner.start(%W(install #{location})) }", "file": "spec/runner_spec.rb", "symbol": "", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 152: fail ExclusiveArgumentError, \"Found exclusive #{class_name} #{names.join(\", \")}\"", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 48: File.symlink(render, destination)", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 181: expect(@content).to match(/# Default: 3/)", "file": "spec/base_spec.rb", "symbol": "", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 75: # Allow shell to be shared between invocations.", "file": "lib/thor/shell.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 108: end", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find the logic that suggests corrections for unknown switches", "query": "switch spell corrections", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lang": "en", "candidates": [{"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find the logic that suggests corrections for unknown switches", "query": "switch spell corrections", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lang": "en", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=5-28\nread print_opt for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "print_opt", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=59-82\nread foo for detail", "file": "spec/fixtures/script.thor", "symbol": "foo", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=547-570\nread shell for detail", "file": "spec/thor_spec.rb", "symbol": "shell", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=115-138\nread say_error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_error", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=24-47\nread UndefinedCommandError for detail", "file": "lib/thor/error.rb", "symbol": "UndefinedCommandError", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=68-91\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=107-130\nread revoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "revoke!", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/error.rb lines=20-43\nread Error for detail", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=203-226\nread thor_root_glob for detail", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=164-187\nread undasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=730-753\nread method_added for detail", "file": "lib/thor/base.rb", "symbol": "method_added", "line": 730, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=412-435\nread class_at_least_one_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one_option_names", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=111-134\nread group for detail", "file": "spec/fixtures/group.thor", "symbol": "group", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=78-101\nread long_desc for detail", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=325-348\nread subcommand_classes for detail", "file": "lib/thor.rb", "symbol": "subcommand_classes", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=48-71\nread add_runtime_options! for detail", "file": "lib/thor/actions.rb", "symbol": "add_runtime_options!", "line": 48, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "这个方法是用来处理未定义的参数时停止执行的吗?", "query": "unknown option stop", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option", "line": 473, "lang": "zh", "candidates": [{"text": "File: lib/thor/nested_context.rb\nLine 5: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 4: class EncodingOther < Thor", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 45: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 31: expect(command(foo: :required).formatted_usage(object)).to eq(\"foo:can_has BAR --foo=FOO\")", "file": "spec/command_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 130: it \"still passes everything after -- to command, complex\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 6: ruby_lib= ENV[\"RUBYLIB\"].nil? ? lib_path : \"#{lib_path}:#{ENV['RUBYLIB']}\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 8: desc \"error\", \"exit with a planned error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 10: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 40: # Returns the formatted usage by injecting given required arguments", "file": "lib/thor/command.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 16: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 4: def self.available?", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 26: end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 31: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 75: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 473: def stop_on_unknown_option #:nodoc:", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option", "line": 473, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/script_exit_status_spec.rb\nLine 12: {out: w, err: [:child, :out]})", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 51: end", "file": "spec/group_spec.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 79: stop_on_unknown = self.class.stop_on_unknown_option? current_command", "file": "lib/thor/base.rb", "symbol": "", "line": 79, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nLine 61: list.sort_by! do |a,b|", "file": "spec/sort_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 227: # The method responsible for dispatching given the args.", "file": "lib/thor/group.rb", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 10: include LCSDiff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 89: super(\"Unknown switches #{unknown.map(&:inspect).join(', ')}\")", "file": "lib/thor/error.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 92: describe \"#stop_on_unknown_option!\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 92, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "这个方法是用来处理未定义的参数时停止执行的吗?", "query": "unknown option stop", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option", "line": 473, "lang": "zh", "candidates": [{"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "这个方法是用来处理未定义的参数时停止执行的吗?", "query": "unknown option stop", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option", "line": 473, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "这个方法是用来处理未定义的参数时停止执行的吗?", "query": "unknown option stop", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option", "line": 473, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=360-383\nread answer_match for detail", "file": "lib/thor/shell/basic.rb", "symbol": "answer_match", "line": 360, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=112-135\nread are_colors_disabled? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_disabled?", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=689-712\nread build_option for detail", "file": "lib/thor/base.rb", "symbol": "build_option", "line": 689, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=767-790\nread hi for detail", "file": "spec/thor_spec.rb", "symbol": "hi", "line": 767, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=104-127\nread can_display_colors? for detail", "file": "lib/thor/shell/color.rb", "symbol": "can_display_colors?", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor.rb lines=5-28\nread LineEditor for detail", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=15-38\nread entered? for detail", "file": "lib/thor/nested_context.rb", "symbol": "entered?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=107-130\nread show_default? for detail", "file": "lib/thor/parser/option.rb", "symbol": "show_default?", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=109-132\nread CommandConflict for detail", "file": "spec/fixtures/group.thor", "symbol": "CommandConflict", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=231-254\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=345-368\nread only_one for detail", "file": "spec/fixtures/script.thor", "symbol": "only_one", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=100-123\nread force_on_collision? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_on_collision?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=473-496\nread stop_on_unknown_option for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option", "line": 473, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=38-61\nread source_paths_for_search for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths_for_search", "line": 38, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "我需要判断当前参数是否是一个具体的值而不是一个选项标志,请帮我找到相关逻辑。", "query": "thor parser argument value", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lang": "zh", "candidates": [{"text": "File: lib/thor/shell/color.rb\nLine 43: ON_YELLOW = \"\\e[43m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 12: def define", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 249: def banner", "file": "lib/thor/group.rb", "symbol": "", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 55: if colors.all? { |color| color.is_a?(Symbol) || color.is_a?(String) }", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 128: validate_default_type!", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 63: it \"has default value equal to the array\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 13: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 84: def current_is_value?", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/sort_spec.rb\nLine 19: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 66: class PluginWithDefaultMultipleArguments < Thor", "file": "spec/register_spec.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 11: arguments.sort! { |a, b| b.name <=> a.name }", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 10: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 33: expect(parse(\"product\", \"title:string\", \"age:integer\")[\"hash\"]).to eq(\"title\" => \"string\", \"age\" => \"integer\")", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 1: # module: random", "file": "spec/fixtures/command.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 858: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 858, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 89: # options.force? # => !!options['force']", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 23: class EmptyDirectory #:nodoc:", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 30: # commands can be added to a sandbox, this method is also responsible for", "file": "lib/thor/util.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 80: end", "file": "spec/register_spec.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 19: namespace :hiper_mega do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 25: when \"+\"", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 26: expect(parse(\"name\", \"-13\")[\"numeric\"]).to eq(-13)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "我需要判断当前参数是否是一个具体的值而不是一个选项标志,请帮我找到相关逻辑。", "query": "thor parser argument value", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lang": "zh", "candidates": [{"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "我需要判断当前参数是否是一个具体的值而不是一个选项标志,请帮我找到相关逻辑。", "query": "thor parser argument value", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lang": "zh", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=85-108\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=42-65\nread completion_options for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_options", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=126-149\nread validate! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate!", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=320-343\nread subcommands for detail", "file": "lib/thor.rb", "symbol": "subcommands", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/directory_spec.rb lines=23-46\nread revoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoke!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=811-834\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 811, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=105-128\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=117-140\nread with_optional for detail", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=286-309\nread is? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "is?", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=412-435\nread class_at_least_one_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one_option_names", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=133-156\nread potentially_ambiguous for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=25-48\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell.rb lines=4-27\nread Base for detail", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=84-107\nread current_is_value? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=330-353\nread ask_simply for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_simply", "line": 330, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_link_spec.rb lines=35-58\nread revoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "revoke!", "line": 35, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Como eu extraio o nome do parâmetro quando ele começa com um prefixo para desabilitar ou pular uma opção?", "query": "no skip regex", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lang": "pt", "candidates": [{"text": "File: lib/thor/base.rb\nLine 616: end", "file": "lib/thor/base.rb", "symbol": "", "line": 616, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 571: @namespace ||= Thor::Util.namespace_from_thor_class(self)", "file": "lib/thor/base.rb", "symbol": "", "line": 571, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 29: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 52: Rake.application.last_description = nil", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 322: # a single space after the comment hash.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 86: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 14: @truncate = options[:truncate] == true ? Terminal.terminal_width : options[:truncate]", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 76: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 242: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 242, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 162: it \"can insert chinese\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 59: def no_or_skip?(arg)", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 11: @indent = options[:indent].to_i", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 8: def action(*args, &block)", "file": "spec/actions_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 54: do some fooing", "file": "spec/fixtures/script.thor", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 22: def get_input", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 15: def entered?", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 196: expect(FileUtils).to receive(:rm_rf).with(path)", "file": "spec/runner_spec.rb", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 35: expect(%w(rake_compat_spec.rb Thorfile)).to include(Rake.application.rakefile)", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 142: BoringVendorProvidedCLI.register(", "file": "spec/register_spec.rb", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 13: Test.start(ARGV)", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 33: end", "file": "lib/thor/command.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 79: say contents", "file": "lib/thor/runner.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 455: # ==== Parameters", "file": "lib/thor/base.rb", "symbol": "", "line": 455, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 45: type: :string,", "file": "spec/register_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Como eu extraio o nome do parâmetro quando ele começa com um prefixo para desabilitar ou pular uma opção?", "query": "no skip regex", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lang": "pt", "candidates": [{"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Como eu extraio o nome do parâmetro quando ele começa com um prefixo para desabilitar ou pular uma opção?", "query": "no skip regex", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=66-89\nread method_exclusive_option_names for detail", "file": "lib/thor/command.rb", "symbol": "method_exclusive_option_names", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=277-300\nread rotten_apple for detail", "file": "spec/fixtures/script.thor", "symbol": "rotten_apple", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=211-234\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=393-416\nread class_at_least_one for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=99-122\nread destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "destination_root", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=130-153\nread say_status for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_status", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=43-66\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=157-180\nread MyChildScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyChildScript", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=159-182\nread attr_writer for detail", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=420-443\nread stop_on_unknown_option! for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option!", "line": 420, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=48-71\nread add_runtime_options! for detail", "file": "lib/thor/actions.rb", "symbol": "add_runtime_options!", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=92-115\nread long_description for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=246-269\nread method_at_least_one for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=59-82\nread no_or_skip? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "limpar opções de força e skip definindo a chave", "query": "cleanup options key", "file": "lib/thor/actions.rb", "symbol": "_cleanup_options_and_set", "line": 329, "lang": "pt", "candidates": [{"text": "File: lib/thor/parser/option.rb\nLine 176: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 176, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 11: load_thorfile(\"encoding_with_utf8.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 5: super + DidYouMean.formatter.message_for(corrections)", "file": "lib/thor/error.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 11: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 329: def _cleanup_options_and_set(options, key) #:nodoc:", "file": "lib/thor/actions.rb", "symbol": "_cleanup_options_and_set", "line": 329, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/base.rb\nLine 142: # Whenever a class inherits from Thor or Thor::Group, we should track the", "file": "lib/thor/base.rb", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 78: Hash.new(default).merge!(self)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 16: [arguments, args[Range.new(arguments.size, -1)]]", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 15: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 393: File.open(path, \"wb\") { |file| file.write(content) }", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 92: # continue to support the old API because you should never", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 386: xyz #786 last three", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 386, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 93: # In some cases, you want to invoke a thor class if some option is true or", "file": "lib/thor/group.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 6: print options[\"opt\"]", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 171: it \"removes the destination file\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 43: it \"uses rake tasks descriptions on thor\" do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 42: require \"diff/lcs\"", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 136: klass = Thor::Base.subclasses.detect { |thor| thor.namespace == namespace && thor.command_exists?(command) }", "file": "lib/thor/util.rb", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 12: {out: w, err: [:child, :out]})", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 28: paras.each do |para|", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 93: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 144: it \"returns the *nix system path if file cannot be expanded and separator does not exist\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 322: Encoding.default_external = encoding_original", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 322, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "limpar opções de força e skip definindo a chave", "query": "cleanup options key", "file": "lib/thor/actions.rb", "symbol": "_cleanup_options_and_set", "line": 329, "lang": "pt", "candidates": [{"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "limpar opções de força e skip definindo a chave", "query": "cleanup options key", "file": "lib/thor/actions.rb", "symbol": "_cleanup_options_and_set", "line": 329, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/file_manipulation", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/inject_into_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> revoke", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/empty_directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "limpar opções de força e skip definindo a chave", "query": "cleanup options key", "file": "lib/thor/actions.rb", "symbol": "_cleanup_options_and_set", "line": 329, "lang": "pt", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=95-118\nread print_status for detail", "file": "spec/fixtures/invoke.thor", "symbol": "print_status", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=12-35\nread exists_and_identical? for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=505-528\nread dispatch for detail", "file": "lib/thor.rb", "symbol": "dispatch", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=174-197\nread list for detail", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=164-187\nread undasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=3-26\nread Subcommand for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Subcommand", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=83-106\nread convert_key for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "convert_key", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=234-257\nread switch_option for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch_option", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=329-352\nread _cleanup_options_and_set for detail", "file": "lib/thor/actions.rb", "symbol": "_cleanup_options_and_set", "line": 329, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=153-176\nread what for detail", "file": "spec/fixtures/script.thor", "symbol": "what", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=91-114\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/tree_spec.rb lines=7-30\nread command1 for detail", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=153-176\nread _retrieve_class_and_command for detail", "file": "lib/thor/invocation.rb", "symbol": "_retrieve_class_and_command", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=377-400\nread merge_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge_tool", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=460-483\nread method_exclusive_option_names for detail", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/command.thor lines=10-33\nread describe for detail", "file": "spec/fixtures/command.thor", "symbol": "describe", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I want to understand how Thor automatically registers Thor commands when new methods are defined in a class. Specifically, I need to see the logic that filters out non-public methods and invokes the command registration process.", "query": "method_added command registration", "file": "lib/thor/base.rb", "symbol": "method_added", "line": 730, "lang": "en", "candidates": [{"text": "File: lib/thor/parser/option.rb\nLine 119: self.type == #{type.inspect}", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 21: expect(MyCounter.class_options.keys).to include(:skip)", "file": "spec/actions_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 66: class SpellChecker", "file": "lib/thor/error.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 87: elsif colors.all? { |color| color.is_a?(Symbol) || color.is_a?(String) }", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 282: # command:: the command to be executed.", "file": "lib/thor/actions.rb", "symbol": "", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 21: RUBY_PLATFORM =~ /(aix|darwin|linux|(net|free|open)bsd|cygwin|solaris)/i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 730: def method_added(meth)", "file": "lib/thor/base.rb", "symbol": "method_added", "line": 730, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/color_spec.rb\nLine 36: shell.ask \"Is this green?\", :green", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 339: invoke! \"doc/README\", \"\\nmore content\", after: \"__start__\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 318: end", "file": "spec/base_spec.rb", "symbol": "", "line": 318, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 194: end", "file": "lib/thor/util.rb", "symbol": "", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 81: # destination #=> dest/bar/baz", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 28: # #=> Required option foo without default value", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 5: @shell ||= Thor::Shell::HTML.new", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 13: $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), \"..\", \"lib\"))", "file": "spec/helper.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 558: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 558, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 175: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 130: #", "file": "lib/thor/util.rb", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 447: expect(parse(\"--no-foo\", \"bar\")).to eq(\"foo\" => false)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 447, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 43: `git ls-files`.split(\"\\n\").each do |filename|", "file": "spec/quality_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 73: # script is being executed on \"dest\", it sets the destination root to", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 22: Rake::Task[\"release\"].invoke", "file": "Thorfile", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I want to understand how Thor automatically registers Thor commands when new methods are defined in a class. Specifically, I need to see the logic that filters out non-public methods and invokes the command registration process.", "query": "method_added command registration", "file": "lib/thor/base.rb", "symbol": "method_added", "line": 730, "lang": "en", "candidates": [{"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "thor", "task": "I want to understand how Thor automatically registers Thor commands when new methods are defined in a class. Specifically, I need to see the logic that filters out non-public methods and invokes the command registration process.", "query": "method_added command registration", "file": "lib/thor/base.rb", "symbol": "method_added", "line": 730, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I want to understand how Thor automatically registers Thor commands when new methods are defined in a class. Specifically, I need to see the logic that filters out non-public methods and invokes the command registration process.", "query": "method_added command registration", "file": "lib/thor/base.rb", "symbol": "method_added", "line": 730, "lang": "en", "candidates": [{"text": "Next: read lib/thor/actions.rb lines=114-137\nread relative_to_original_destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "relative_to_original_destination_root", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=622-645\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=156-179\nread check_at_least_one! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_at_least_one!", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=13-36\nread invoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=560-583\nread create_command for detail", "file": "lib/thor.rb", "symbol": "create_command", "line": 560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=75-98\nread execute! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "execute!", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=33-56\nread part_one for detail", "file": "spec/register_spec.rb", "symbol": "part_one", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=93-116\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/util_spec.rb lines=4-27\nread clear_user_home! for detail", "file": "spec/util_spec.rb", "symbol": "clear_user_home!", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=730-753\nread method_added for detail", "file": "lib/thor/base.rb", "symbol": "method_added", "line": 730, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/util.rb lines=280-303\nread escape_html for detail", "file": "lib/thor/util.rb", "symbol": "escape_html", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=78-101\nread glob_pattern for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "glob_pattern", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=291-314\nread gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file", "line": 291, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Where is the command defined that returns the current execution chain?", "query": "current_command_chain thor", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lang": "en", "candidates": [{"text": "File: spec/encoding_spec.rb\nLine 13: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 178: end", "file": "spec/register_spec.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 88: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 9: @command ||= Thor::Command.new(:can_has, \"I can has cheezburger\", \"I can has cheezburger\\nLots and lots of it\", nil, usage, options)", "file": "spec/command_spec.rb", "symbol": "", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 96: # say(\"I know you knew that.\")", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 96, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 293: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 22: super", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 9: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 132: array", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 27: puts \"I love nuts\"", "file": "spec/register_spec.rb", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 20: stdout.puts value", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 16: # hostname = ask(\"What is the virtual hostname I should use?\")", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 152: # prepare_for_invocation in the current class.", "file": "lib/thor/invocation.rb", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 120: class I < Thor", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nLine 13: raise ArgumentError, \"#{class_name} name can't be nil.\" if name.nil?", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 86: # class GemGenerator < Thor::Group", "file": "lib/thor/group.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 21: else", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 39: it \"has no malformed whitespace\" do", "file": "spec/quality_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 56: end", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 50: expect(Thor::LineEditor).to receive(:readline).with(\"Should I overwrite it? \", {}).and_return(\"Sure\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nLine 162: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 36: # ==== Examples", "file": "lib/thor/shell.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 25: def pop", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Where is the command defined that returns the current execution chain?", "query": "current_command_chain thor", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lang": "en", "candidates": [{"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\ndefines I", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Where is the command defined that returns the current execution chain?", "query": "current_command_chain thor", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lang": "en", "candidates": [{"text": "Next: read spec/register_spec.rb lines=85-108\nread SubcommandWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "SubcommandWithDefault", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=203-226\nread thor_root_glob for detail", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=120-143\nread I for detail", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=282-305\nread stderr for detail", "file": "lib/thor/shell/basic.rb", "symbol": "stderr", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=225-248\nread initialize_thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "initialize_thorfiles", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=144-167\nread check_exclusive! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell.rb lines=23-46\nread Shell for detail", "file": "lib/thor/shell.rb", "symbol": "Shell", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=190-213\nread thor_root for detail", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=72-95\nread format_cell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "format_cell", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=47-70\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/application.rb lines=1-24\nread Application for detail", "file": "spec/fixtures/application.rb", "symbol": "Application", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions_spec.rb lines=8-31\nread action for detail", "file": "spec/actions_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=177-200\nread check_unknown_options? for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I'm trying to figure out how to retrieve a complete list of available tasks including those inherited from parent classes. Can you show me the method that aggregates every command into a single hash?", "query": "all commands hash", "file": "lib/thor/base.rb", "symbol": "all_commands", "line": 483, "lang": "en", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nLine 592: def file", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 134: self.class.all_commands.map { |_, command| invoke_command(command) }", "file": "lib/thor/invocation.rb", "symbol": "", "line": 134, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 483: def all_commands", "file": "lib/thor/base.rb", "symbol": "all_commands", "line": 483, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/argument_spec.rb\nLine 31: end.to raise_error(ArgumentError, \"An argument cannot have an enum other than an enumerable.\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 81: next if File.directory?(file_source)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 16: # hostname = ask(\"What is the virtual hostname I should use?\")", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 438: expect(parse(\"--skip-foo-bar\")[\"foo_bar\"]).to eq(false)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 15: it \"adds 'default' if namespace starts with :\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 75: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 44: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 248: expect(option(:foo, required: false, type: :string, banner: \"BAR\").usage).to eq(\"[--foo=BAR]\")", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 257: #", "file": "lib/thor/util.rb", "symbol": "", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 42: require \"fileutils\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 241: instance.invoke_command(all_commands[command])", "file": "lib/thor/group.rb", "symbol": "", "line": 241, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nLine 13: desc \"ok\", \"exit with no error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 36: expect(command({bar: :required}, [\"can_has FOO\", \"can_has BAR\"]).formatted_usage(object, false)).to eq(\"can_has FOO --bar=BAR\\ncan_has BAR --bar=BAR\")", "file": "spec/command_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 260: command = all_commands[meth]", "file": "lib/thor.rb", "symbol": "", "line": 260, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 277: describe \"#all_commands\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 277, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nLine 37: DidYouMean::SpellChecker.new(dictionary: error.all_commands)", "file": "lib/thor/error.rb", "symbol": "", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 103: raise MalformattedArgumentError, \"You can't specify '#{key}' more than once in option '#{name}'; got #{key}:#{hash[key]} and #{key}:#{value}\" if hash.include? key", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 4: $thor_runner ||= false", "file": "lib/thor.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 241: say file_collision_help(block_given?)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 241, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 99: #", "file": "lib/thor/invocation.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm trying to figure out how to retrieve a complete list of available tasks including those inherited from parent classes. Can you show me the method that aggregates every command into a single hash?", "query": "all commands hash", "file": "lib/thor/base.rb", "symbol": "all_commands", "line": 483, "lang": "en", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "I'm trying to figure out how to retrieve a complete list of available tasks including those inherited from parent classes. Can you show me the method that aggregates every command into a single hash?", "query": "all commands hash", "file": "lib/thor/base.rb", "symbol": "all_commands", "line": 483, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm trying to figure out how to retrieve a complete list of available tasks including those inherited from parent classes. Can you show me the method that aggregates every command into a single hash?", "query": "all commands hash", "file": "lib/thor/base.rb", "symbol": "all_commands", "line": 483, "lang": "en", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=221-244\nread MyDefaults for detail", "file": "spec/fixtures/script.thor", "symbol": "MyDefaults", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=12-35\nread check_for_tab_characters for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=57-80\nread merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=83-106\nread windows? for detail", "file": "spec/helper.rb", "symbol": "windows?", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=75-98\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=80-103\nread Defined for detail", "file": "spec/fixtures/invoke.thor", "symbol": "Defined", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/parser/options_spec.rb lines=16-39\nread parse for detail", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=230-253\nread switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch?", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=320-343\nread exclusive for detail", "file": "spec/fixtures/script.thor", "symbol": "exclusive", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=38-61\nread source_paths_for_search for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths_for_search", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=384-407\nread diff_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "diff_tool", "line": 384, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=67-90\nread valid_type? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=72-95\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=483-506\nread all_commands for detail", "file": "lib/thor/base.rb", "symbol": "all_commands", "line": 483, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=115-138\nread say_error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_error", "line": 115, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "パッケージ名をカスタム設定するメソッドはどれ?", "query": "package name setter", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lang": "ja", "candidates": [{"text": "File: lib/thor/shell/lcs_diff.rb\nLine 25: when \"+\"", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 12: def package_name(name, _ = {})", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nLine 13: raise ArgumentError, \"#{class_name} name can't be nil.\" if name.nil?", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 38: describe \"with_padding\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 38: describe \"with_padding\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 10: result = if ENV[\"THOR_COLUMNS\"]", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 79: describe \"and is identical\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 57: SHELL_DELEGATED_METHODS.each do |method|", "file": "lib/thor/shell.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 117: private", "file": "spec/fixtures/group.thor", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 146: value = $&.index(\".\") ? shift.to_f : shift.to_i", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 15: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 207: package_name \"Baboon\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 207, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nLine 128: it \"asks the user and returns false if the user replies with an answer other than yes or no\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 10: # data:: the data to append to the file.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 5: describe \"file's encoding\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 48: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 315: expect{parse(%w[--foo --baz])}.not_to raise_error", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 315, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 97: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 370: describe \"#package_name\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 370, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nLine 1: require \"helper\"", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 195: printer = WrappedPrinter.new(stdout, options)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 15: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 117: class_eval <<-RUBY, __FILE__, __LINE__ + 1", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 26: it \"uses color to say status\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "パッケージ名をカスタム設定するメソッドはどれ?", "query": "package name setter", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lang": "ja", "candidates": [{"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "パッケージ名をカスタム設定するメソッドはどれ?", "query": "package name setter", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "パッケージ名をカスタム設定するメソッドはどれ?", "query": "package name setter", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=131-154\nread find_class_and_command_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_class_and_command_by_namespace", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=172-195\nread get_options_from_invocations for detail", "file": "lib/thor/group.rb", "symbol": "get_options_from_invocations", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=64-87\nread C for detail", "file": "spec/fixtures/invoke.thor", "symbol": "C", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=110-133\nread G for detail", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=78-101\nread glob_pattern for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "glob_pattern", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=168-191\nread check_unknown! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=398-421\nread CapturableERB for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "CapturableERB", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=78-101\nread long_desc for detail", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=83-106\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=164-187\nread undasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=358-381\nread class_exclusive for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=46-69\nread use_path_completion? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "use_path_completion?", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=5-28\nread parse for detail", "file": "spec/parser/option_spec.rb", "symbol": "parse", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=9-32\nread empty_directory for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "empty_directory", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=174-197\nread list for detail", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=113-136\nread indentation for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=43-66\nread indent for detail", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "How does the method that retrieves the third option value work?", "query": "options[:third]", "file": "spec/fixtures/group.thor", "symbol": "three", "line": 39, "lang": "en", "candidates": [{"text": "File: spec/shell/basic_spec.rb\nLine 345: @table << [\"abc\", \"#123\", \"first three\"]", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 345, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 104: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 106: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 92: MyClassOptionScript.start %w[mix --one --two --three --five]", "file": "spec/base_spec.rb", "symbol": "", "line": 92, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nLine 351: it \"accepts a --switch format on non required types\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 4: class EncodingWithUtf8 < Thor", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 330: describe \"#print_in_columns\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 330, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 193: it \"includes the plugin's subcommand name in subcommand's help\" do", "file": "spec/register_spec.rb", "symbol": "", "line": 193, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 213: expect(parse(:foo, :array).usage).to eq(\"[--foo=one two three]\")", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 213, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nLine 9: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 12: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 295: class_option :three", "file": "spec/fixtures/script.thor", "symbol": "", "line": 295, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 82: \"one two three\"", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 82, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\nLine 30: # Checks if the content of the file at the destination is identical to the rendered result.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 99: BoringVendorProvidedCLI.register(", "file": "spec/register_spec.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 8: ::FileUtils.cp_r(source_root, destination_root)", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 50: expect(MyCounter.desc).to eq(\"Description:\\n This generator runs three commands: one, two and three.\\n\")", "file": "spec/group_spec.rb", "symbol": "", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nLine 8: desc \"error\", \"exit with a planned error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 51: context \"specifying :symbolic => false\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 205: expect(@action.identical?).to be true", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 205, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 77: # :on_red", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 39: def three", "file": "spec/fixtures/group.thor", "symbol": "three", "line": 39, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/basic_spec.rb\nLine 277: expect($stdout).to receive(:print).with(\" create ~/.thor/command.thor\\n\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 2: # frozen_string_literal: true", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "How does the method that retrieves the third option value work?", "query": "options[:third]", "file": "spec/fixtures/group.thor", "symbol": "three", "line": 39, "lang": "en", "candidates": [{"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\ndefines three", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "How does the method that retrieves the third option value work?", "query": "options[:third]", "file": "spec/fixtures/group.thor", "symbol": "three", "line": 39, "lang": "en", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=53-76\nread remaining for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "remaining", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=84-107\nread unshift for detail", "file": "lib/thor/parser/options.rb", "symbol": "unshift", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=12-35\nread initialize for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "initialize", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=153-176\nread load_thorfile for detail", "file": "lib/thor/util.rb", "symbol": "load_thorfile", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=39-62\nread three for detail", "file": "spec/fixtures/group.thor", "symbol": "three", "line": 39, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=100-123\nread E for detail", "file": "spec/fixtures/invoke.thor", "symbol": "E", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=59-82\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=18-41\nread subcommand1 for detail", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=74-97\nread thor_classes_in for detail", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=20-43\nread Error for detail", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=325-348\nread _shared_configuration for detail", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/verbose.thor lines=7-30\nread Test for detail", "file": "spec/fixtures/verbose.thor", "symbol": "Test", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=446-469\nread remove_class_option for detail", "file": "lib/thor/base.rb", "symbol": "remove_class_option", "line": 446, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=14-37\nread ok for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "这里是怎么定义命令行参数的?", "query": "thor group option", "file": "spec/register_spec.rb", "symbol": "ClassOptionGroupPlugin", "line": 43, "lang": "zh", "candidates": [{"text": "File: spec/base_spec.rb\nLine 311: end", "file": "spec/base_spec.rb", "symbol": "", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 14: ].detect(&:available?)", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 19: return if array.empty?", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 39: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 43: class ClassOptionGroupPlugin < Thor::Group", "file": "spec/register_spec.rb", "symbol": "ClassOptionGroupPlugin", "line": 43, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/arguments_spec.rb\nLine 46: expect(parse(\"-\", \"title\", \"-\")[\"array\"]).to eq(%w(- title -))", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 75: say_status :identical, :blue", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 143: raise MalformattedArgumentError, \"Expected numeric value for '#{name}'; got #{peek.inspect}\"", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 34: it \"allows multiple usages\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 13: end", "file": "Thorfile", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 69: ensure", "file": "lib/thor/shell.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 568: allow(ENV).to receive(:[]).with(\"THOR_MERGE\").and_return(\"nvim -d\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 568, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 76: end", "file": "lib/thor/error.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 77: $VERBOSE = old_verbose", "file": "spec/helper.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 46: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 51: create", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 68: base.options[:pretend]", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 192: allow(ENV).to receive(:[]).with(\"NO_COLOR\").and_return(nil)", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 15: desc \"install\", \"Build and install thor-#{Thor::VERSION}.gem into system gems\"", "file": "Thorfile", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 150: end", "file": "spec/util_spec.rb", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 103: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 55: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "这里是怎么定义命令行参数的?", "query": "thor group option", "file": "spec/register_spec.rb", "symbol": "ClassOptionGroupPlugin", "line": 43, "lang": "zh", "candidates": [{"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nsibling in spec", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nsibling in spec", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nsibling in spec", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\ndefines ClassOptionGroupPlugin", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "thor", "task": "这里是怎么定义命令行参数的?", "query": "thor group option", "file": "spec/register_spec.rb", "symbol": "ClassOptionGroupPlugin", "line": 43, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "这里是怎么定义命令行参数的?", "query": "thor group option", "file": "spec/register_spec.rb", "symbol": "ClassOptionGroupPlugin", "line": 43, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/rake_compat.rb lines=41-64\nread task for detail", "file": "lib/thor/rake_compat.rb", "symbol": "task", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=34-57\nread invoker for detail", "file": "spec/fixtures/invoke.thor", "symbol": "invoker", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=71-94\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=104-127\nread F for detail", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=600-623\nread retrieve_command_name for detail", "file": "lib/thor.rb", "symbol": "retrieve_command_name", "line": 600, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=263-286\nread gsub_file! for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=4-27\nread command for detail", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=14-37\nread ok for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=84-107\nread current_is_value? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=15-38\nread SubApp for detail", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=547-570\nread shell for detail", "file": "spec/thor_spec.rb", "symbol": "shell", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/group_spec.rb lines=223-246\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=281-304\nread Pear for detail", "file": "spec/fixtures/script.thor", "symbol": "Pear", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=128-151\nread send for detail", "file": "spec/fixtures/script.thor", "symbol": "send", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=649-672\nread subcommand_help for detail", "file": "lib/thor.rb", "symbol": "subcommand_help", "line": 649, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=43-66\nread ClassOptionGroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "ClassOptionGroupPlugin", "line": 43, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/quality_spec.rb lines=2-25\nread check_for_spec_defs_with_single_quotes for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=329-352\nread class_option for detail", "file": "lib/thor/base.rb", "symbol": "class_option", "line": 329, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Error: El sistema lanza una excepción informando que no hay comandos disponibles cuando se intenta visualizar la lista de clases heredadas, incluso si existen subclases que no son las internas predeterminadas.", "query": "no commands available", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lang": "es", "candidates": [{"text": "File: spec/parser/arguments_spec.rb\nLine 69: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 8: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 363: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 12: self.options_relation = other.options_relation.dup if other.options_relation", "file": "lib/thor/command.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 3: class ExitStatus < Thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 56: required: false,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 103: if name.nil?", "file": "lib/thor/invocation.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 222: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 222, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 710: Class.new(Thor) do", "file": "spec/thor_spec.rb", "symbol": "", "line": 710, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 11: # available only in class methods invocations (i.e. in Thor::Group).", "file": "lib/thor/invocation.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 150: DynamicTask = DynamicCommand", "file": "lib/thor/command.rb", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 33: end", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 173: invocations.each do |name, from_option|", "file": "lib/thor/group.rb", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 176: end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 176, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 3: describe Thor::Shell do", "file": "spec/shell_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 35: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 19: # Set the terminal's foreground HTML color to green.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 40: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 63: expect(BrokenCounter.start(%w(1 2 --third 3))[0]).to be nil", "file": "spec/base_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 487: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 487, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 128: }", "file": "spec/runner_spec.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 289: def display_klasses(with_modules = false, show_internal = false, klasses = Thor::Base.subclasses)", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Error: El sistema lanza una excepción informando que no hay comandos disponibles cuando se intenta visualizar la lista de clases heredadas, incluso si existen subclases que no son las internas predeterminadas.", "query": "no commands available", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lang": "es", "candidates": [{"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Error: El sistema lanza una excepción informando que no hay comandos disponibles cuando se intenta visualizar la lista de clases heredadas, incluso si existen subclases que no son las internas predeterminadas.", "query": "no commands available", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> ../thor", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> open-uri", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> group", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Error: El sistema lanza una excepción informando que no hay comandos disponibles cuando se intenta visualizar la lista de clases heredadas, incluso si existen subclases que no son las internas predeterminadas.", "query": "no commands available", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lang": "es", "candidates": [{"text": "Next: read lib/thor/runner.rb lines=289-312\nread display_klasses for detail", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=257-280\nread one_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "one_arg", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=168-191\nread dasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherize", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=592-615\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=4-27\nread Thor for detail", "file": "lib/thor/rake_compat.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=72-95\nread replace for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "replace", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=307-330\nread mix for detail", "file": "spec/fixtures/script.thor", "symbol": "mix", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=314-337\nread uncomment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "uncomment_lines", "line": 314, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=80-103\nread Defined for detail", "file": "spec/fixtures/invoke.thor", "symbol": "Defined", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=166-189\nread _parse_initialization_options for detail", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=478-501\nread disable_required_check for detail", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=274-297\nread Apple for detail", "file": "spec/fixtures/script.thor", "symbol": "Apple", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=101-124\nread ExclusiveArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "ExclusiveArgumentError", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=32-55\nread completion_proc for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_proc", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=60-83\nread invoke! for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=42-65\nread formatted_usage for detail", "file": "lib/thor/command.rb", "symbol": "formatted_usage", "line": 42, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Wie wird die Aktion zum Rückgängigmachen von Verzeichnisänderungen ausgeführt?", "query": "directory revoke execute", "file": "lib/thor/actions/directory.rb", "symbol": "revoke!", "line": 69, "lang": "de", "candidates": [{"text": "File: lib/thor/rake_compat.rb\nLine 66: Thor::RakeCompat.rake_classes << new_klass", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 32: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 69: def revoke!", "file": "lib/thor/actions/directory.rb", "symbol": "revoke!", "line": 69, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 5: # available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 33: Thor::Base.shell = shell.class", "file": "spec/shell_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 45: end", "file": "spec/group_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 39: task = ThorTask.tasks[\"cool\"]", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 96: if args.empty?", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 12: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 30: no_commands do", "file": "spec/fixtures/script.thor", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 12: @maximas = []", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 26: # Lazy-load io/console since it is gem-ified as of 2.3", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 125: # Say a status with the given color and appends the message. Since this", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 16: #", "file": "lib/thor/error.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 49: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 24: object = Struct.new(:namespace, :arguments).new(\"default:foo\", [])", "file": "spec/command_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 7: class Test < Thor", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 11: ret = \"#{name} is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 378: self.output_buffer = buf", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 378, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 4: class EncodingOther < Thor", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 14: invoke :three", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 63: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Wie wird die Aktion zum Rückgängigmachen von Verzeichnisänderungen ausgeführt?", "query": "directory revoke execute", "file": "lib/thor/actions/directory.rb", "symbol": "revoke!", "line": 69, "lang": "de", "candidates": [{"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Wie wird die Aktion zum Rückgängigmachen von Verzeichnisänderungen ausgeführt?", "query": "directory revoke execute", "file": "lib/thor/actions/directory.rb", "symbol": "revoke!", "line": 69, "lang": "de", "candidates": [{"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Wie wird die Aktion zum Rückgängigmachen von Verzeichnisänderungen ausgeführt?", "query": "directory revoke execute", "file": "lib/thor/actions/directory.rb", "symbol": "revoke!", "line": 69, "lang": "de", "candidates": [{"text": "Next: read lib/thor/actions/create_file.rb lines=73-96\nread on_conflict_behavior for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "on_conflict_behavior", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=68-91\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=58-81\nread initialize for detail", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=64-87\nread C for detail", "file": "spec/fixtures/invoke.thor", "symbol": "C", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=69-92\nread revoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "revoke!", "line": 69, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=48-71\nread Child1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "Child1", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/argument_spec.rb lines=5-28\nread argument for detail", "file": "spec/parser/argument_spec.rb", "symbol": "argument", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=52-75\nread render for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "render", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=192-215\nread append_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "append_to_file", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=412-435\nread class_at_least_one_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one_option_names", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=377-400\nread merge_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge_tool", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=827-850\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 827, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=83-106\nread usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "usage", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions_spec.rb lines=8-31\nread action for detail", "file": "spec/actions_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=567-590\nread namespace for detail", "file": "lib/thor/base.rb", "symbol": "namespace", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=273-296\nread lookup_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "lookup_color", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=84-107\nread current_is_value? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "새로운 심볼릭 링크를 생성하는 로직을 수정하고 있어요. 대상 경로에 이미 파일이 있거나 심볼릭 링크가 존재하는지 확인하는 조건이 어떻게 구현되어 있는지 알려주세요.", "query": "symlink exists check", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lang": "ko", "candidates": [{"text": "File: lib/thor/shell/basic.rb\nLine 239: say \"Please specify merge tool to `THOR_MERGE` env.\"", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 749: # returns default.", "file": "lib/thor/base.rb", "symbol": "", "line": 749, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 158: else", "file": "lib/thor/invocation.rb", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 56: def exists?", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/runner_spec.rb\nLine 180: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 16: # The start of an ANSI bold sequence.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 96: if args.empty?", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 16: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 52: # gems = ask \"Which gems would you like to add?\"", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 27: alias_method :add_file, :create_file", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 167: it \"prints a message to the user without new line\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 48: expect(ThorTask.tasks[\"cool\"].usage).to eq(\"cool\")", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 22: stdout.printf(\"%-#{colwidth}s\", value)", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 110: desc \"A group with the same name as a default command\"", "file": "spec/fixtures/group.thor", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 187: end", "file": "spec/util_spec.rb", "symbol": "", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 301: q - quit, abort", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 301, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 5: def create(opts = {})", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 123: it \"supports the legacy color syntax\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 365: it \"inherits all mappings from parent\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 365, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 13: arguments << item", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 6: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 26: def spec", "file": "Thorfile", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "새로운 심볼릭 링크를 생성하는 로직을 수정하고 있어요. 대상 경로에 이미 파일이 있거나 심볼릭 링크가 존재하는지 확인하는 조건이 어떻게 구현되어 있는지 알려주세요.", "query": "symlink exists check", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "새로운 심볼릭 링크를 생성하는 로직을 수정하고 있어요. 대상 경로에 이미 파일이 있거나 심볼릭 링크가 존재하는지 확인하는 조건이 어떻게 구현되어 있는지 알려주세요.", "query": "symlink exists check", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "새로운 심볼릭 링크를 생성하는 로직을 수정하고 있어요. 대상 경로에 이미 파일이 있거나 심볼릭 링크가 존재하는지 확인하는 조건이 어떻게 구현되어 있는지 알려주세요.", "query": "symlink exists check", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/command.rb lines=87-110\nread not_debugging? for detail", "file": "lib/thor/command.rb", "symbol": "not_debugging?", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=120-143\nread I for detail", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=282-305\nread stderr for detail", "file": "lib/thor/shell/basic.rb", "symbol": "stderr", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=192-215\nread append_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "append_to_file", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=35-58\nread identical? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "identical?", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=56-79\nread exists? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=17-40\nread revoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "revoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=329-352\nread subcommand for detail", "file": "lib/thor.rb", "symbol": "subcommand", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=157-180\nread MyChildScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyChildScript", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=52-75\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=184-207\nread check_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type!", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=3-26\nread EncodingImplicit for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "EncodingImplicit", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "The method that executes code from a local file or a remote URL seems to be missing error handling if the content cannot be fetched or if the evaluation fails, and it doesn't account for cases where the file might not exist when it's not a URI.", "query": "execute remote content", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lang": "en", "candidates": [{"text": "File: lib/thor/shell/color.rb\nLine 75: # :white", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 179: def names_to_switch_names(names = [])", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 6: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 12: puts opts[\"forcefully\"] ? ret.upcase : ret", "file": "spec/fixtures/command.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 11: @indent = options[:indent].to_i", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 64: expect(capture(:stdout) do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 228: describe \"#apply\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 228, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nLine 10: desc \"build\", \"Build thor-#{Thor::VERSION}.gem into the pkg directory\"", "file": "Thorfile", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 216: def apply(path, config = {})", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/base_spec.rb\nLine 348: expect(capture(:stderr) { MyScript.start(%w(another_attribute)) }).to match(/Could not find/)", "file": "spec/base_spec.rb", "symbol": "", "line": 348, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 77: # With borders we handle padding separately", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 26: RSpec.describe \"Thor tree command\" do", "file": "spec/tree_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 14: end", "file": "spec/register_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 11: ret = \"#{name} is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 291: send(:\"parse_#{option.type}\", switch)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 15: def entered?", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 63: \"#{Thor::Util.escape_html(string)}\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 77: $VERBOSE = old_verbose", "file": "spec/helper.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 305: print_at_least_one_required_options(shell)", "file": "lib/thor.rb", "symbol": "", "line": 305, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 9: # source:: the relative path to the source root.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 34: shell.say desc if desc", "file": "lib/thor/group.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 29: ARGV.clear", "file": "spec/helper.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 10: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 25: let(:destination) { \"doc/config.rb\" }", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "The method that executes code from a local file or a remote URL seems to be missing error handling if the content cannot be fetched or if the evaluation fails, and it doesn't account for cases where the file might not exist when it's not a URI.", "query": "execute remote content", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lang": "en", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "The method that executes code from a local file or a remote URL seems to be missing error handling if the content cannot be fetched or if the evaluation fails, and it doesn't account for cases where the file might not exist when it's not a URI.", "query": "execute remote content", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/empty_directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/file_manipulation", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/inject_into_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> revoke", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "The method that executes code from a local file or a remote URL seems to be missing error handling if the content cannot be fetched or if the evaluation fails, and it doesn't account for cases where the file might not exist when it's not a URI.", "query": "execute remote content", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lang": "en", "candidates": [{"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=216-239\nread apply for detail", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=138-161\nread subclass_files for detail", "file": "lib/thor/base.rb", "symbol": "subclass_files", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=5-28\nread parse for detail", "file": "spec/parser/option_spec.rb", "symbol": "parse", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=160-183\nread dasherized? for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherized?", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=17-40\nread revoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "revoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=199-222\nread printable_commands for detail", "file": "lib/thor/group.rb", "symbol": "printable_commands", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=546-569\nread banner for detail", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=552-575\nread baseclass for detail", "file": "lib/thor.rb", "symbol": "baseclass", "line": 552, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=64-87\nread C for detail", "file": "spec/fixtures/invoke.thor", "symbol": "C", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=203-226\nread current_is_switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch?", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "suche die methode zum ausführen von befehl mit optionalen argumenten und warnung bei fehlendem argument", "query": "thor invoke implementation", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lang": "de", "candidates": [{"text": "File: spec/parser/option_spec.rb\nLine 49: it \"has default type :hash\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 58: end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 39: expect(parse(:foo, :bar).type).to eq(:string)", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 17: def invoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 134: end.to raise_error(Thor::Error, /does not appear to exist/)", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 63: \"%-s\".dup", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 60: end", "file": "spec/command_spec.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 70: remove_class_option :third", "file": "spec/fixtures/group.thor", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 254: invoke_with_a_bang! \"doc/README\", before: /(__end__)/ do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 48: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 83: def invoke!", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 83, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nLine 84: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 21: THOR_RESERVED_WORDS = %w(invoke shell options behavior root destination_root relative_root", "file": "lib/thor/base.rb", "symbol": "", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 3: class Thor", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 4: desc \"one\", \"invoke one\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nLine 47: expect(Thor::LineEditor).to receive(:readline).with(\"\\e[32mIs this green? [Yes, No, Maybe] \\e[0m\", anything).and_return(\"Yes\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 52: action Directory.new(self, source, destination || source, config, &block)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 5: describe \"file's encoding\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 102: def invoke(name = nil, *args)", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/html.rb\nLine 50: # option is set to true, it also adds bold to the string. This is based", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 12: expect(capture(:stdout) { Thor::Sandbox::EncodingWithUtf8.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 82: describe \"#invoke\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 82, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "suche die methode zum ausführen von befehl mit optionalen argumenten und warnung bei fehlendem argument", "query": "thor invoke implementation", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lang": "de", "candidates": [{"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "suche die methode zum ausführen von befehl mit optionalen argumenten und warnung bei fehlendem argument", "query": "thor invoke implementation", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lang": "de", "candidates": [{"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=102-125\nread invoke for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_link_spec.rb lines=31-54\nread invoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "invoke!", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=149-172\nread yes? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "yes?", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=231-254\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=293-316\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=478-501\nread disable_required_check for detail", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=143-166\nread content for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=138-161\nread subclass_files for detail", "file": "lib/thor/base.rb", "symbol": "subclass_files", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=541-564\nread no_commands? for detail", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=399-422\nread set_eoutvar for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "set_eoutvar", "line": 399, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=12-35\nread check_for_tab_characters for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/subcommand.thor lines=5-28\nread print_opt for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "print_opt", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=424-447\nread stop_on_unknown_option? for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=129-152\nread HiddenCommand for detail", "file": "lib/thor/command.rb", "symbol": "HiddenCommand", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=309-332\nread printable_commands for detail", "file": "lib/thor.rb", "symbol": "printable_commands", "line": 309, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "怎么在定义一些不作为命令行指令的方法时,把它们包裹起来防止被识别成命令?", "query": "exclude methods from commands", "file": "lib/thor/base.rb", "symbol": "no_commands", "line": 531, "lang": "zh", "candidates": [{"text": "File: lib/thor/invocation.rb\nLine 79: # end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 160: expect(help_output).to include(\"do exciting things\")", "file": "spec/register_spec.rb", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 97: content = capture(:stderr) { Thor::Runner.start }", "file": "spec/runner_spec.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 15: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 18: def three", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 83: end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 58: other.each do |key, value|", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 582: \"no_commands{} block. Invoked from #{caller_line.inspect}.\"", "file": "lib/thor.rb", "symbol": "", "line": 582, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 23: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 75: # are related in the following way:", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 28: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 145: expect(File.exist?(\"idontexist\")).to be_falsey", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 65: # ==== Configuration", "file": "lib/thor/actions.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 60: no_commands do", "file": "spec/fixtures/group.thor", "symbol": "", "line": 60, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nLine 41: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 30: no_commands do", "file": "spec/fixtures/script.thor", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 133: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 531: def no_commands(&block)", "file": "lib/thor/base.rb", "symbol": "no_commands", "line": 531, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/script_exit_status_spec.rb\nLine 16: r.read", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 11: [", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 288: expect do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 75: result", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 48: describe \"#no_commands\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 41: # Sets the output padding while executing a block and resets it.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "怎么在定义一些不作为命令行指令的方法时,把它们包裹起来防止被识别成命令?", "query": "exclude methods from commands", "file": "lib/thor/base.rb", "symbol": "no_commands", "line": 531, "lang": "zh", "candidates": [{"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "怎么在定义一些不作为命令行指令的方法时,把它们包裹起来防止被识别成命令?", "query": "exclude methods from commands", "file": "lib/thor/base.rb", "symbol": "no_commands", "line": 531, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "怎么在定义一些不作为命令行指令的方法时,把它们包裹起来防止被识别成命令?", "query": "exclude methods from commands", "file": "lib/thor/base.rb", "symbol": "no_commands", "line": 531, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/shell/lcs_diff.rb lines=1-24\nread LCSDiff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "LCSDiff", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=225-248\nread initialize_thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "initialize_thorfiles", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=32-55\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=48-71\nread Child1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "Child1", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=4-27\nread shell for detail", "file": "spec/sort_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=122-145\nread baz for detail", "file": "spec/fixtures/group.thor", "symbol": "baz", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=424-447\nread stop_on_unknown_option? for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=531-554\nread no_commands for detail", "file": "lib/thor/base.rb", "symbol": "no_commands", "line": 531, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=129-152\nread method_options for detail", "file": "lib/thor.rb", "symbol": "method_options", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=291-314\nread gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=46-69\nread use_path_completion? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "use_path_completion?", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=67-90\nread pretend? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "pretend?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=68-91\nread ClearCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "ClearCounter", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=29-52\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 29, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "실행 옵션을 추가하는 메서드를 찾아줘. 파일 덮어쓰기, 미리보기, 출력 억제, 파일 건너뛰기 같은 기능을 제공하는 거야.", "query": "runtime options", "file": "lib/thor/actions.rb", "symbol": "add_runtime_options!", "line": 48, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions.rb\nLine 48: def add_runtime_options!", "file": "lib/thor/actions.rb", "symbol": "add_runtime_options!", "line": 48, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/script_exit_status_spec.rb\nLine 9: r,w= IO.pipe", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 48: end", "file": "spec/util_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 281: default: true", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 35: ON_RED = \"background-color: red\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 24: SHELL_DELEGATED_METHODS = [:ask, :error, :set_color, :yes?, :no?, :say, :say_error, :say_status, :print_in_columns, :print_table, :print_wrapped, :file_collision, :terminal_width]", "file": "lib/thor/shell.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 3: class ExitStatus < Thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 402: #", "file": "lib/thor/base.rb", "symbol": "", "line": 402, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 68: expect(Thor::Util.snake_case(\"foo_bar\")).to eq(\"foo_bar\")", "file": "spec/util_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 100: File.join(previous_lookup, \"*\")", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 44: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 85: def one", "file": "spec/fixtures/group.thor", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 195: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 70: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 8: actual = File.binread(destination).to_s.split(\"\\n\")", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 103: allow(@action.base).to receive(:file_name).and_return(\"expected\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 92: empty_directory(\"doc\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 14: # components/.empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 26: say \"+ #{diff.new_element.chomp}\", :green, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 170: ENV[\"HOME\"]", "file": "lib/thor/util.rb", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 15: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 16: counter = 0 if word.include? \"\\n\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "실행 옵션을 추가하는 메서드를 찾아줘. 파일 덮어쓰기, 미리보기, 출력 억제, 파일 건너뛰기 같은 기능을 제공하는 거야.", "query": "runtime options", "file": "lib/thor/actions.rb", "symbol": "add_runtime_options!", "line": 48, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "실행 옵션을 추가하는 메서드를 찾아줘. 파일 덮어쓰기, 미리보기, 출력 억제, 파일 건너뛰기 같은 기능을 제공하는 거야.", "query": "runtime options", "file": "lib/thor/actions.rb", "symbol": "add_runtime_options!", "line": 48, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/empty_directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> revoke", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/inject_into_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/file_manipulation", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "실행 옵션을 추가하는 메서드를 찾아줘. 파일 덮어쓰기, 미리보기, 출력 억제, 파일 건너뛰기 같은 기능을 제공하는 거야.", "query": "runtime options", "file": "lib/thor/actions.rb", "symbol": "add_runtime_options!", "line": 48, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=264-287\nread prepare_message for detail", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=322-345\nread quiet? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=493-516\nread print_at_least_one_required_options for detail", "file": "lib/thor.rb", "symbol": "print_at_least_one_required_options", "line": 493, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=147-170\nread replacement_present? for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=48-71\nread add_runtime_options! for detail", "file": "lib/thor/actions.rb", "symbol": "add_runtime_options!", "line": 48, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=64-87\nread invoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=634-657\nread find_command_possibilities for detail", "file": "lib/thor.rb", "symbol": "find_command_possibilities", "line": 634, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=286-309\nread is? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "is?", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=31-54\nread except for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/create_file_spec.rb lines=17-40\nread invoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=47-70\nread SubcommandTest1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "SubcommandTest1", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "trouve la méthode qui initialise une nouvelle commande dans la liste", "query": "Thor::Command new", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lang": "fr", "candidates": [{"text": "File: spec/encoding_spec.rb\nLine 20: expect(capture(:stdout) { Thor::Sandbox::EncodingImplicit.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 51: # insert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 17: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 348: expect(parse(\"burger\", \"--no-cheese\", \"fries\")[\"cheese\"]).to be nil", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 348, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 8: push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 19: it \"does not use a new line even with colors\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 251: # replacement:: the replacement, can be also given as a block", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 88: end", "file": "spec/helper.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 11: ENV[\"THOR_COLUMNS\"].to_i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 23: end", "file": "Thorfile", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 59: def #{method}(*args,&block)", "file": "lib/thor/shell.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 92: #", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 35: ON_RED = \"background-color: red\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 729: # tracked as commands by invoking the create_command method.", "file": "lib/thor/base.rb", "symbol": "", "line": 729, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 82: # As you noticed, it invokes the given mock framework, which might have its", "file": "lib/thor/invocation.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 263: def create_command(meth) #:nodoc:", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/command.rb\nLine 134: HiddenTask = HiddenCommand", "file": "lib/thor/command.rb", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 63: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 66: #", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 60: # first two parameters.", "file": "lib/thor/base.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 29: say \"+ #{diff.new_element.chomp}\", :green, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 560: def create_command(meth) #:nodoc:", "file": "lib/thor.rb", "symbol": "", "line": 560, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "trouve la méthode qui initialise une nouvelle commande dans la liste", "query": "Thor::Command new", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lang": "fr", "candidates": [{"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "trouve la méthode qui initialise une nouvelle commande dans la liste", "query": "Thor::Command new", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lang": "fr", "candidates": [{"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "trouve la méthode qui initialise une nouvelle commande dans la liste", "query": "Thor::Command new", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=109-132\nread CommandConflict for detail", "file": "spec/fixtures/group.thor", "symbol": "CommandConflict", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=170-193\nread prepend_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "prepend_to_file", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=45-68\nread invocation_blocks for detail", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=32-55\nread echo? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "echo?", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=75-98\nread execute! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "execute!", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=61-84\nread namespace for detail", "file": "lib/thor/rake_compat.rb", "symbol": "namespace", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=289-312\nread display_klasses for detail", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=109-132\nread sans_backtrace for detail", "file": "lib/thor/command.rb", "symbol": "sans_backtrace", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=28-51\nread ThorTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "ThorTask", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=142-165\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=46-69\nread use_path_completion? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "use_path_completion?", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=263-286\nread create_command for detail", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=9-32\nread empty_directory for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "empty_directory", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=107-130\nread revoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "revoke!", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=132-155\nread on_conflict_behavior for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_conflict_behavior", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=27-50\nread dynamic_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "実行環境のホームディレクトリを取得するロジックはどうなってる?", "query": "home directory env", "file": "lib/thor/util.rb", "symbol": "user_home", "line": 168, "lang": "ja", "candidates": [{"text": "File: spec/fixtures/subcommand.thor\nLine 1: module TestSubcommands", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 4: # is that it invokes all commands at once. It also include some methods that allows", "file": "lib/thor/group.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 26: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 84: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 88: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 801: opt ||= {}", "file": "lib/thor/base.rb", "symbol": "", "line": 801, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 16: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 4: describe Thor::Argument do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 342: # path:: path of the file to be changed", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 342, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 5: @@user_home = nil", "file": "spec/util_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 168: def user_home", "file": "lib/thor/util.rb", "symbol": "user_home", "line": 168, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 13: puts \"expected #{SOME_STRING.encoding.name} to equal UTF-8\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 2: require \"thor/base\"", "file": "spec/encoding_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 46: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 108: invoke! \"doc/README\", before: /(__end__)/ do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 48: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 162: get_options_from_invocations(groups, class_options) do |klass|", "file": "lib/thor/group.rb", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 154: invoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 21: def release", "file": "Thorfile", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 5: script_path= \"#{gem_dir}/spec/fixtures/exit_status.thor\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 4: module Shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 52: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "実行環境のホームディレクトリを取得するロジックはどうなってる?", "query": "home directory env", "file": "lib/thor/util.rb", "symbol": "user_home", "line": 168, "lang": "ja", "candidates": [{"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "実行環境のホームディレクトリを取得するロジックはどうなってる?", "query": "home directory env", "file": "lib/thor/util.rb", "symbol": "user_home", "line": 168, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "実行環境のホームディレクトリを取得するロジックはどうなってる?", "query": "home directory env", "file": "lib/thor/util.rb", "symbol": "user_home", "line": 168, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/actions/directory.rb lines=75-98\nread execute! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "execute!", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=167-190\nread installed for detail", "file": "lib/thor/runner.rb", "symbol": "installed", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=797-820\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 797, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=4-27\nread Sandbox for detail", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=309-332\nread printable_commands for detail", "file": "lib/thor.rb", "symbol": "printable_commands", "line": 309, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=17-40\nread Util for detail", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=583-606\nread start for detail", "file": "lib/thor/base.rb", "symbol": "start", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=129-152\nread subclasses for detail", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=149-172\nread remove_invocation for detail", "file": "lib/thor/group.rb", "symbol": "remove_invocation", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=398-421\nread CapturableERB for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "CapturableERB", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=129-152\nread uninstall for detail", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/group_spec.rb lines=206-229\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=168-191\nread user_home for detail", "file": "lib/thor/util.rb", "symbol": "user_home", "line": 168, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read Thorfile lines=21-44\nread release for detail", "file": "Thorfile", "symbol": "release", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=24-47\nread find_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_by_namespace", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=4-27\nread Thor for detail", "file": "lib/thor/rake_compat.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=350-373\nread remove_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "remove_file", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=560-583\nread create_command for detail", "file": "lib/thor.rb", "symbol": "create_command", "line": 560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "I'm trying to figure out how to programmatically generate a visual representation of all the available subcommands in this CLI framework. Can you show me the method that triggers the recursive construction of the command hierarchy?", "query": "command tree", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lang": "en", "candidates": [{"text": "File: lib/thor/actions.rb\nLine 156: raise Error, message", "file": "lib/thor/actions.rb", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 72: def format_cell(column, row_size, index)", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 334: when Hash", "file": "lib/thor/actions.rb", "symbol": "", "line": 334, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 686: def tree", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/subcommand.thor\nLine 1: module TestSubcommands", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 75: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 72: def silence_warnings", "file": "spec/helper.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 262: [[\"foo\", \"bar\"], [\"baz\",\"qux\"]])", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 67: expect(command.run(dub, [1, 2, 3])).to eq([1, 2, 3])", "file": "spec/command_spec.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 19: object = Struct.new(:namespace, :arguments).new(\"main:foo\", [])", "file": "spec/command_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 5: @shell ||= Thor::Shell::HTML.new", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 27: def source_root(path = nil)", "file": "lib/thor/actions.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 33: describe Thor::RakeCompat do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 11: ensure", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 43: def namespace_from_thor_class(constant)", "file": "lib/thor/util.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 407: it \"accepts --[skip-]opt variant, setting false for value, even if there's a trailing non-switch\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 407, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 10: yield", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 208: \"Hi #{name}\"", "file": "spec/group_spec.rb", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 16: # Shortcuts for help and tree commands.", "file": "lib/thor/base.rb", "symbol": "", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 51: start = @colwidth ? 1 : 0", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 22: failing_lines = []", "file": "spec/quality_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 179: expect(capture(:stdout) { Thor::Runner.start }).to eq(\"command\\n\")", "file": "spec/runner_spec.rb", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 26: RSpec.describe \"Thor tree command\" do", "file": "spec/tree_spec.rb", "symbol": "", "line": 26, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm trying to figure out how to programmatically generate a visual representation of all the available subcommands in this CLI framework. Can you show me the method that triggers the recursive construction of the command hierarchy?", "query": "command tree", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lang": "en", "candidates": [{"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "I'm trying to figure out how to programmatically generate a visual representation of all the available subcommands in this CLI framework. Can you show me the method that triggers the recursive construction of the command hierarchy?", "query": "command tree", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lang": "en", "candidates": [{"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm trying to figure out how to programmatically generate a visual representation of all the available subcommands in this CLI framework. Can you show me the method that triggers the recursive construction of the command hierarchy?", "query": "command tree", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lang": "en", "candidates": [{"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=225-248\nread initialize_thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "initialize_thorfiles", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/exit_status.thor lines=9-32\nread error for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "error", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=48-71\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/html.rb lines=54-77\nread set_color for detail", "file": "lib/thor/shell/html.rb", "symbol": "set_color", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=144-167\nread check_exclusive! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=68-91\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=730-753\nread method_added for detail", "file": "lib/thor/base.rb", "symbol": "method_added", "line": 730, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=61-84\nread world for detail", "file": "spec/fixtures/group.thor", "symbol": "world", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=75-98\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=52-75\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=686-709\nread tree for detail", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/group.rb lines=259-282\nread baseclass for detail", "file": "lib/thor/group.rb", "symbol": "baseclass", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=166-189\nread _parse_initialization_options for detail", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=133-156\nread invoke_all for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_all", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=65-88\nread peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=322-345\nread quiet? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=483-506\nread all_commands for detail", "file": "lib/thor/base.rb", "symbol": "all_commands", "line": 483, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=105-128\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 105, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "명령줄 인자를 처리하는 메서드를 찾아주세요. 이 메서드는 인수들을 평탄화한 후 퍼싱 로직을 호출해야 합니다.", "query": "parse command args", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/command.thor\nLine 5: false", "file": "spec/fixtures/command.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 411: expect(File.binread(file)).to eq(\"START\\nREADME\\n__end__\\n\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 411, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 7: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 16: def parse(*args)", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/invocation.rb\nLine 71: # supplied to B. This allows lazy parse of options. Let's suppose you have", "file": "lib/thor/invocation.rb", "symbol": "", "line": 71, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nLine 5: def parse(key, value)", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nLine 54: expect(base.destination_root).to eq(File.expand_path(File.join(File.dirname(__FILE__), \"..\", \"here\")))", "file": "spec/actions_spec.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 5: def print_opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 39: ON_RED = \"\\e[41m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 2: require_relative \"lcs_diff\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 109: expect(content).to match(/# This option has no use/)", "file": "spec/group_spec.rb", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 15: def parse(*args)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 16: else", "file": "lib/thor/shell.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 15: @padding = 1", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 75: # Let Thor::Options parse the options first, so it can remove", "file": "lib/thor/base.rb", "symbol": "", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 6: options[key] = Thor::Option.parse(key, value)", "file": "spec/command_spec.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 51: # insert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 72: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 7: class RakeTask < Rake::TaskLib", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 29: say \"+ #{diff.new_element.chomp}\", :green, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 19: def self.parse(*args)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 280: def escape_html(string)", "file": "lib/thor/util.rb", "symbol": "", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 16: $stdout.print(prompt)", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 42: expect(capture(:stdout) { base.say_status :padding, \"cool\" }.strip).to eq(\"padding cool\")", "file": "spec/shell_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "명령줄 인자를 처리하는 메서드를 찾아주세요. 이 메서드는 인수들을 평탄화한 후 퍼싱 로직을 호출해야 합니다.", "query": "parse command args", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lang": "ko", "candidates": [{"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nsibling in spec/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nsibling in spec/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\ndefines parse", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nsibling in spec/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "명령줄 인자를 처리하는 메서드를 찾아주세요. 이 메서드는 인수들을 평탄화한 후 퍼싱 로직을 호출해야 합니다.", "query": "parse command args", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "명령줄 인자를 처리하는 메서드를 찾아주세요. 이 메서드는 인수들을 평탄화한 후 퍼싱 로직을 호출해야 합니다.", "query": "parse command args", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lang": "ko", "candidates": [{"text": "Next: read spec/sort_spec.rb lines=55-78\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=64-87\nread last? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=326-349\nread unix? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "unix?", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=104-127\nread camel_case for detail", "file": "lib/thor/util.rb", "symbol": "camel_case", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=43-66\nread show_default? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "show_default?", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=2-25\nread NestedContext for detail", "file": "lib/thor/nested_context.rb", "symbol": "NestedContext", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=24-47\nread remaining for detail", "file": "spec/parser/options_spec.rb", "symbol": "remaining", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/parser/options_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/options_spec.rb", "symbol": "create", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=16-39\nread parse for detail", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=161-184\nread initialize for detail", "file": "spec/fixtures/script.thor", "symbol": "initialize", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=71-94\nread default_banner for detail", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=35-58\nread dynamic_width_tput for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_tput", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=67-90\nread valid_type? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=156-179\nread check_at_least_one! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_at_least_one!", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=39-62\nread three for detail", "file": "spec/fixtures/group.thor", "symbol": "three", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=190-213\nread thor_root for detail", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=258-281\nread command_help for detail", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=87-110\nread not_debugging? for detail", "file": "lib/thor/command.rb", "symbol": "not_debugging?", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "ファイルをコピーして、オプションで権限の保持やログの制御ができるメソッドはどこにある?", "query": "copy file preserve", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lang": "ja", "candidates": [{"text": "File: spec/actions/inject_into_file_spec.rb\nLine 130: expect do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 135: check_requirement! unless @disable_required_check", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 13: Thor::LineEditor::Basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 4: describe Thor::Actions::CreateFile do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nLine 435: create foo_bar: :boolean", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 435, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 45: def self.parse(key, value)", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 2: include Thor::Actions", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 14: # RSpec::Core::RakeTask.new(:spec) do |t|", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 84: sample = if banner && !banner.to_s.empty?", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 231: !switch_option(normalize_switch(arg)).nil?", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 1: # encoding: UTF-8", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 175: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 133: )", "file": "spec/register_spec.rb", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 3: describe Thor::Actions do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 2: module Actions", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 15: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 4: module Actions", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 397: runner({}, :revoke)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 397, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 4: module Actions", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor.rb\nLine 109: if mappings", "file": "lib/thor.rb", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 61: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 4: module Actions", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 55: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 413: expect(parse(\"--no-foo\")[\"no-foo\"]).to eq(true)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 413, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "ファイルをコピーして、オプションで権限の保持やログの制御ができるメソッドはどこにある?", "query": "copy file preserve", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lang": "ja", "candidates": [{"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "ファイルをコピーして、オプションで権限の保持やログの制御ができるメソッドはどこにある?", "query": "copy file preserve", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "ファイルをコピーして、オプションで権限の保持やログの制御ができるメソッドはどこにある?", "query": "copy file preserve", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/group.rb lines=259-282\nread baseclass for detail", "file": "lib/thor/group.rb", "symbol": "baseclass", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=320-343\nread subcommands for detail", "file": "lib/thor.rb", "symbol": "subcommands", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=254-277\nread self_command for detail", "file": "lib/thor/group.rb", "symbol": "self_command", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=24-47\nread UndefinedCommandError for detail", "file": "lib/thor/error.rb", "symbol": "UndefinedCommandError", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=48-71\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=772-795\nread basename for detail", "file": "lib/thor/base.rb", "symbol": "basename", "line": 772, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=78-101\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=6-29\nread readline for detail", "file": "lib/thor/line_editor.rb", "symbol": "readline", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=38-61\nread part_two for detail", "file": "spec/register_spec.rb", "symbol": "part_two", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=307-330\nread mix for detail", "file": "spec/fixtures/script.thor", "symbol": "mix", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=117-140\nread template for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=234-257\nread switch_option for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch_option", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/directory_spec.rb lines=23-46\nread revoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoke!", "line": 23, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "¿Dónde está la clase que gestiona el silenciamiento de la salida y el sangrado de texto?", "query": "mute padding indent", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lang": "es", "candidates": [{"text": "File: lib/thor/shell/terminal.rb\nLine 12: else", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 36: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 6: class Default < Thor", "file": "Thorfile", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 4: describe Thor::Option do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 1: class Thor", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nLine 146: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 514: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 514, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 78: if klass && !klass.arguments.empty?", "file": "lib/thor/command.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 3: describe Thor::Shell::HTML do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nLine 237: allow(File).to receive(:open).and_return(@template)", "file": "spec/actions_spec.rb", "symbol": "", "line": 237, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 25: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 4: describe Thor::Shell::Basic do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 118: it \"returns correct Thor class and the command name with hypen when shared namespaces\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 115: file = File.join(destination_root, \"docs\", \"components\", \".empty_directory\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 13: Thor::LineEditor::Basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 23: when \"-\"", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 80: @is_treated_as_value = false", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 14: it \"respects explicit non-UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 121: base.send :include, Shell", "file": "lib/thor/base.rb", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 5: class Thor", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 47: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 467: # Array[Array[Thor::Option.name]]", "file": "lib/thor.rb", "symbol": "", "line": 467, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 1: class Thor", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "¿Dónde está la clase que gestiona el silenciamiento de la salida y el sangrado de texto?", "query": "mute padding indent", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lang": "es", "candidates": [{"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "¿Dónde está la clase que gestiona el silenciamiento de la salida y el sangrado de texto?", "query": "mute padding indent", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "¿Dónde está la clase que gestiona el silenciamiento de la salida y el sangrado de texto?", "query": "mute padding indent", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lang": "es", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/subcommand_spec.rb lines=50-73\nread foo for detail", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=95-118\nread RequiredArgumentMissingError for detail", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=52-75\nread render for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "render", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=64-87\nread C for detail", "file": "spec/fixtures/invoke.thor", "symbol": "C", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=100-123\nread force_on_collision? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_on_collision?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=321-344\nread show_modules for detail", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=722-745\nread inherited for detail", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=57-80\nread AmbiguousCommandError for detail", "file": "lib/thor/error.rb", "symbol": "AmbiguousCommandError", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=59-82\nread foo for detail", "file": "spec/fixtures/script.thor", "symbol": "foo", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=257-280\nread one_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "one_arg", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=177-200\nread check_unknown_options? for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/group.rb lines=259-282\nread baseclass for detail", "file": "lib/thor/group.rb", "symbol": "baseclass", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=8-31\nread action for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "suche die methode die alle argumente als array zurückgibt", "query": "args return", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 811, "lang": "de", "candidates": [{"text": "File: spec/fixtures/help.thor\nLine 6: option \"--not_help\", :type => :boolean", "file": "spec/fixtures/help.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 9: define", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 43: content = capture(:stderr) { Thor::Runner.start(%w(help unknown)) }", "file": "spec/runner_spec.rb", "symbol": "", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 811: def unknown(*args)", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 811, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/subcommand.thor\nLine 4: desc \"print_opt\", \"My method\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 311: expect(base).to receive(:options).and_return(quiet: true)", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 99: # If unknown options are disallowed, make sure that none of the", "file": "lib/thor/base.rb", "symbol": "", "line": 99, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 137: # Invokes using shell padding.", "file": "lib/thor/invocation.rb", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 71: it \"returns the default value if none is provided\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 31: # an unknown option or a regular argument.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nLine 29: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 346: # Extend check unknown options to accept a hash of conditions.", "file": "lib/thor.rb", "symbol": "", "line": 346, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nLine 6: relation = {", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 7: puts options['fruit']", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 2: include Thor::Actions", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 1: require_relative \"empty_directory\"", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 56: expect(ThorTask.const_get(:HiperMega)).to eq(ThorTask::HiperMega)", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 199: parse(:foo, :string).unknown?", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 199, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 333: it \"checks unknown options\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 333, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 92: expect(Thor::Util.find_class_and_command_by_namespace(\"my_counter\")).to eq([MyCounter, nil])", "file": "spec/util_spec.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 5: def create(opts = {})", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 40: # Set the terminal's background HTML color to blue.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 35: # Check if Diff::LCS is loaded. If it is, use it to create pretty output", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "suche die methode die alle argumente als array zurückgibt", "query": "args return", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 811, "lang": "de", "candidates": [{"text": "File: spec/command_spec.rb\nsibling in spec", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\ndefines unknown", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nsibling in spec", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nsibling in spec", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "suche die methode die alle argumente als array zurückgibt", "query": "args return", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 811, "lang": "de", "candidates": [{"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "suche die methode die alle argumente als array zurückgibt", "query": "args return", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 811, "lang": "de", "candidates": [{"text": "Next: read lib/thor/util.rb lines=221-244\nread ruby_command for detail", "file": "lib/thor/util.rb", "symbol": "ruby_command", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=190-213\nread allow_incompatible_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "allow_incompatible_default_type!", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=223-246\nread strict_args_position? for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position?", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=274-297\nread parse_peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_peek", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=661-684\nread sort_commands! for detail", "file": "lib/thor.rb", "symbol": "sort_commands!", "line": 661, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=321-344\nread show_modules for detail", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=49-72\nread capture for detail", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=607-630\nread public_command for detail", "file": "lib/thor/base.rb", "symbol": "public_command", "line": 607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=811-834\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 811, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=552-575\nread baseclass for detail", "file": "lib/thor.rb", "symbol": "baseclass", "line": 552, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=105-128\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 105, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=27-50\nread delete for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "delete", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=159-182\nread attr_writer for detail", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=177-200\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 177, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=6-29\nread snack for detail", "file": "spec/fixtures/enum.thor", "symbol": "snack", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=39-62\nread required? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "required?", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=83-106\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "シンボリックリンクまたはハードリンクを作成する機能を実装したいです。 destination と source のパスを受け取り、オプションで.verbose や.symbolic を指定できるようにしてください。", "query": "create link symbolic", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lang": "ja", "candidates": [{"text": "File: spec/actions/create_file_spec.rb\nLine 165: create_file(\"doc/config/hello\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 56: invoke!", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 33: expect(File.exist?(File.join(destination_root, \"doc/config.rb\"))).to be true", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 1: class Thor", "file": "lib/thor/error.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 5: describe Thor::Actions::InjectIntoFile do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 142: # end", "file": "lib/thor.rb", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 5: describe Thor::Actions::CreateLink, unless: windows? do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 46: def use_path_completion?", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 56: # Common methods that are delegated to the shell.", "file": "lib/thor/shell.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 10: out = capture(:stdout) { shell.say \"Wow! Now we have colors!\", :green }", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 123: error.message =~ /^undefined method `#{name}' for #{Regexp.escape(instance.to_s)}$/", "file": "lib/thor/command.rb", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 1: class A < Thor", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 611: # +normalize_command_name+ also converts names like +animal-prison+", "file": "lib/thor.rb", "symbol": "", "line": 611, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 20: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 62: capture(:stdout) do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 26: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 451: end", "file": "lib/thor.rb", "symbol": "", "line": 451, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 3: class Thor", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 655: This is a really really really long description. Here you go. So very long.", "file": "spec/thor_spec.rb", "symbol": "", "line": 655, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 3: describe Thor::Group do", "file": "spec/group_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 1: class Thor", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 114: # And returns it as an array:", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 153: end", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "シンボリックリンクまたはハードリンクを作成する機能を実装したいです。 destination と source のパスを受け取り、オプションで.verbose や.symbolic を指定できるようにしてください。", "query": "create link symbolic", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lang": "ja", "candidates": [{"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "シンボリックリンクまたはハードリンクを作成する機能を実装したいです。 destination と source のパスを受け取り、オプションで.verbose や.symbolic を指定できるようにしてください。", "query": "create link symbolic", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "シンボリックリンクまたはハードリンクを作成する機能を実装したいです。 destination と source のパスを受け取り、オプションで.verbose や.symbolic を指定できるようにしてください。", "query": "create link symbolic", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lang": "ja", "candidates": [{"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=40-63\nread invoke! for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=531-554\nread no_commands for detail", "file": "lib/thor/base.rb", "symbol": "no_commands", "line": 531, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=35-58\nread identical? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "identical?", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=333-356\nread comment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "comment_lines", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=13-36\nread invoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=68-91\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=74-97\nread thor_classes_in for detail", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=460-483\nread method_exclusive_option_names for detail", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=501-524\nread remove_command for detail", "file": "lib/thor/base.rb", "symbol": "remove_command", "line": 501, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=21-44\nread check_for_extra_spaces for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=57-80\nread merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=12-35\nread check_for_tab_characters for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=104-127\nread camel_case for detail", "file": "lib/thor/util.rb", "symbol": "camel_case", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/command.rb lines=129-152\nread HiddenCommand for detail", "file": "lib/thor/command.rb", "symbol": "HiddenCommand", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "ハイフン形式の名前を変換して表示する処理を探して", "query": "human name", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lang": "ja", "candidates": [{"text": "File: lib/thor/shell.rb\nLine 21: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 280: \"the non-required argument #{argument.human_name.inspect}.\"", "file": "lib/thor/base.rb", "symbol": "", "line": 280, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 6: alias_method :human_name, :name", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nLine 123: expect(option(\"foo\").human_name).to eq(\"foo\")", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 123, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nLine 57: class PluginWithDefault < Thor", "file": "spec/register_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 55: else", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 293: end.not_to raise_error", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 100: end", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 376: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 376, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 33: @assigns[argument.human_name] = argument.default.dup", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 152: #", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 186: human_name = value.respond_to?(:classify) ? value.classify : value", "file": "lib/thor/group.rb", "symbol": "", "line": 186, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nLine 79: def human_name", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 402: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 402, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 90: end", "file": "lib/thor/error.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 13: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 15: def parse(*args)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 1: class Thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 15: return if array.empty?", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 182: o.respond_to?(:switch_name) ? o.switch_name : o.human_name", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 182, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 26: MAGENTA = \"color: magenta\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 163: option(\"foo_bar\", type: :numeric, repeatable: true, default: [1], check_default_type: true)", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 67: expect(sub_help).to eq ['ERROR: \"thor child1 foo\" was called with no arguments', 'Usage: \"thor child1 foo NAME\"', \"\"].join(\"\\n\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "ハイフン形式の名前を変換して表示する処理を探して", "query": "human name", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lang": "ja", "candidates": [{"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "ハイフン形式の名前を変換して表示する処理を探して", "query": "human name", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lang": "ja", "candidates": [{"text": "Next: read spec/thor_spec.rb lines=811-834\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 811, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/script_exit_status_spec.rb lines=2-25\nread thor_command for detail", "file": "spec/script_exit_status_spec.rb", "symbol": "thor_command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=258-281\nread command_help for detail", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=4-27\nread Thor for detail", "file": "lib/thor/rake_compat.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=472-495\nread commands for detail", "file": "lib/thor/base.rb", "symbol": "commands", "line": 472, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=190-213\nread thor_root for detail", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=132-155\nread on_conflict_behavior for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_conflict_behavior", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=350-373\nread remove_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "remove_file", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=43-66\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=308-331\nread thor for detail", "file": "lib/thor/actions.rb", "symbol": "thor", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=167-190\nread installed for detail", "file": "lib/thor/runner.rb", "symbol": "installed", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=68-91\nread absolute_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "absolute_matches", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/shell/basic_spec.rb lines=5-28\nread shell for detail", "file": "spec/shell/basic_spec.rb", "symbol": "shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/application_helper.rb lines=1-24\nread ApplicationHelper for detail", "file": "spec/fixtures/application_helper.rb", "symbol": "ApplicationHelper", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=377-400\nread merge_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge_tool", "line": 377, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "检测文件中是否存在制表符并返回行号", "query": "tab check", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 277: desc 'rotten-apple', 'rotten apple'; def rotten_apple; end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 74: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 12: def check_for_tab_characters(filename)", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/error.rb\nLine 58: end", "file": "lib/thor/error.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 86: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 32: end", "file": "lib/thor/base.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 64: alias_method :inject_into_file, :insert_into_file", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 79: end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 16: [arguments, args[Range.new(arguments.size, -1)]]", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 368: expect(File.read(file)).to eq(\"another stuff\\n__start__\\nREADME\\n__end__\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 368, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 80: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 460: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 460, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 14: object = Struct.new(:namespace, :arguments).new(\"foo\", [])", "file": "spec/command_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 2: require_relative \"line_editor/readline\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 75: it \"does not remove dot if required\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 33: ON_BLACK = \"background-color: black\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 166: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 25: desc \"spec\", \"Run RSpec code examples\"", "file": "Thorfile", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 61: invoke_with_conflict_check do", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 18: argument(:command, type: :unknown)", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 28: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "检测文件中是否存在制表符并返回行号", "query": "tab check", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nsibling in spec", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\ndefines check_for_tab_characters", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nsibling in spec", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nsibling in spec", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nsibling in spec", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "检测文件中是否存在制表符并返回行号", "query": "tab check", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=205-228\nread save_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "save_yaml", "line": 205, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=203-226\nread current_is_switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch?", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=47-70\nread hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "hidden", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=163-186\nread attr_accessor for detail", "file": "lib/thor/base.rb", "symbol": "attr_accessor", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=154-177\nread ClassMethods for detail", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=12-35\nread check_for_tab_characters for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/options.rb lines=225-248\nread current_is_value? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_value?", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=78-101\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=113-136\nread invoke_with_conflict_check for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke_with_conflict_check", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=560-583\nread create_command for detail", "file": "lib/thor.rb", "symbol": "create_command", "line": 560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=2-25\nread check_for_spec_defs_with_single_quotes for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=3-26\nread EncodingImplicit for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "EncodingImplicit", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=639-662\nread class_options_help for detail", "file": "lib/thor/base.rb", "symbol": "class_options_help", "line": 639, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=50-73\nread PathCompletion for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "PathCompletion", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=168-191\nread user_home for detail", "file": "lib/thor/util.rb", "symbol": "user_home", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=424-447\nread stop_on_unknown_option? for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=21-44\nread check_for_extra_spaces for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=21-44\nread base for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "base", "line": 21, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "在初始化这个测试类的时候,它会自动执行定义逻辑,这可能导致在不希望触发任务定义的情况下就执行了操作,请检查这种自动触发行为是否符合预期。", "query": "rake compatibility spec", "file": "spec/rake_compat_spec.rb", "symbol": "initialize", "line": 8, "lang": "zh", "candidates": [{"text": "File: spec/helper.rb\nLine 74: $VERBOSE = nil", "file": "spec/helper.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 5: def initialize(name, description, long_description, wrap_long_description, usage, options = nil, options_relation = nil)", "file": "lib/thor/command.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 32: def initialize(hash_options = {}, defaults = {}, stop_on_unknown = false, disable_required_check = false, relations = {})", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 8: def initialize(stdout, options = {})", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nLine 19: private", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 63: \"#{Thor::Util.escape_html(string)}\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 50: # usage", "file": "lib/thor.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 33: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 330: expect(parse(\"--foo=12\")[\"foo\"]).to eq(\"12\")", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 330, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 47: ON_WHITE = \"background-color: white\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 69: def initialize(base, destination, data, config)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 292: # Array[Thor::Argument]", "file": "lib/thor/base.rb", "symbol": "", "line": 292, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 214: it \"changes the base root\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 214, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 8: def initialize", "file": "spec/rake_compat_spec.rb", "symbol": "initialize", "line": 8, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/base_spec.rb\nLine 281: end", "file": "spec/base_spec.rb", "symbol": "", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 251: destination = relative_to_original_destination_root(destination_root, false)", "file": "lib/thor/actions.rb", "symbol": "", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 39: it \"uses padding for inside block outputs\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 32: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 8: describe \"#initialize\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 26: def initialize(arguments = [])", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 118: [name, options, args]", "file": "spec/fixtures/script.thor", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "在初始化这个测试类的时候,它会自动执行定义逻辑,这可能导致在不希望触发任务定义的情况下就执行了操作,请检查这种自动触发行为是否符合预期。", "query": "rake compatibility spec", "file": "spec/rake_compat_spec.rb", "symbol": "initialize", "line": 8, "lang": "zh", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nsibling in spec", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nsibling in spec", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nsibling in spec", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nsibling in spec", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\ndefines initialize", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "thor", "task": "在初始化这个测试类的时候,它会自动执行定义逻辑,这可能导致在不希望触发任务定义的情况下就执行了操作,请检查这种自动触发行为是否符合预期。", "query": "rake compatibility spec", "file": "spec/rake_compat_spec.rb", "symbol": "initialize", "line": 8, "lang": "zh", "candidates": [{"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> COOL", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> rake/tasklib", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "在初始化这个测试类的时候,它会自动执行定义逻辑,这可能导致在不希望触发任务定义的情况下就执行了操作,请检查这种自动触发行为是否符合预期。", "query": "rake compatibility spec", "file": "spec/rake_compat_spec.rb", "symbol": "initialize", "line": 8, "lang": "zh", "candidates": [{"text": "Next: read spec/rake_compat_spec.rb lines=7-30\nread RakeTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "RakeTask", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=156-179\nread no? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "no?", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=32-55\nread completion_proc for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_proc", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=65-88\nread peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=478-501\nread disable_required_check for detail", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=160-183\nread dasherized? for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherized?", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=74-97\nread thor_classes_in for detail", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=4-27\nread Thor for detail", "file": "lib/thor/line_editor.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/group_spec.rb lines=206-229\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=21-44\nread check_for_extra_spaces for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=8-31\nread initialize for detail", "file": "spec/rake_compat_spec.rb", "symbol": "initialize", "line": 8, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/group.rb lines=149-172\nread remove_invocation for detail", "file": "lib/thor/group.rb", "symbol": "remove_invocation", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=6-29\nread snack for detail", "file": "spec/fixtures/enum.thor", "symbol": "snack", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=9-32\nread HTML for detail", "file": "lib/thor/shell/html.rb", "symbol": "HTML", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=248-271\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=28-51\nread ThorTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "ThorTask", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/rake_compat_spec.rb lines=12-35\nread define for detail", "file": "spec/rake_compat_spec.rb", "symbol": "define", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=75-98\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "find the generator class defining numeric arguments and various class options for testing", "query": "thor group arguments", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lang": "en", "candidates": [{"text": "File: lib/thor/parser/option.rb\nLine 126: def validate!", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 16: desc \"fireworks\", \"exciting fireworks!\"", "file": "spec/register_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 246: describe \"#subclass_files\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 32: expect(empty_directory(\"contents\").destination).to eq(File.join(destination_root, \"doc\", \"contents\"))", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 56: desc \"child1\", \"child1 description\"", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 311: expect(File.exist?(file)).to be false", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 10: base = MyCounter.new [1, 2], {}, shell: shell", "file": "spec/shell_spec.rb", "symbol": "", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 92: expect(Thor::Util.find_class_and_command_by_namespace(\"my_counter\")).to eq([MyCounter, nil])", "file": "spec/util_spec.rb", "symbol": "", "line": 92, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 12: @invoker ||= MyCounter.new([1, 2], options, destination_root: destination_root)", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nLine 10: def self.best_available", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 197: expect(help_output).to include(\"thor exciting fireworks\")", "file": "spec/register_spec.rb", "symbol": "", "line": 197, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 48: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 11: @base = MyCounter.new([1, 2], options, destination_root: destination_root)", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 1: class MyCounter < Thor::Group", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nLine 31: @default", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 132: default_type = case @default", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 428: options = names.last.is_a?(Hash) ? names.pop : {}", "file": "lib/thor/base.rb", "symbol": "", "line": 428, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 138: end", "file": "spec/util_spec.rb", "symbol": "", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 24: private", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 6: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 341: default", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 341, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 66: expect(dub).to receive(:can_has) { |*args| args }", "file": "spec/command_spec.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 185: shell.base = MyCounter.new [1, 2]", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 185, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 14: base = MyCounter.new [1, 2]", "file": "spec/base_spec.rb", "symbol": "", "line": 14, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find the generator class defining numeric arguments and various class options for testing", "query": "thor group arguments", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lang": "en", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\ndefines MyCounter", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find the generator class defining numeric arguments and various class options for testing", "query": "thor group arguments", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lang": "en", "candidates": [{"text": "Next: read spec/actions/create_link_spec.rb lines=35-58\nread revoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "revoke!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=133-156\nread invoke_all for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_all", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=117-140\nread with_optional for detail", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=4-27\nread shell for detail", "file": "spec/sort_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=39-62\nread three for detail", "file": "spec/fixtures/group.thor", "symbol": "three", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=547-570\nread shell for detail", "file": "spec/thor_spec.rb", "symbol": "shell", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=35-58\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=329-352\nread subcommand for detail", "file": "lib/thor.rb", "symbol": "subcommand", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=167-190\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=368-391\nread merge for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge", "line": 368, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=49-72\nread capture for detail", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=283-306\nread pear for detail", "file": "spec/fixtures/script.thor", "symbol": "pear", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=27-50\nread source_root for detail", "file": "lib/thor/actions.rb", "symbol": "source_root", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=7-30\nread print for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=99-122\nread destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "destination_root", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Ich möchte verstehen, wie das Erstellen eines leeren Zielverzeichnisses innerhalb von Thor-Aktionen implementiert ist. Bitte zeige mir die Logik, die sicherstellt, dass das Verzeichnis erstellt wird, auch wenn es bereits existiert.", "query": "create empty directory action", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke!", "line": 49, "lang": "de", "candidates": [{"text": "File: spec/tree_spec.rb\nLine 30: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/├─ command1/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 530: #", "file": "lib/thor/base.rb", "symbol": "", "line": 530, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 9: my_script = Class.new(Thor) do", "file": "spec/sort_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 12: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 131: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 26: end.compact!", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 253: # Parse boolean values which can be given as --foo=true or --foo for true values, or", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 78: end", "file": "spec/command_spec.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 148: expect(Thor::Util.user_home).to eq(\"/\")", "file": "spec/util_spec.rb", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 105: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 66: when Numeric", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 59: Thor::Util.namespaces_in_content(\"class Blat; end\")", "file": "spec/util_spec.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 85: #", "file": "lib/thor/group.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 140: it \"gives a list of the available commands\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 26: MAGENTA = \"color: magenta\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 104: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 14: # RSpec::Core::RakeTask.new(:spec) do |t|", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 27: $0 = \"thor\"", "file": "spec/helper.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 49: def invoke!", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke!", "line": 49, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 99: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 156: # Check if the peek is included in enum if enum is provided. Otherwise raises an error.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 3: class Subcommand < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Ich möchte verstehen, wie das Erstellen eines leeren Zielverzeichnisses innerhalb von Thor-Aktionen implementiert ist. Bitte zeige mir die Logik, die sicherstellt, dass das Verzeichnis erstellt wird, auch wenn es bereits existiert.", "query": "create empty directory action", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke!", "line": 49, "lang": "de", "candidates": [{"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Ich möchte verstehen, wie das Erstellen eines leeren Zielverzeichnisses innerhalb von Thor-Aktionen implementiert ist. Bitte zeige mir die Logik, die sicherstellt, dass das Verzeichnis erstellt wird, auch wenn es bereits existiert.", "query": "create empty directory action", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke!", "line": 49, "lang": "de", "candidates": [{"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Ich möchte verstehen, wie das Erstellen eines leeren Zielverzeichnisses innerhalb von Thor-Aktionen implementiert ist. Bitte zeige mir die Logik, die sicherstellt, dass das Verzeichnis erstellt wird, auch wenn es bereits existiert.", "query": "create empty directory action", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke!", "line": 49, "lang": "de", "candidates": [{"text": "Next: read lib/thor/util.rb lines=90-113\nread snake_case for detail", "file": "lib/thor/util.rb", "symbol": "snake_case", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=68-91\nread peek for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "peek", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=27-50\nread included for detail", "file": "lib/thor/rake_compat.rb", "symbol": "included", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=49-72\nread invoke! for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke!", "line": 49, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=143-166\nread content for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=52-75\nread animal for detail", "file": "spec/register_spec.rb", "symbol": "animal", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/parser/options_spec.rb lines=24-47\nread remaining for detail", "file": "spec/parser/options_spec.rb", "symbol": "remaining", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=72-95\nread shift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "shift", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=211-234\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=50-73\nread PluginInheritingFromClassOptionsGroup for detail", "file": "spec/register_spec.rb", "symbol": "PluginInheritingFromClassOptionsGroup", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=80-103\nread Defined for detail", "file": "spec/fixtures/invoke.thor", "symbol": "Defined", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=169-192\nread check_unknown_options! for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options!", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=122-145\nread baz for detail", "file": "spec/fixtures/group.thor", "symbol": "baz", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "¿Cómo se están definiendo los lectores de atributos para que no aparezcan como comandos en la interfaz de línea de comandos?", "query": "attr_reader no_commands", "file": "lib/thor/base.rb", "symbol": "attr_reader", "line": 155, "lang": "es", "candidates": [{"text": "File: lib/thor/actions/create_file.rb\nLine 72: #", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 62: # Don't output 2 trailing spaces when printing the last column", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 26: attr_reader :error", "file": "lib/thor/error.rb", "symbol": "", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 155: def attr_reader(*) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "attr_reader", "line": 155, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 4: attr_reader :prompt, :options", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 9: attr_reader :padding", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 140: it \"returns the user path if no variable is set on the environment\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 17: expect do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 14: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 54: Rake::Task[task.name.to_sym].invoke(*args)", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 85: peek && peek.to_s !~ /^-{1,2}\\S+/", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 353: end", "file": "spec/base_spec.rb", "symbol": "", "line": 353, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 28: attr_reader :data", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 455: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 455, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 85: def one", "file": "spec/fixtures/group.thor", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 7: class Test < Thor", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 67: attr_reader :replacement, :flag, :behavior", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 67, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 347: it \"does not add attr_reader as a command\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 347, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\nLine 1: require_relative \"create_file\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 63: raise ArgumentError, \"An argument cannot be required and have default value.\" if required? && !default.nil?", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 343: # config:: give :verbose => false to not log the status.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 343, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "¿Cómo se están definiendo los lectores de atributos para que no aparezcan como comandos en la interfaz de línea de comandos?", "query": "attr_reader no_commands", "file": "lib/thor/base.rb", "symbol": "attr_reader", "line": 155, "lang": "es", "candidates": [{"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "¿Cómo se están definiendo los lectores de atributos para que no aparezcan como comandos en la interfaz de línea de comandos?", "query": "attr_reader no_commands", "file": "lib/thor/base.rb", "symbol": "attr_reader", "line": 155, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "¿Cómo se están definiendo los lectores de atributos para que no aparezcan como comandos en la interfaz de línea de comandos?", "query": "attr_reader no_commands", "file": "lib/thor/base.rb", "symbol": "attr_reader", "line": 155, "lang": "es", "candidates": [{"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=161-184\nread initialize for detail", "file": "spec/fixtures/script.thor", "symbol": "initialize", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/html.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=27-50\nread delete for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "delete", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=155-178\nread attr_reader for detail", "file": "lib/thor/base.rb", "symbol": "attr_reader", "line": 155, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=434-457\nread disable_required_check! for detail", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=42-65\nread completion_options for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_options", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=107-130\nread revoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "revoke!", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=45-68\nread identical? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "identical?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=21-44\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=109-132\nread sans_backtrace for detail", "file": "lib/thor/command.rb", "symbol": "sans_backtrace", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/application.rb lines=1-24\nread Application for detail", "file": "spec/fixtures/application.rb", "symbol": "Application", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=69-92\nread initialize for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=420-443\nread stop_on_unknown_option! for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option!", "line": 420, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=15-38\nread SubApp for detail", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=168-191\nread dasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherize", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Como eu faço para interromper o processamento de opções assim que uma opção desconhecida ou um argumento comum for encontrado?", "query": "stop unknown option", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lang": "pt", "candidates": [{"text": "File: spec/fixtures/exit_status.thor\nLine 14: def ok", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 67: File.join(File.dirname(__FILE__), \"sandbox\")", "file": "spec/helper.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 36: load File.join(File.dirname(__FILE__), \"fixtures\", \"script.thor\")", "file": "spec/helper.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 133: error = nil", "file": "spec/group_spec.rb", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 31: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 201: # Two booleans are returned. The first is true if the current value", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 40: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 25: allow(ENV).to receive(:[]).with(\"NO_COLOR\").and_return(\"non-empty value\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 63: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 74: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 6: attr_writer :shell", "file": "lib/thor/shell.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 155: \" or call `allow_incompatible_default_type!` in your code\"", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 118: expect(content).to match(%r{conflict doc/config\\.rb})", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 41: sub_help = capture(:stdout) { TestSubcommands::Parent.start(%w(help sub)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 288: # match << \" no more. Use thor!\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 47: if config[:symbolic]", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 88: say_status :force, :yellow", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 33: expect(parse(\"product\", \"title:string\", \"age:integer\")[\"hash\"]).to eq(\"title\" => \"string\", \"age\" => \"integer\")", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 202: def stop_on_unknown_option?(command_name) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/subcommand.thor\nLine 4: desc \"print_opt\", \"My method\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 52: expect(ThorTask::HiperMega.tasks[\"super\"].description).to eq(\"super\")", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 38: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 6: options[key] = Thor::Option.parse(key, value)", "file": "spec/command_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 77: def to_hash", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Como eu faço para interromper o processamento de opções assim que uma opção desconhecida ou um argumento comum for encontrado?", "query": "stop unknown option", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lang": "pt", "candidates": [{"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Como eu faço para interromper o processamento de opções assim que uma opção desconhecida ou um argumento comum for encontrado?", "query": "stop unknown option", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lang": "pt", "candidates": [{"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Como eu faço para interromper o processamento de opções assim que uma opção desconhecida ou um argumento comum for encontrado?", "query": "stop unknown option", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=129-152\nread method_options for detail", "file": "lib/thor.rb", "symbol": "method_options", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=2-25\nread check_for_spec_defs_with_single_quotes for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=38-61\nread part_two for detail", "file": "spec/register_spec.rb", "symbol": "part_two", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=248-271\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=4-27\nread Thor for detail", "file": "lib/thor/rake_compat.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/create_file_spec.rb lines=17-40\nread invoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=14-37\nread print for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=326-349\nread unix? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "unix?", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=170-193\nread inside for detail", "file": "lib/thor/actions.rb", "symbol": "inside", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=127-150\nread ChildGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ChildGroup", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=167-190\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "引数の位置を厳密に制限する設定を有効にする", "query": "strict args position", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lang": "ja", "candidates": [{"text": "File: lib/thor/group.rb\nLine 192: end", "file": "lib/thor/group.rb", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 25: when \"+\"", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 13: puts \"expected #{SOME_STRING.encoding.name} to equal UTF-8\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 124: end", "file": "lib/thor/command.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 585: end", "file": "lib/thor.rb", "symbol": "", "line": 585, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 95: end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 215: def strict_args_position!", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/error.rb\nLine 2: Correctable = if defined?(DidYouMean::SpellChecker) && defined?(DidYouMean::Correctable) # rubocop:disable Naming/ConstantName", "file": "lib/thor/error.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 110: mappings.each do |key, value|", "file": "lib/thor.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 19: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 360: revoke! \"doc/README\", \"more content\\n\", before: \"__start__\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 360, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 157: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 3: gem_dir= File.expand_path(\"#{File.dirname(__FILE__)}/..\")", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 12: private", "file": "spec/fixtures/script.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 145: def _shared_configuration #:nodoc:", "file": "lib/thor/invocation.rb", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 16: # The start of an ANSI bold sequence.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 23: class EmptyDirectory #:nodoc:", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 40: paths += source_paths", "file": "lib/thor/actions.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 78: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 14: elsif RbConfig::CONFIG[\"host_os\"] =~ /mswin|mingw/ && !ENV[\"ANSICON\"]", "file": "lib/thor/shell.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 30: it \"accepts hashes\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 135: when TrueClass, FalseClass", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 59: expect(command.options[:foo]).to be", "file": "spec/command_spec.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "引数の位置を厳密に制限する設定を有効にする", "query": "strict args position", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lang": "ja", "candidates": [{"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "引数の位置を厳密に制限する設定を有効にする", "query": "strict args position", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "引数の位置を厳密に制限する設定を有効にする", "query": "strict args position", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/group.rb lines=161-184\nread class_options_help for detail", "file": "lib/thor/group.rb", "symbol": "class_options_help", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=83-106\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=55-78\nread inherited for detail", "file": "spec/fixtures/group.thor", "symbol": "inherited", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=113-136\nread indentation for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=34-57\nread invoker for detail", "file": "spec/fixtures/invoke.thor", "symbol": "invoker", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=12-35\nread file for detail", "file": "spec/actions_spec.rb", "symbol": "file", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=207-230\nread file_collision for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=399-422\nread set_eoutvar for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "set_eoutvar", "line": 399, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=39-62\nread three for detail", "file": "spec/fixtures/group.thor", "symbol": "three", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=101-124\nread map for detail", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=276-299\nread _invoke_for_class_method for detail", "file": "lib/thor/group.rb", "symbol": "_invoke_for_class_method", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/version.rb lines=1-24\nread Thor for detail", "file": "lib/thor/version.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=59-82\nread exit_on_failure? for detail", "file": "spec/subcommand_spec.rb", "symbol": "exit_on_failure?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=375-398\nread with_output_buffer for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "with_output_buffer", "line": 375, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=215-238\nread strict_args_position! for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "문자열에 색상을 입히는 기능 정의된 부분을 찾아줘", "query": "set color string", "file": "lib/thor/shell/basic.rb", "symbol": "set_color", "line": 258, "lang": "ko", "candidates": [{"text": "File: lib/thor/group.rb\nLine 257: alias_method :self_task, :self_command", "file": "lib/thor/group.rb", "symbol": "", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 142: describe \"#set_color\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 142, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nLine 7: def bugs", "file": "spec/fixtures/help.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 249: let(:expected_output) do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 8: # Inherit from Thor::Shell::Basic and add set_color behavior. Check", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 112: key.each { |subkey| @map[subkey] = value }", "file": "lib/thor.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 45: @non_assigned_required.delete(argument)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 6: # Inherit from Thor::Shell::Basic and add set_color behavior. Check", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 11: if SOME_STRING.encoding.name == \"UTF-8\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 24: SHELL_DELEGATED_METHODS = [:ask, :error, :set_color, :yes?, :no?, :say, :say_error, :say_status, :print_in_columns, :print_table, :print_wrapped, :file_collision, :terminal_width]", "file": "lib/thor/shell.rb", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nLine 209: expect(parse(:foo, :numeric).usage).to eq(\"[--foo=N]\")", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 209: end", "file": "spec/util_spec.rb", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 4: SOME_STRING = \"Some λέξεις 一些词 🎉\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 40: expect(parse(\"product\", \"title\", \"age\")[\"array\"]).to eq(%w(title age))", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 37: load File.join(File.dirname(__FILE__), \"fixtures\", \"subcommand.thor\")", "file": "spec/helper.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 59: expect(capture(:stdout) { Thor::Runner.start }).to match(/my_counter N/)", "file": "spec/runner_spec.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 33: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/subcommand1/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 13: else", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 32: describe \"#set_color\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nLine 193: allow($stdout).to receive(:tty?).and_return(true)", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 193, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 313: say shell.set_color(namespace, :blue, true)", "file": "lib/thor/runner.rb", "symbol": "", "line": 313, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nLine 13: Test.start(ARGV)", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 258: def set_color(string, *) #:nodoc:", "file": "lib/thor/shell/basic.rb", "symbol": "set_color", "line": 258, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/encoding_spec.rb\nLine 20: expect(capture(:stdout) { Thor::Sandbox::EncodingImplicit.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "문자열에 색상을 입히는 기능 정의된 부분을 찾아줘", "query": "set color string", "file": "lib/thor/shell/basic.rb", "symbol": "set_color", "line": 258, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "문자열에 색상을 입히는 기능 정의된 부분을 찾아줘", "query": "set color string", "file": "lib/thor/shell/basic.rb", "symbol": "set_color", "line": 258, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "문자열에 색상을 입히는 기능 정의된 부분을 찾아줘", "query": "set color string", "file": "lib/thor/shell/basic.rb", "symbol": "set_color", "line": 258, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/nested_context.rb lines=15-38\nread entered? for detail", "file": "lib/thor/nested_context.rb", "symbol": "entered?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=84-107\nread current_is_value? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=83-106\nread usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "usage", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=57-80\nread merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=7-30\nread RakeTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "RakeTask", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=89-112\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=258-281\nread set_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "set_color", "line": 258, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=613-636\nread normalize_command_name for detail", "file": "lib/thor.rb", "symbol": "normalize_command_name", "line": 613, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=24-47\nread remaining for detail", "file": "spec/parser/options_spec.rb", "symbol": "remaining", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=307-330\nread class_options for detail", "file": "lib/thor/base.rb", "symbol": "class_options", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=144-167\nread method_missing for detail", "file": "spec/fixtures/script.thor", "symbol": "method_missing", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=291-314\nread gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=657-680\nread print_options for detail", "file": "lib/thor/base.rb", "symbol": "print_options", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=68-91\nread absolute_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "absolute_matches", "line": 68, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "revoker.insert_into_file의 출력을 표준 출력으로 캡처하는 메서드 구현", "query": "insert_into_file stdout capture", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lang": "ko", "candidates": [{"text": "File: lib/thor/util.rb\nLine 94: end", "file": "lib/thor/util.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 8: allow(invoker).to receive(:file_name).and_return(\"rdoc\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 1: require \"helper\"", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 62: if klass = Thor::RakeCompat.rake_classes.last # rubocop:disable Lint/AssignmentInCondition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 160: before do", "file": "spec/group_spec.rb", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 29: expect(Thor::LineEditor).to receive(:readline).with(\"Is this green? [Yes, No, Maybe] \", anything).and_return(\"Yes\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 13: #", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 57: \"#{Thor::Util.escape_html(string)}\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 702: visible_commands.sort.each_with_index do |(command_name, command), i|", "file": "lib/thor.rb", "symbol": "", "line": 702, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 180: def print_table(array, options = {}) # rubocop:disable Metrics/MethodLength", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 27: def revoke!(*args, &block)", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/rake_compat.rb\nLine 54: Rake::Task[task.name.to_sym].invoke(*args)", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 27: exec \"bundle exec rspec spec\"", "file": "Thorfile", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 11: expect(out.chomp).to eq('Wow! Now we have colors!')", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 93: desc \"with_args\", \"subcommand with arguments\"", "file": "spec/register_spec.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 68: expect(parse(\"\", 0, {}, [])).to eq(\"string\" => \"\", \"numeric\" => 0, \"hash\" => {}, \"array\" => [])", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 116: expect(File.symlink?(action.destination)).to be false", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 14: ].detect(&:available?)", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 26: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 9: method_options :forcefully => :boolean", "file": "spec/fixtures/command.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 7: true", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 39: it \"uses padding for inside block outputs\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 62: def source_root", "file": "spec/helper.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "revoker.insert_into_file의 출력을 표준 출력으로 캡처하는 메서드 구현", "query": "insert_into_file stdout capture", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lang": "ko", "candidates": [{"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nsibling in spec/actions", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\ndefines revoke!", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "thor", "task": "revoker.insert_into_file의 출력을 표준 출력으로 캡처하는 메서드 구현", "query": "insert_into_file stdout capture", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "revoker.insert_into_file의 출력을 표준 출력으로 캡처하는 메서드 구현", "query": "insert_into_file stdout capture", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/parser/options.rb lines=79-102\nread shift for detail", "file": "lib/thor/parser/options.rb", "symbol": "shift", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=28-51\nread add_to_history? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "add_to_history?", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=72-95\nread shift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "shift", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=130-153\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=68-91\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoker", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=57-80\nread AmbiguousCommandError for detail", "file": "lib/thor/error.rb", "symbol": "AmbiguousCommandError", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=6-29\nread readline for detail", "file": "lib/thor/line_editor.rb", "symbol": "readline", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=31-54\nread file for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=96-119\nread print_border_separator for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print_border_separator", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=269-292\nread multiple_usages for detail", "file": "spec/fixtures/script.thor", "symbol": "multiple_usages", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=129-152\nread subclasses for detail", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=184-207\nread check_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type!", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoker", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=95-118\nread RequiredArgumentMissingError for detail", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=283-306\nread pear for detail", "file": "spec/fixtures/script.thor", "symbol": "pear", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=158-181\nread parse_string for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_string", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=114-137\nread handle_argument_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_argument_error?", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=27-50\nread revoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=235-258\nread command_conflict for detail", "file": "spec/fixtures/script.thor", "symbol": "command_conflict", "line": 235, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Ich suche nach der Stelle im Code, die bestimmt, welche Klasse und welcher Kommandoname für einen Aufruf verwendet werden sollen. Dabei soll überprüft werden, ob der Name nil ist oder eine bekannte Methode der aktuellen Klasse darstellt, um im Zweifel die richtige Zielklasse und das Kommando zu ermitteln bzw. an prepare_for_invocation weiterzuleiten.", "query": "invocation retrieval helper", "file": "lib/thor/invocation.rb", "symbol": "_retrieve_class_and_command", "line": 153, "lang": "de", "candidates": [{"text": "File: lib/thor/shell.rb\nLine 73: protected", "file": "lib/thor/shell.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 162: # ==== Example", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 15: def entered?", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 54: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 213: %[Overwrite #{destination}? (enter \"h\" for help) #{options}],", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 180: @switches.map do |_, o|", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 4: require \"digest/sha2\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 15: # t.spec_opts = ['--options', './.rspec']", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 45: it \"does not log status if required\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 490: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 490, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 20: it \"parses arguments in the given order\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 24: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 8: desc \"describe NAME\", \"say that someone is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 21: expect(out.chomp).to eq('Wow! Now we have colors! ')", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 33: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/subcommand1/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 5: class ColumnPrinter", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 28: attr_reader :data", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 79: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 153: def _retrieve_class_and_command(name, sent_command = nil) #:nodoc:", "file": "lib/thor/invocation.rb", "symbol": "_retrieve_class_and_command", "line": 153, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/error.rb\nLine 54: end", "file": "lib/thor/error.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 238: ruby = alternate_ruby if linked_ruby == ruby_name || linked_ruby == ruby", "file": "lib/thor/util.rb", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Ich suche nach der Stelle im Code, die bestimmt, welche Klasse und welcher Kommandoname für einen Aufruf verwendet werden sollen. Dabei soll überprüft werden, ob der Name nil ist oder eine bekannte Methode der aktuellen Klasse darstellt, um im Zweifel die richtige Zielklasse und das Kommando zu ermitteln bzw. an prepare_for_invocation weiterzuleiten.", "query": "invocation retrieval helper", "file": "lib/thor/invocation.rb", "symbol": "_retrieve_class_and_command", "line": 153, "lang": "de", "candidates": [{"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Ich suche nach der Stelle im Code, die bestimmt, welche Klasse und welcher Kommandoname für einen Aufruf verwendet werden sollen. Dabei soll überprüft werden, ob der Name nil ist oder eine bekannte Methode der aktuellen Klasse darstellt, um im Zweifel die richtige Zielklasse und das Kommando zu ermitteln bzw. an prepare_for_invocation weiterzuleiten.", "query": "invocation retrieval helper", "file": "lib/thor/invocation.rb", "symbol": "_retrieve_class_and_command", "line": 153, "lang": "de", "candidates": [{"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=531-554\nread no_commands for detail", "file": "lib/thor/base.rb", "symbol": "no_commands", "line": 531, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=163-186\nread attr_accessor for detail", "file": "lib/thor/base.rb", "symbol": "attr_accessor", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=58-81\nread initialize for detail", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=84-107\nread unshift for detail", "file": "lib/thor/parser/options.rb", "symbol": "unshift", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=880-903\nread no_arg for detail", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=276-299\nread apple for detail", "file": "spec/fixtures/script.thor", "symbol": "apple", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=31-54\nread GroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "GroupPlugin", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=8-31\nread initialize for detail", "file": "spec/rake_compat_spec.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=153-176\nread _retrieve_class_and_command for detail", "file": "lib/thor/invocation.rb", "symbol": "_retrieve_class_and_command", "line": 153, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/invoke.thor lines=48-71\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=169-192\nread check_unknown_options! for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options!", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=39-62\nread B for detail", "file": "spec/fixtures/invoke.thor", "symbol": "B", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=130-153\nread say_status for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_status", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=257-280\nread one_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "one_arg", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=104-127\nread F for detail", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I'm cleaning up the testing suite and noticed some debug statements in the logic. Can you find the method that prints out a list of passed values to the console?", "query": "puts args.join", "file": "spec/register_spec.rb", "symbol": "with_args", "line": 94, "lang": "en", "candidates": [{"text": "File: lib/thor/command.rb\nLine 134: HiddenTask = HiddenCommand", "file": "lib/thor/command.rb", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 1: #!/usr/bin/ruby", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 73: }).print_default).to eq(13)", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 22: super", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 85: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 47: it \"gets usage from rake tasks name\" do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 1: # encoding: UTF-8", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 46: expect(parse(\"-\", \"title\", \"-\")[\"array\"]).to eq(%w(- title -))", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 114: File.delete(tempfile.path)", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 94: def with_args(*args)", "file": "spec/register_spec.rb", "symbol": "with_args", "line": 94, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/command.thor\nLine 11: ret = \"#{name} is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 5: File.readlines(filename).each_with_index do |line, number|", "file": "spec/quality_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 257: thorfile = File.join(File.dirname(__FILE__), \"fixtures\", \"command.thor\")", "file": "spec/base_spec.rb", "symbol": "", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 30: Thor::Base.shell = nil", "file": "spec/shell_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 6: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 16: expect(shell.base).to eq(base)", "file": "spec/shell_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 10: class Parent < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 26: @depth -= 1", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 279: $stdout", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 144: it \"sets default options overwriting superclass definitions\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 14: def ok", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 13: Test.start(ARGV)", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm cleaning up the testing suite and noticed some debug statements in the logic. Can you find the method that prints out a list of passed values to the console?", "query": "puts args.join", "file": "spec/register_spec.rb", "symbol": "with_args", "line": 94, "lang": "en", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\ndefines with_args", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/quality_spec.rb\nsibling in spec", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nsibling in spec", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nsibling in spec", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nsibling in spec", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nsibling in spec", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nsibling in spec", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "I'm cleaning up the testing suite and noticed some debug statements in the logic. Can you find the method that prints out a list of passed values to the console?", "query": "puts args.join", "file": "spec/register_spec.rb", "symbol": "with_args", "line": 94, "lang": "en", "candidates": [{"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm cleaning up the testing suite and noticed some debug statements in the logic. Can you find the method that prints out a list of passed values to the console?", "query": "puts args.join", "file": "spec/register_spec.rb", "symbol": "with_args", "line": 94, "lang": "en", "candidates": [{"text": "Next: read lib/thor/parser/option.rb lines=99-122\nread aliases_for_usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "aliases_for_usage", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=789-812\nread initialize_added for detail", "file": "lib/thor/base.rb", "symbol": "initialize_added", "line": 789, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=172-195\nread get_options_from_invocations for detail", "file": "lib/thor/group.rb", "symbol": "get_options_from_invocations", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=446-469\nread remove_class_option for detail", "file": "lib/thor/base.rb", "symbol": "remove_class_option", "line": 446, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=58-81\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=7-30\nread command1 for detail", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=104-127\nread F for detail", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=263-286\nread create_command for detail", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=71-94\nread default_banner for detail", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=231-254\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=129-152\nread uninstall for detail", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=133-156\nread find_in_source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "find_in_source_paths", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=94-117\nread with_args for detail", "file": "spec/register_spec.rb", "symbol": "with_args", "line": 94, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=6-29\nread readline for detail", "file": "lib/thor/line_editor.rb", "symbol": "readline", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Je cherche la méthode qui permet de définir les paramètres d'une commande et de vérifier si le nom passé est bien une chaîne ou un symbole. Peux-tu m'expliquer comment elle gère la portée des options quand on utilise l'argument de ciblage ?", "query": "define method option", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lang": "fr", "candidates": [{"text": "File: lib/thor/runner.rb\nLine 226: thorfiles(relevant_to, skip_lookup).each do |f|", "file": "lib/thor/runner.rb", "symbol": "", "line": 226, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 132: public_command :foo, :baz", "file": "spec/fixtures/group.thor", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 33: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/subcommand1/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 12: expect(capture(:stdout) { Thor::Sandbox::EncodingWithUtf8.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 687: # options:: Described in both class_option and method_option.", "file": "lib/thor/base.rb", "symbol": "", "line": 687, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 14: it \"sets the base value on the shell if an accessor is available\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 2: require \"thor/parser\"", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 23: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 115: private :private_file_name", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 117: end", "file": "spec/group_spec.rb", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 9: def encoding", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 93: end", "file": "spec/group_spec.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 163: def method_option(name, options = {})", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_link.rb\nLine 11: # :: give :symbolic => false for hard link.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 10: raise Thor::Error.new(\"planned error\")", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 45: config[:symbolic] = true if config[:symbolic].nil?", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 41: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 20: #", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 19: expect(capture(:stdout) { Scripts::MyDefaults.start(%w(barn paint blue --coats 4)) }.strip).to eq(\"4 coats of blue paint\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 58: method_option :force, :type => :boolean, :desc => \"Force to do some fooing\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 50: @formats << \"%-#{@colwidth + 2}s\".dup if @colwidth", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 4: describe \"#method_option\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nLine 25: failing_lines << number + 1 if line =~ /\\s+\\n$/", "file": "spec/quality_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 38: it \"has type equal to :string\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche la méthode qui permet de définir les paramètres d'une commande et de vérifier si le nom passé est bien une chaîne ou un symbole. Peux-tu m'expliquer comment elle gère la portée des options quand on utilise l'argument de ciblage ?", "query": "define method option", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lang": "fr", "candidates": [{"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Je cherche la méthode qui permet de définir les paramètres d'une commande et de vérifier si le nom passé est bien une chaîne ou un symbole. Peux-tu m'expliquer comment elle gère la portée des options quand on utilise l'argument de ciblage ?", "query": "define method option", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche la méthode qui permet de définir les paramètres d'une commande et de vérifier si le nom passé est bien une chaîne ou un symbole. Peux-tu m'expliquer comment elle gère la portée des options quand on utilise l'argument de ciblage ?", "query": "define method option", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/actions.rb lines=48-71\nread add_runtime_options! for detail", "file": "lib/thor/actions.rb", "symbol": "add_runtime_options!", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=173-196\nread check_unknown_options for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=1-24\nread LCSDiff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "LCSDiff", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=163-186\nread method_option for detail", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor.rb lines=5-28\nread LineEditor for detail", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=103-126\nread truncate for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "truncate", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=307-330\nread class_options for detail", "file": "lib/thor/base.rb", "symbol": "class_options", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=169-192\nread check_unknown_options! for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options!", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=16-39\nread install for detail", "file": "Thorfile", "symbol": "install", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=149-172\nread remove_invocation for detail", "file": "lib/thor/group.rb", "symbol": "remove_invocation", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=74-97\nread thor_classes_in for detail", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=104-127\nread camel_case for detail", "file": "lib/thor/util.rb", "symbol": "camel_case", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/argument_spec.rb lines=5-28\nread argument for detail", "file": "spec/parser/argument_spec.rb", "symbol": "argument", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Je cherche la logique qui permet d'afficher une liste d'éléments sous forme de colonnes dans le terminal. Comment est calculée la largeur de chaque colonne pour éviter les débordements ?", "query": "print columns terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lang": "fr", "candidates": [{"text": "File: spec/register_spec.rb\nLine 170: output = capture(:stdout) { BoringVendorProvidedCLI.start(%w(say_multiple hello adam)) }", "file": "spec/register_spec.rb", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 16: expect(shell.base).to eq(base)", "file": "spec/shell_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 40: it \"returns usage for numeric types\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 199: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 41: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 891: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 891, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 143: allow(@base.shell).to receive(:merge_tool).and_return(\"meld\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 654: it \"does not uncomment the wrong line when uncommenting lines preceded by blank commented line\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 654, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 83: attr_reader :switches, :unknown", "file": "lib/thor/error.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 6: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 166: printer = ColumnPrinter.new(stdout)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 166, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nLine 92: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 1: #!/usr/bin/ruby", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 65: dub = double", "file": "spec/command_spec.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 32: class CreateFile < EmptyDirectory #:nodoc:", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 6: class WrappedPrinter < ColumnPrinter", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nLine 115: revoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 6: class TablePrinter < ColumnPrinter", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 91: end", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 50: invoke! \"doc\"", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 124: expect(Thor::LineEditor).to receive(:readline).and_return(\"y\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 5: class ColumnPrinter", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/runner_spec.rb\nLine 245: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche la logique qui permet d'afficher une liste d'éléments sous forme de colonnes dans le terminal. Comment est calculée la largeur de chaque colonne pour éviter les débordements ?", "query": "print columns terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lang": "fr", "candidates": [{"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\ndefines ColumnPrinter", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Je cherche la logique qui permet d'afficher une liste d'éléments sous forme de colonnes dans le terminal. Comment est calculée la largeur de chaque colonne pour éviter les débordements ?", "query": "print columns terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche la logique qui permet d'afficher une liste d'éléments sous forme de colonnes dans le terminal. Comment est calculée la largeur de chaque colonne pour éviter les débordements ?", "query": "print columns terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lang": "fr", "candidates": [{"text": "Next: read spec/thor_spec.rb lines=288-311\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=186-209\nread check_requirement! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "check_requirement!", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=7-30\nread bugs for detail", "file": "spec/fixtures/help.thor", "symbol": "bugs", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=53-76\nread merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=505-528\nread dispatch for detail", "file": "lib/thor.rb", "symbol": "dispatch", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=71-94\nread example_default_command for detail", "file": "spec/fixtures/script.thor", "symbol": "example_default_command", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=32-55\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=4-27\nread Shell for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=78-101\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=671-694\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=9-32\nread HTML for detail", "file": "lib/thor/shell/html.rb", "symbol": "HTML", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/group.thor lines=72-95\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=30-53\nread current_command_chain for detail", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=68-91\nread peek for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "peek", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=14-37\nread print for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=163-186\nread method_option for detail", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=282-305\nread stderr for detail", "file": "lib/thor/shell/basic.rb", "symbol": "stderr", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I'm trying to figure out how the CLI tracks where the different command classes are located. Can you show me the method that initializes the mapping between file paths and their corresponding classes?", "query": "subclass files Hash", "file": "lib/thor/base.rb", "symbol": "subclass_files", "line": 138, "lang": "en", "candidates": [{"text": "File: lib/thor/line_editor.rb\nLine 11: [", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 278: elsif no_or_skip?(switch)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 278, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 221: def ruby_command", "file": "lib/thor/util.rb", "symbol": "", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 76: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 252: #", "file": "lib/thor/runner.rb", "symbol": "", "line": 252, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 246: describe \"#subclass_files\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 246, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 36: `tput cols 2>/dev/null`.to_i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 227: Thor::Util.load_thorfile(f, nil, options[:debug]) unless Thor::Base.subclass_files.keys.include?(File.expand_path(f))", "file": "lib/thor/runner.rb", "symbol": "", "line": 227, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 65: self.class.new(other).merge(self)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 20: expect(capture(:stdout) { Thor::Sandbox::EncodingImplicit.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 7: best_available.new(prompt, options).readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 27: def dynamic_width", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 133: A.new.find_in_source_paths(\"foo\")", "file": "spec/actions_spec.rb", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 138: def subclass_files", "file": "lib/thor/base.rb", "symbol": "subclass_files", "line": 138, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/subcommand.thor\nLine 5: def print_opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 82: # @return [TrueClass/FalseClass]", "file": "spec/helper.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 11: if SOME_STRING.encoding.name == \"ISO-8859-7\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 44: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 17: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 5: @shell ||= Thor::Shell::HTML.new", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 34: expect(shell.set_color(\"\", :blue)).to eq \"<htmlcontent>\"", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 54: Rake::Task[task.name.to_sym].invoke(*args)", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 119: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm trying to figure out how the CLI tracks where the different command classes are located. Can you show me the method that initializes the mapping between file paths and their corresponding classes?", "query": "subclass files Hash", "file": "lib/thor/base.rb", "symbol": "subclass_files", "line": 138, "lang": "en", "candidates": [{"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "I'm trying to figure out how the CLI tracks where the different command classes are located. Can you show me the method that initializes the mapping between file paths and their corresponding classes?", "query": "subclass files Hash", "file": "lib/thor/base.rb", "symbol": "subclass_files", "line": 138, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm trying to figure out how the CLI tracks where the different command classes are located. Can you show me the method that initializes the mapping between file paths and their corresponding classes?", "query": "subclass files Hash", "file": "lib/thor/base.rb", "symbol": "subclass_files", "line": 138, "lang": "en", "candidates": [{"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=170-193\nread prepend_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "prepend_to_file", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=4-27\nread EncodingOther for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "EncodingOther", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=75-98\nread PluginWithDefaultcommandAndDeclaredArgument for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefaultcommandAndDeclaredArgument", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=280-303\nread escape_html for detail", "file": "lib/thor/util.rb", "symbol": "escape_html", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/html_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/html_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=145-168\nread chmod for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "chmod", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=123-146\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=43-66\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=199-222\nread printable_commands for detail", "file": "lib/thor/group.rb", "symbol": "printable_commands", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/group_spec.rb lines=223-246\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=329-352\nread _cleanup_options_and_set for detail", "file": "lib/thor/actions.rb", "symbol": "_cleanup_options_and_set", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=12-35\nread command2 for detail", "file": "spec/tree_spec.rb", "symbol": "command2", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=200-223\nread in_root for detail", "file": "lib/thor/actions.rb", "symbol": "in_root", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=138-161\nread subclass_files for detail", "file": "lib/thor/base.rb", "symbol": "subclass_files", "line": 138, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=58-81\nread matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "matches", "line": 58, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "쉘 인스턴스를 초기화하거나 반환하는 메서드 찾아줘", "query": "Thor::Shell::Basic", "file": "spec/shell/basic_spec.rb", "symbol": "shell", "line": 5, "lang": "ko", "candidates": [{"text": "File: spec/parser/options_spec.rb\nLine 414: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 414, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 4: desc \"snack\"", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 1: require \"helper\"", "file": "spec/encoding_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 7: require_relative \"shell\"", "file": "lib/thor/base.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nLine 27: let(:shell) { Thor::Shell::Basic.new }", "file": "spec/tree_spec.rb", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 106: if chars.length <= @truncate", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 79: def can_display_colors?", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 43: FileUtils.mkdir_p(File.dirname(destination))", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 31: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 62: result = capture(&block)", "file": "spec/fixtures/group.thor", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 33: Thor::Base.shell = shell.class", "file": "spec/shell_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 5: def shell", "file": "spec/shell/basic_spec.rb", "symbol": "shell", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 136: # Shortcut to say_status shell method.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 136, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 37: # Injects the given content into a file. Different from gsub_file, this", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 56: create string: nil, numeric: nil", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 14: subcommand \"sub\", Subcommand", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 4: def shell", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 169: @content = capture(:stdout) { MyCounter.help(Thor::Base.shell.new) }", "file": "spec/base_spec.rb", "symbol": "", "line": 169, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 22: YELLOW = \"color: yellow\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 244: expect(parse(%w(--verbose foo))).to eq(\"verbose\" => true)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 191: class_name = self.class.name.split(\"::\").last.downcase", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 19: private", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 4: def shell", "file": "spec/shell_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 59: end", "file": "spec/group_spec.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "쉘 인스턴스를 초기화하거나 반환하는 메서드 찾아줘", "query": "Thor::Shell::Basic", "file": "spec/shell/basic_spec.rb", "symbol": "shell", "line": 5, "lang": "ko", "candidates": [{"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nsibling in spec/shell", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nsibling in spec/shell", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\ndefines shell", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "쉘 인스턴스를 초기화하거나 반환하는 메서드 찾아줘", "query": "Thor::Shell::Basic", "file": "spec/shell/basic_spec.rb", "symbol": "shell", "line": 5, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "쉘 인스턴스를 초기화하거나 반환하는 메서드 찾아줘", "query": "Thor::Shell::Basic", "file": "spec/shell/basic_spec.rb", "symbol": "shell", "line": 5, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/shell/color.rb lines=112-135\nread are_colors_disabled? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_disabled?", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=4-27\nread Base for detail", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=43-66\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=622-645\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=166-189\nread _parse_initialization_options for detail", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=186-209\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=115-138\nread H for detail", "file": "spec/fixtures/invoke.thor", "symbol": "H", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=313-336\nread show_diff for detail", "file": "lib/thor/shell/basic.rb", "symbol": "show_diff", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=95-118\nread RequiredArgumentMissingError for detail", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=96-119\nread print_border_separator for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print_border_separator", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=12-35\nread initialize for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "initialize", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/basic_spec.rb lines=5-28\nread shell for detail", "file": "spec/shell/basic_spec.rb", "symbol": "shell", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=657-680\nread print_options for detail", "file": "lib/thor/base.rb", "symbol": "print_options", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=10-33\nread initialize for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "initialize", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=289-312\nread display_klasses for detail", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=74-97\nread thor_classes_in for detail", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=84-107\nread current_is_value? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=789-812\nread initialize_added for detail", "file": "lib/thor/base.rb", "symbol": "initialize_added", "line": 789, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=235-258\nread command_conflict for detail", "file": "spec/fixtures/script.thor", "symbol": "command_conflict", "line": 235, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "这个里面是怎么根据传入的参数来打印水果类型的?", "query": "options fruit puts", "file": "spec/fixtures/enum.thor", "symbol": "snack", "line": 6, "lang": "zh", "candidates": [{"text": "File: lib/thor.rb\nLine 218: #", "file": "lib/thor.rb", "symbol": "", "line": 218, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 75: say_status :identical, :blue", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 69: Dir[glob_pattern].map do |path|", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 124: protected", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 2: class NestedContext", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 10: def self.best_available", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 252: #", "file": "lib/thor/runner.rb", "symbol": "", "line": 252, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 55: else", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 331: method_option :after1", "file": "spec/fixtures/script.thor", "symbol": "", "line": 331, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 558: #", "file": "lib/thor/base.rb", "symbol": "", "line": 558, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 17: array.each_with_index do |value, index|", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 119: expect(Thor::Util.find_class_and_command_by_namespace(\"fruits:rotten-apple\")).to eq([Apple, \"rotten-apple\"])", "file": "spec/util_spec.rb", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "snack", "line": 6, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/arguments.rb\nLine 13: arguments << item", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 166: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 106: # You can also supply a block to customize how the option is going to be", "file": "lib/thor/group.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 10: it \"respects explicit UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 21: def push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 177: it \"runs commands with an empty namespace from the default namespace\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 22: alias_method :add_link, :create_link", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 93: it \"raises an error if class/command can't be found in a setup without thorfiles\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 4: class Thor", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 3: class ExitStatus < Thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "这个里面是怎么根据传入的参数来打印水果类型的?", "query": "options fruit puts", "file": "spec/fixtures/enum.thor", "symbol": "snack", "line": 6, "lang": "zh", "candidates": [{"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\ndefines snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "这个里面是怎么根据传入的参数来打印水果类型的?", "query": "options fruit puts", "file": "spec/fixtures/enum.thor", "symbol": "snack", "line": 6, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "这个里面是怎么根据传入的参数来打印水果类型的?", "query": "options fruit puts", "file": "spec/fixtures/enum.thor", "symbol": "snack", "line": 6, "lang": "zh", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=59-82\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=117-140\nread template for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=161-184\nread class_options_help for detail", "file": "lib/thor/group.rb", "symbol": "class_options_help", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=257-280\nread one_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "one_arg", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=269-292\nread multiple_usages for detail", "file": "spec/fixtures/script.thor", "symbol": "multiple_usages", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=254-277\nread self_command for detail", "file": "lib/thor/group.rb", "symbol": "self_command", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=52-75\nread enum_to_s for detail", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=424-447\nread stop_on_unknown_option? for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=201-224\nread paint for detail", "file": "spec/fixtures/script.thor", "symbol": "paint", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=100-123\nread private_method? for detail", "file": "lib/thor/command.rb", "symbol": "private_method?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=21-44\nread base for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "base", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=420-443\nread stop_on_unknown_option! for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option!", "line": 420, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=118-141\nread parse_array for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_array", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=71-94\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=1-24\nread Enum for detail", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=6-29\nread available? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=6-29\nread snack for detail", "file": "spec/fixtures/enum.thor", "symbol": "snack", "line": 6, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "¿Cómo se ejecuta la acción del objeto dependiendo de si el comportamiento es de revocación o no?", "query": "revoke invoke behavior", "file": "lib/thor/actions.rb", "symbol": "action", "line": 89, "lang": "es", "candidates": [{"text": "File: lib/thor/shell/lcs_diff.rb\nLine 22: case diff.action", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 19: \"--#{key} #{value.map { |k, v| \"#{k}:#{v}\" }.join(' ')}\"", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 11: @base = MyCounter.new([1, 2], options, destination_root: destination_root)", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 200: # If you give \"--one\" and \"--two\" at the same time ExclusiveArgumentsError", "file": "lib/thor.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 114: switch = normalize_switch(switch)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 22: action add_file create_file in_root inside run run_ruby_script)", "file": "lib/thor/base.rb", "symbol": "", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nLine 4: DEFAULT_TERMINAL_WIDTH = 80", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 80: expect(parse(:foo, 2.0).type).to eq(:numeric)", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 8: def action(*args, &block)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nLine 15: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 33: action InjectIntoFile.new(self, destination, data, config)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 65: # true. This will enable tab completion for file paths relative", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 178: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 14: @action = Thor::Actions::CreateFile.new(@base, destination, contents, {verbose: !@silence}.merge(config))", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 53: # contents", "file": "lib/thor/util.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 32: stdout.puts unless para == paras.last", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 29: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 224: describe \".register-ing a Thor::Group subclass with class options\" do", "file": "spec/register_spec.rb", "symbol": "", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 35: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 7: puts options['fruit']", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 8: def action(*args, &block)", "file": "spec/actions_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 89: def action(instance) #:nodoc:", "file": "lib/thor/actions.rb", "symbol": "action", "line": 89, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor.rb\nLine 261: handle_no_command_error(meth) unless command", "file": "lib/thor.rb", "symbol": "", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 105: invoke \"b:one\" do |instance, klass, command|", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "¿Cómo se ejecuta la acción del objeto dependiendo de si el comportamiento es de revocación o no?", "query": "revoke invoke behavior", "file": "lib/thor/actions.rb", "symbol": "action", "line": 89, "lang": "es", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "¿Cómo se ejecuta la acción del objeto dependiendo de si el comportamiento es de revocación o no?", "query": "revoke invoke behavior", "file": "lib/thor/actions.rb", "symbol": "action", "line": 89, "lang": "es", "candidates": [{"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/inject_into_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/file_manipulation", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> revoke", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/empty_directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "¿Cómo se ejecuta la acción del objeto dependiendo de si el comportamiento es de revocación o no?", "query": "revoke invoke behavior", "file": "lib/thor/actions.rb", "symbol": "action", "line": 89, "lang": "es", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=264-287\nread prepare_message for detail", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=65-88\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=722-745\nread inherited for detail", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=79-102\nread shift for detail", "file": "lib/thor/parser/options.rb", "symbol": "shift", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=89-112\nread action for detail", "file": "lib/thor/actions.rb", "symbol": "action", "line": 89, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/arguments.rb lines=53-76\nread remaining for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "remaining", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=231-254\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=657-680\nread print_options for detail", "file": "lib/thor/base.rb", "symbol": "print_options", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=45-68\nread identical? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "identical?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=155-178\nread attr_reader for detail", "file": "lib/thor/base.rb", "symbol": "attr_reader", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=75-98\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=177-200\nread check_unknown_options? for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=114-137\nread handle_argument_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_argument_error?", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=880-903\nread no_arg for detail", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "引数を受け取って表示するメソッドを探して", "query": "puts name given", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lang": "ja", "candidates": [{"text": "File: spec/subcommand_spec.rb\nLine 50: def foo(name)", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/base.rb\nLine 47: #", "file": "lib/thor/base.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 240: # option :two", "file": "lib/thor.rb", "symbol": "", "line": 240, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 113: #", "file": "lib/thor/actions.rb", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 7: include Thor::RakeCompat", "file": "Thorfile", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 73: def ask(statement, color = nil)", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 5: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 42: # MyScript.new [1.0], { :foo => :bar }, :shell => Thor::Shell::Basic.new", "file": "lib/thor/shell.rb", "symbol": "", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 182: end", "file": "spec/base_spec.rb", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 42: expect(Thor::Options.to_switches(color: false, foo: nil)).to eq(\"\")", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nLine 299: (klasses - groups).each { |k| list[k.namespace.split(\":\").first] += k.printable_commands(false) }", "file": "lib/thor/runner.rb", "symbol": "", "line": 299, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 17: expect(parse(:foo, :string).type).to eq(:string)", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 134: self.class.all_commands.map { |_, command| invoke_command(command) }", "file": "lib/thor/invocation.rb", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 47: it \"gets usage from rake tasks name\" do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 13: else", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 19: load_thorfile(\"encoding_implicit.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 33: load File.join(File.dirname(__FILE__), \"fixtures\", \"enum.thor\")", "file": "spec/helper.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 144: # method_option :foo, :for => :previous_command", "file": "lib/thor.rb", "symbol": "", "line": 144, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nLine 9: true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 41: ON_BLUE = \"background-color: blue\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 19: map \"-T\" => :animal, [\"-f\", \"--foo\"] => :foo", "file": "spec/fixtures/script.thor", "symbol": "", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nLine 13: end", "file": "Thorfile", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 253: # Parse boolean values which can be given as --foo=true or --foo for true values, or", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 253, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 163: $stderr.puts(e.backtrace.first)", "file": "lib/thor/util.rb", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "引数を受け取って表示するメソッドを探して", "query": "puts name given", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lang": "ja", "candidates": [{"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nsibling in spec", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\ndefines foo", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/thor_spec.rb\nsibling in spec", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "引数を受け取って表示するメソッドを探して", "query": "puts name given", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "引数を受け取って表示するメソッドを探して", "query": "puts name given", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/command.rb lines=142-165\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=783-806\nread create_command for detail", "file": "lib/thor/base.rb", "symbol": "create_command", "line": 783, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=50-73\nread foo for detail", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=547-570\nread shell for detail", "file": "spec/thor_spec.rb", "symbol": "shell", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=10-33\nread describe for detail", "file": "spec/fixtures/command.thor", "symbol": "describe", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=258-281\nread command_help for detail", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=48-71\nread Child1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "Child1", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/subcommand_spec.rb lines=55-78\nread Parent for detail", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=62-85\nread source_root for detail", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=67-90\nread valid_type? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=47-70\nread SubcommandTest1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "SubcommandTest1", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=460-483\nread method_exclusive_option_names for detail", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=83-106\nread windows? for detail", "file": "spec/helper.rb", "symbol": "windows?", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=567-590\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=61-84\nread namespace for detail", "file": "lib/thor/rake_compat.rb", "symbol": "namespace", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=115-138\nread say_error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_error", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=157-180\nread MyChildScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyChildScript", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=59-82\nread exit_on_failure? for detail", "file": "spec/subcommand_spec.rb", "symbol": "exit_on_failure?", "line": 59, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "how do I get the path to the bundle directory in the same folder as this thor file?", "query": "bundle directory path", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 72, "lang": "en", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nLine 259: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 162: expect do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 8: def initialize(stdout, options = {})", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 1: require \"helper\"", "file": "spec/command_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 51: # on Highline implementation and it automatically appends CLEAR to the end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 5: desc :bugs, \"ALL THE BUGZ!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 72: def self.source_root", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 72, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell_spec.rb\nLine 41: base.with_padding do", "file": "spec/shell_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 27: def source_root(path = nil)", "file": "lib/thor/actions.rb", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 29: source = File.join(source_root, source_path, file)", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nLine 22: it \"passes parsed options to subcommands\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 19: object = Struct.new(:namespace, :arguments).new(\"main:foo\", [])", "file": "spec/command_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 8: ::FileUtils.cp_r(source_root, destination_root)", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nLine 7: best_available.new(prompt, options).readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 5: script_path= \"#{gem_dir}/spec/fixtures/exit_status.thor\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 62: def source_root", "file": "spec/helper.rb", "symbol": "", "line": 62, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nLine 129: subcommand :one, I", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 44: rescue LoadError", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 32: # ==== Returns", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 51: require \"fileutils\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 16: source = File.join(source_root, source)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nLine 110: it \"add source_root to source_paths_for_search\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 110, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 292: end", "file": "lib/thor/group.rb", "symbol": "", "line": 292, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 1: require \"helper\"", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "how do I get the path to the bundle directory in the same folder as this thor file?", "query": "bundle directory path", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 72, "lang": "en", "candidates": [{"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\ndefines source_root", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "how do I get the path to the bundle directory in the same folder as this thor file?", "query": "bundle directory path", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 72, "lang": "en", "candidates": [{"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=27-50\nread revoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=72-95\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 72, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=20-43\nread RakeCompat for detail", "file": "lib/thor/rake_compat.rb", "symbol": "RakeCompat", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=99-122\nread destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "destination_root", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=92-115\nread long_description for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=78-101\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=65-88\nread peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/color_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/color_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=104-127\nread AtLeastOneRequiredArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "AtLeastOneRequiredArgumentError", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=67-90\nread valid_type? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=772-795\nread basename for detail", "file": "lib/thor/base.rb", "symbol": "basename", "line": 772, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=59-82\nread no_or_skip? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=325-348\nread _shared_configuration for detail", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Wie funktioniert die Logik, um Text entweder vor oder nach einem bestimmten Muster in eine Datei einzufügen?", "query": "inject text pattern", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lang": "de", "candidates": [{"text": "File: spec/fixtures/verbose.thor\nLine 7: class Test < Thor", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 71: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 16: expect(shell.base).to eq(base)", "file": "spec/shell_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 17: it \"sets a default that can be overridden for strings\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 5: describe Thor::Actions::InjectIntoFile do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nLine 61: create string: \"name\", numeric: 13", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 66: class InjectIntoFile < EmptyDirectory #:nodoc:", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/quality_spec.rb\nLine 18: \"#{filename} has tab characters on lines #{failing_lines.join(', ')}\" unless failing_lines.empty?", "file": "spec/quality_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 19: expect(MyCounter.class_options.keys).to include(:force)", "file": "spec/actions_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 33: attr_reader :data", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 2: require_relative \"line_editor/readline\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 6: barn_help = capture(:stdout) { Scripts::MyDefaults.start(%w(barn)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 41: error_messages = []", "file": "spec/quality_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 2: require \"thor/base\"", "file": "spec/encoding_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 5: describe \"file's encoding\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 243: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 172: expect(output).to include(\"adam\")", "file": "spec/register_spec.rb", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 45: expect(parse(\"-\")[\"array\"]).to eq(%w(-))", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 77: it \"prints a message to the user with the available options, expects case-sensitive matching, and reasks the question after an incorrect response\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 58: def z; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 558: end", "file": "lib/thor.rb", "symbol": "", "line": 558, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 125: unless current.include?(command.name)", "file": "lib/thor/invocation.rb", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Wie funktioniert die Logik, um Text entweder vor oder nach einem bestimmten Muster in eine Datei einzufügen?", "query": "inject text pattern", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lang": "de", "candidates": [{"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Wie funktioniert die Logik, um Text entweder vor oder nach einem bestimmten Muster in eine Datei einzufügen?", "query": "inject text pattern", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lang": "de", "candidates": [{"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Wie funktioniert die Logik, um Text entweder vor oder nach einem bestimmten Muster in eine Datei einzufügen?", "query": "inject text pattern", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lang": "de", "candidates": [{"text": "Next: read lib/thor.rb lines=460-483\nread method_exclusive_option_names for detail", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=377-400\nread merge_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge_tool", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=83-106\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=69-92\nread initialize for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=167-190\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=122-145\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=129-152\nread uninstall for detail", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=76-99\nread unshift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "unshift", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=127-150\nread ChildGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ChildGroup", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=215-238\nread strict_args_position! for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=7-30\nread print for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=113-136\nread invoke_with_conflict_check for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke_with_conflict_check", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=24-47\nread remaining for detail", "file": "spec/parser/options_spec.rb", "symbol": "remaining", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=26-49\nread insert_into_file! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Estou tentando entender como o programa captura o que o usuário digita no terminal. Pode me mostrar a lógica que decide se o texto deve ser exibido na tela ou se deve ser ocultado por questões de segurança?", "query": "stdin gets noecho", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lang": "pt", "candidates": [{"text": "File: spec/parser/argument_spec.rb\nLine 74: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 50: begin", "file": "spec/helper.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 12: expect(capture(:stdout) { Thor::Sandbox::EncodingWithUtf8.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 20: expect(capture(:stdout) { Thor::Sandbox::EncodingImplicit.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 1: require_relative \"line_editor/basic\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 65: destination_path = File.join(destination_root, \"doc/config.rb\")", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 265: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 265, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 12: # include Thor::RakeCompat", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 97: it \"shows skipped status to the user if skip is given\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 9: it \"sets shell value\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 12: expect(capture(:stdout) { Thor::Sandbox::EncodingWithUtf8.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 200: #", "file": "lib/thor/util.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 304: def file", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 159: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 26: Thor::Base.subclasses.detect { |klass| klass.namespace == namespace }", "file": "lib/thor/util.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 247: it \"uses banner when supplied\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 247, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 48: it \"returns usage for hash types\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 24: argument(:command, type: :string, default: \"bar\", required: true)", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 5: class_option \"fruit\", :aliases => \"-f\", :type => :string, :enum => %w(apple banana)", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 442: action :gsub_file, \"doc/README\", \"__start__\", \"START\"", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 442, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 3: class Subcommand < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 22: def get_input", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 17: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estou tentando entender como o programa captura o que o usuário digita no terminal. Pode me mostrar a lógica que decide se o texto deve ser exibido na tela ou se deve ser ocultado por questões de segurança?", "query": "stdin gets noecho", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lang": "pt", "candidates": [{"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\ndefines get_input", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/readline.rb\nsibling in lib/thor/line_editor", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Estou tentando entender como o programa captura o que o usuário digita no terminal. Pode me mostrar a lógica que decide se o texto deve ser exibido na tela ou se deve ser ocultado por questões de segurança?", "query": "stdin gets noecho", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lang": "pt", "candidates": [{"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estou tentando entender como o programa captura o que o usuário digita no terminal. Pode me mostrar a lógica que decide se o texto deve ser exibido na tela ou se deve ser ocultado por questões de segurança?", "query": "stdin gets noecho", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/error.rb lines=36-59\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=458-481\nread group for detail", "file": "lib/thor/base.rb", "symbol": "group", "line": 458, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=9-32\nread option for detail", "file": "spec/parser/option_spec.rb", "symbol": "option", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=307-330\nread class_options for detail", "file": "lib/thor/base.rb", "symbol": "class_options", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=170-193\nread inside for detail", "file": "lib/thor/actions.rb", "symbol": "inside", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=10-33\nread initialize for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "initialize", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=113-136\nread invoke_with_conflict_check for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke_with_conflict_check", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=678-701\nread is_thor_reserved_word? for detail", "file": "lib/thor/base.rb", "symbol": "is_thor_reserved_word?", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=40-63\nread invoke! for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "LineEditor", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=194-217\nread check_default_type for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=6-29\nread available? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=722-745\nread inherited for detail", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "在进行文件层级的路径查找时,目前的逻辑只是简单地在传入的路径后面拼接了一个通配符,这似乎会导致匹配范围过宽或无法精确锁定目标文件,请检查这个路径构造逻辑是否符合预期的搜索行为。", "query": "file lookup wildcard", "file": "lib/thor/actions/directory.rb", "symbol": "file_level_lookup", "line": 99, "lang": "zh", "candidates": [{"text": "File: lib/thor/line_editor.rb\nLine 14: ].detect(&:available?)", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 39: return @diff_lcs_loaded unless @diff_lcs_loaded.nil?", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 60: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 62: describe \"#say\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 17: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 28: expect(Thor::Base.shell).to eq(shell.class)", "file": "spec/shell_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 88: end", "file": "spec/helper.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 99: def file_level_lookup(previous_lookup)", "file": "lib/thor/actions/directory.rb", "symbol": "file_level_lookup", "line": 99, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor.rb\nLine 128: #", "file": "lib/thor.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 34: expect(Thor::Base.shell).to eq(shell.class)", "file": "spec/shell_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 864: Class.new(Thor) do", "file": "spec/thor_spec.rb", "symbol": "", "line": 864, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 17: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 11: # available only in class methods invocations (i.e. in Thor::Group).", "file": "lib/thor/invocation.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 434: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 434, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 3: class Thor", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 14: def ok", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 87: def not_debugging?(instance)", "file": "lib/thor/command.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 31: expect(MyCounter.new([1], {}, behavior: :revoke).behavior).to eq(:revoke)", "file": "spec/actions_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 6: def load_thorfile(filename)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 2: require \"thor/parser\"", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 23: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 82: # As you noticed, it invokes the given mock framework, which might have its", "file": "lib/thor/invocation.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "在进行文件层级的路径查找时,目前的逻辑只是简单地在传入的路径后面拼接了一个通配符,这似乎会导致匹配范围过宽或无法精确锁定目标文件,请检查这个路径构造逻辑是否符合预期的搜索行为。", "query": "file lookup wildcard", "file": "lib/thor/actions/directory.rb", "symbol": "file_level_lookup", "line": 99, "lang": "zh", "candidates": [{"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "在进行文件层级的路径查找时,目前的逻辑只是简单地在传入的路径后面拼接了一个通配符,这似乎会导致匹配范围过宽或无法精确锁定目标文件,请检查这个路径构造逻辑是否符合预期的搜索行为。", "query": "file lookup wildcard", "file": "lib/thor/actions/directory.rb", "symbol": "file_level_lookup", "line": 99, "lang": "zh", "candidates": [{"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "在进行文件层级的路径查找时,目前的逻辑只是简单地在传入的路径后面拼接了一个通配符,这似乎会导致匹配范围过宽或无法精确锁定目标文件,请检查这个路径构造逻辑是否符合预期的搜索行为。", "query": "file lookup wildcard", "file": "lib/thor/actions/directory.rb", "symbol": "file_level_lookup", "line": 99, "lang": "zh", "candidates": [{"text": "Next: read spec/tree_spec.rb lines=18-41\nread subcommand1 for detail", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=501-524\nread remove_command for detail", "file": "lib/thor/base.rb", "symbol": "remove_command", "line": 501, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=105-128\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=122-145\nread baz for detail", "file": "spec/fixtures/group.thor", "symbol": "baz", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=482-505\nread print_exclusive_options for detail", "file": "lib/thor.rb", "symbol": "print_exclusive_options", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=77-100\nread to_hash for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "to_hash", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=99-122\nread file_level_lookup for detail", "file": "lib/thor/actions/directory.rb", "symbol": "file_level_lookup", "line": 99, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=709-732\nread find_and_refresh_command for detail", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=793-816\nread dispatch for detail", "file": "lib/thor/base.rb", "symbol": "dispatch", "line": 793, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=722-745\nread inherited for detail", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/html.rb lines=9-32\nread HTML for detail", "file": "lib/thor/shell/html.rb", "symbol": "HTML", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=58-81\nread initialize for detail", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=99-122\nread destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "destination_root", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=31-54\nread dynamic_width_stty for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_stty", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "リリース作業をタスクとして実行しているメソッドはどこ?", "query": "release task invoke", "file": "Thorfile", "symbol": "release", "line": 21, "lang": "ja", "candidates": [{"text": "File: lib/thor/runner.rb\nLine 67: else", "file": "lib/thor/runner.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 46: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 319: method_option :after2", "file": "spec/fixtures/script.thor", "symbol": "", "line": 319, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 21: def release", "file": "Thorfile", "symbol": "release", "line": 21, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor.rb\nLine 15: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 5: SOME_STRING = \"Some ������\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 245: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 127: namespaces: %w(amazing)", "file": "spec/runner_spec.rb", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 116: class ParentGroup < Thor::Group", "file": "spec/fixtures/group.thor", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 328: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 22: expect(MyCounter.new([1, 2]).shell).to be_kind_of(Thor::Base.shell)", "file": "spec/shell_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 21: @banner = options[:banner] || default_banner", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 34: WHITE = \"\\e[37m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 15: #", "file": "lib/thor/group.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 400: compiler.put_cmd = \"#{eoutvar}.concat\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 400, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 110: # found or a switch is found.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 158: # path:: path of the file to be changed", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 105: methods = instance.public_methods(false) + instance.private_methods(false) + instance.protected_methods(false)", "file": "lib/thor/command.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 566: describe \"#inject_into_class\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 566, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 499: shell.print_table(opts.map{ |ex| ex.map{ |e| \"--#{e}\"}}, indent: 2 )", "file": "lib/thor.rb", "symbol": "", "line": 499, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 10: it \"respects explicit UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 199: def printable_commands(*)", "file": "lib/thor/group.rb", "symbol": "", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 351: it \"does not add attr_writer as a command\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 351, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "リリース作業をタスクとして実行しているメソッドはどこ?", "query": "release task invoke", "file": "Thorfile", "symbol": "release", "line": 21, "lang": "ja", "candidates": [{"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\ndefines release", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "リリース作業をタスクとして実行しているメソッドはどこ?", "query": "release task invoke", "file": "Thorfile", "symbol": "release", "line": 21, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "リリース作業をタスクとして実行しているメソッドはどこ?", "query": "release task invoke", "file": "Thorfile", "symbol": "release", "line": 21, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=11-34\nread build for detail", "file": "Thorfile", "symbol": "build", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=12-35\nread exists_and_identical? for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=82-105\nread base_path for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "base_path", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=58-81\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=473-496\nread stop_on_unknown_option for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option", "line": 473, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=6-29\nread Default for detail", "file": "Thorfile", "symbol": "Default", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=26-49\nread spec for detail", "file": "Thorfile", "symbol": "spec", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=276-299\nread apple for detail", "file": "spec/fixtures/script.thor", "symbol": "apple", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=177-200\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=398-421\nread CapturableERB for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "CapturableERB", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=320-343\nread subcommands for detail", "file": "lib/thor.rb", "symbol": "subcommands", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=330-353\nread ask_simply for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_simply", "line": 330, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=7-30\nread bugs for detail", "file": "spec/fixtures/help.thor", "symbol": "bugs", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=235-258\nread command_conflict for detail", "file": "spec/fixtures/script.thor", "symbol": "command_conflict", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=21-44\nread release for detail", "file": "Thorfile", "symbol": "release", "line": 21, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/parser/arguments_spec.rb lines=15-38\nread parse for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "parse", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=123-146\nread say_status for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "say_status", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=16-39\nread install for detail", "file": "Thorfile", "symbol": "install", "line": 16, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "在生成命令行用法说明时,如果存在父级命名空间,输出的格式似乎没有正确处理,导致生成的帮助信息在包含层级结构时显示不完整或格式不符合预期,请检查构建用法字符串时拼接前缀的逻辑。", "query": "formatted usage string", "file": "lib/thor/command.rb", "symbol": "formatted_usage", "line": 42, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/script.thor\nLine 12: private", "file": "spec/fixtures/script.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 11: \"thor \" + command.formatted_usage(self, all, subcommand)", "file": "lib/thor/runner.rb", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nLine 120: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 105: method = $1.strip", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 88: #", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 2: require_relative \"line_editor/readline\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 5: class_option \"fruit\", :aliases => \"-f\", :type => :string, :enum => %w(apple banana)", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 42: def formatted_usage(klass, namespace = true, subcommand = false)", "file": "lib/thor/command.rb", "symbol": "formatted_usage", "line": 42, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor.rb\nLine 547: command.formatted_usage(self, $thor_runner, subcommand).split(\"\\n\").map do |formatted_usage|", "file": "lib/thor.rb", "symbol": "", "line": 547, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nLine 16: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 250: \"#{basename} #{self_command.formatted_usage(self, false)}\"", "file": "lib/thor/group.rb", "symbol": "", "line": 250, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nLine 72: out = capture(:stdout) do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 6: @silence = false", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 10: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 22: desc \"sub\", \"Subcommands\"", "file": "spec/tree_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 6: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 71: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 112: super", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 139: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 18: def subcommand1", "file": "spec/tree_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 3: class Subcommand < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 12: describe \"#formatted_usage\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 114: MyClassOptionScript.start %w[mix --one --three]", "file": "spec/base_spec.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "在生成命令行用法说明时,如果存在父级命名空间,输出的格式似乎没有正确处理,导致生成的帮助信息在包含层级结构时显示不完整或格式不符合预期,请检查构建用法字符串时拼接前缀的逻辑。", "query": "formatted usage string", "file": "lib/thor/command.rb", "symbol": "formatted_usage", "line": 42, "lang": "zh", "candidates": [{"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "在生成命令行用法说明时,如果存在父级命名空间,输出的格式似乎没有正确处理,导致生成的帮助信息在包含层级结构时显示不完整或格式不符合预期,请检查构建用法字符串时拼接前缀的逻辑。", "query": "formatted usage string", "file": "lib/thor/command.rb", "symbol": "formatted_usage", "line": 42, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/util.rb lines=221-244\nread ruby_command for detail", "file": "lib/thor/util.rb", "symbol": "ruby_command", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=96-119\nread name_with_dashes for detail", "file": "spec/fixtures/script.thor", "symbol": "name_with_dashes", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=288-311\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=172-195\nread get_options_from_invocations for detail", "file": "lib/thor/group.rb", "symbol": "get_options_from_invocations", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=100-123\nread E for detail", "file": "spec/fixtures/invoke.thor", "symbol": "E", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=308-331\nread thor for detail", "file": "lib/thor/actions.rb", "symbol": "thor", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=4-27\nread EncodingWithUtf8 for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=166-189\nread _parse_initialization_options for detail", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=163-186\nread attr_accessor for detail", "file": "lib/thor/base.rb", "symbol": "attr_accessor", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=115-138\nread say_error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_error", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=10-33\nread create_file for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=42-65\nread formatted_usage for detail", "file": "lib/thor/command.rb", "symbol": "formatted_usage", "line": 42, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "The utility meant for isolating execution environments doesn't seem to be properly encapsulated, potentially leaking state between runs.", "query": "execution sandbox isolation", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lang": "en", "candidates": [{"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 4: module Sandbox #:nodoc:", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 67: attr_reader :replacement, :flag, :behavior", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 7: def bugs", "file": "spec/fixtures/help.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 33: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 16: # rb-readline does not allow Readline.completion_proc= to receive nil.", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 57: desc \"z\", \"Last Command\"", "file": "spec/sort_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 12: expect(capture(:stdout) { Thor::Sandbox::EncodingWithUtf8.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nLine 191: it \"sets color when the NO_COLOR environment variable is ignored for being nil\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 3: describe Thor::Shell::HTML do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 11: def a; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 104: Dir.glob(lookup, File::FNM_DOTMATCH)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 93: def five", "file": "spec/fixtures/group.thor", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 136: expect(Thor::LineEditor).to receive(:readline).and_return(\"d\", \"n\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 116: expect(File.exist?(file)).to be false", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 44: case default", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 5: def print_opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 40: expect(task).to be", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 17: if (counter + word.length + 1) < width", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 3: class EncodingImplicit < Thor", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 14: def print(array)", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 367: #", "file": "lib/thor/base.rb", "symbol": "", "line": 367, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 46: it \"removes Thor::Sandbox namespace\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 46, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "The utility meant for isolating execution environments doesn't seem to be properly encapsulated, potentially leaking state between runs.", "query": "execution sandbox isolation", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lang": "en", "candidates": [{"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "The utility meant for isolating execution environments doesn't seem to be properly encapsulated, potentially leaking state between runs.", "query": "execution sandbox isolation", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "The utility meant for isolating execution environments doesn't seem to be properly encapsulated, potentially leaking state between runs.", "query": "execution sandbox isolation", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lang": "en", "candidates": [{"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=77-100\nread _shared_configuration for detail", "file": "lib/thor/shell.rb", "symbol": "_shared_configuration", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=138-161\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=294-317\nread arguments for detail", "file": "lib/thor/base.rb", "symbol": "arguments", "line": 294, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=552-575\nread baseclass for detail", "file": "lib/thor.rb", "symbol": "baseclass", "line": 552, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=358-381\nread class_exclusive for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=17-40\nread Util for detail", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/subcommand.thor lines=1-24\nread TestSubcommands for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "TestSubcommands", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=293-316\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=24-47\nread find_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_by_namespace", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=127-150\nread ChildGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ChildGroup", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=77-100\nread to_hash for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "to_hash", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=58-81\nread namespaces_in_content for detail", "file": "lib/thor/util.rb", "symbol": "namespaces_in_content", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=120-143\nread I for detail", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=4-27\nread Sandbox for detail", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/thor_spec.rb lines=177-200\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=72-95\nread replace for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "replace", "line": 72, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "这段代码是如何通过块来管理输出缩进层级,并在执行结束后恢复原始缩进状态的?", "query": "indent padding block", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/group.thor\nLine 14: source_paths << File.expand_path(\"broken\", File.dirname(__FILE__))", "file": "spec/fixtures/group.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 13: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 22: def get_input", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 273: shell.print_wrapped(command.long_description, indent: 2)", "file": "lib/thor.rb", "symbol": "", "line": 273, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 210: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 177: create(foo: :string)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 83: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 12: self.options_relation = other.options_relation.dup if other.options_relation", "file": "lib/thor/command.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 71: it \"returns the default value if none is provided\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 131: root_file = File.join(Thor::Util.thor_root, \"thor.yml\")", "file": "spec/runner_spec.rb", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 8: width = Terminal.terminal_width - @indent", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nLine 19: describe \"#indent\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nLine 7: best_available.new(prompt, options).readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 306: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 306, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 72: def self.source_root", "file": "spec/fixtures/group.thor", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 43: def indent(count = 1)", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/group_spec.rb\nLine 144: expect(@content).to match(/invoke defined/)", "file": "spec/group_spec.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 29: para.split(\"\\n\").each do |line|", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 11: @indent = options[:indent].to_i", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 26: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 673: shell.print_table(list, indent: 2)", "file": "lib/thor/base.rb", "symbol": "", "line": 673, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 109: chars[0, @truncate - 3 - @indent].join + \"...\"", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 109, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 155: capture(:stderr) { File.const_set(:ALT_SEPARATOR, true) }", "file": "spec/util_spec.rb", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "这段代码是如何通过块来管理输出缩进层级,并在执行结束后恢复原始缩进状态的?", "query": "indent padding block", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lang": "zh", "candidates": [{"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "这段代码是如何通过块来管理输出缩进层级,并在执行结束后恢复原始缩进状态的?", "query": "indent padding block", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "这段代码是如何通过块来管理输出缩进层级,并在执行结束后恢复原始缩进状态的?", "query": "indent padding block", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/actions.rb lines=114-137\nread relative_to_original_destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "relative_to_original_destination_root", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=69-92\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=68-91\nread reverse_merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=41-64\nread slice for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "slice", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=215-238\nread strict_args_position! for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=39-62\nread required? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "required?", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=50-73\nread PathCompletion for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "PathCompletion", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=111-134\nread group for detail", "file": "spec/fixtures/group.thor", "symbol": "group", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=43-66\nread indent for detail", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=77-100\nread required_arguments_for for detail", "file": "lib/thor/command.rb", "symbol": "required_arguments_for", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=89-112\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/application_helper.rb lines=1-24\nread ApplicationHelper for detail", "file": "spec/fixtures/application_helper.rb", "symbol": "ApplicationHelper", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=5-28\nread print_opt for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "print_opt", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=49-72\nread capture for detail", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=132-155\nread on_conflict_behavior for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_conflict_behavior", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=27-50\nread included for detail", "file": "lib/thor/rake_compat.rb", "symbol": "included", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "busca el método que vincula nombres de comandos con símbolos", "query": "map command mappings", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lang": "es", "candidates": [{"text": "File: lib/thor/parser/option.rb\nLine 169: (str.length > 1 ? \"--\" : \"-\") + str.tr(\"_\", \"-\")", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 1: require \"helper\"", "file": "spec/sort_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 101: def map(mappings = nil, **kw)", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/invocation.rb\nLine 31: @_invocations.values.flatten.map(&:to_sym)", "file": "lib/thor/invocation.rb", "symbol": "", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 50: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 15: return if array.empty?", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 74: describe \"#default_command\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 4: lib_path= \"#{gem_dir}/lib\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 67: new_constants.map!(&:namespace)", "file": "lib/thor/util.rb", "symbol": "", "line": 67, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 92: expect(Thor::Util.find_class_and_command_by_namespace(\"my_counter\")).to eq([MyCounter, nil])", "file": "spec/util_spec.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 41: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 13: # config:: give :verbose => false to not log the status and the flag", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 33: @corrections ||= spell_checker.correct(error.command).map(&:inspect)", "file": "lib/thor/error.rb", "symbol": "", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 188: names = @non_assigned_required.map do |o|", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 188, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nLine 150: expect(on_red).to eq(\"\\e[37m\\e[41mhi!\\e[0m\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 65: absolute_matches.map { |path| path.sub(base_path, \"\") }", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 65, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nLine 146: \"subcommands ftw\"", "file": "spec/register_spec.rb", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 421: #", "file": "lib/thor/base.rb", "symbol": "", "line": 421, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 88: ansi_colors = colors.map { |color| lookup_color(color) }", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 88, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 245: # Run a regular expression replacement on a file, raising an error if the", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 630: thor my_script:baz --all", "file": "spec/thor_spec.rb", "symbol": "", "line": 630, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 12: puts opts[\"forcefully\"] ? ret.upcase : ret", "file": "spec/fixtures/command.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "busca el método que vincula nombres de comandos con símbolos", "query": "map command mappings", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lang": "es", "candidates": [{"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "busca el método que vincula nombres de comandos con símbolos", "query": "map command mappings", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "busca el método que vincula nombres de comandos con símbolos", "query": "map command mappings", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lang": "es", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=34-57\nread invoker for detail", "file": "spec/fixtures/invoke.thor", "symbol": "invoker", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=85-108\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=297-320\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 297, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=2-25\nread Argument for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=258-281\nread set_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "set_color", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=128-151\nread bar for detail", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=96-119\nread public_method? for detail", "file": "lib/thor/command.rb", "symbol": "public_method?", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=7-30\nread enter for detail", "file": "lib/thor/nested_context.rb", "symbol": "enter", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=276-299\nread thorfiles_relevant_to for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=27-50\nread source_root for detail", "file": "lib/thor/actions.rb", "symbol": "source_root", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions_spec.rb lines=8-31\nread action for detail", "file": "spec/actions_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=403-426\nread class_exclusive_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=74-97\nread thor_classes_in for detail", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=101-124\nread map for detail", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read Thorfile lines=6-29\nread Default for detail", "file": "Thorfile", "symbol": "Default", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=31-54\nread file for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "當參數定義為一個範圍(Range)而非陣列時,將其轉換為字串的邏輯似乎會導致預期外的格式輸出,請檢查處理非集合型列舉值的字串化行為。", "query": "enum to string", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lang": "zh", "candidates": [{"text": "File: lib/thor/error.rb\nLine 36: def spell_checker", "file": "lib/thor/error.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 8: desc \"error\", \"exit with a planned error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 44: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 16: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 72: out = capture(:stdout) do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 3: class Readline < Basic", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 22: stdout.printf(\"%-#{colwidth}s\", value)", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 1: describe \"when the Thor class's exit_with_failure? method returns true\" do", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 235: # You can use at_least_one and exclusive at the same time.", "file": "lib/thor.rb", "symbol": "", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 24: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 1: require \"helper\"", "file": "spec/encoding_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 12: {out: w, err: [:child, :out]})", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 94: options[:fail] ? this_method_does_not_exist : 5", "file": "spec/fixtures/group.thor", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 6: print options[\"opt\"]", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 10: if SOME_STRING.encoding.name == \"UTF-8\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 154: \"This will be rejected in the future unless you explicitly pass the options `check_default_type: false`\" +", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 15: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 21: puts \"HIPER MEGA SUPER\"", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 669: list << [\"\", \"# Possible values: #{option.enum_to_s}\"] if option.enum", "file": "lib/thor/base.rb", "symbol": "", "line": 669, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 52: def enum_to_s", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/sort_spec.rb\nLine 8: describe \"#sort - default\" do", "file": "spec/sort_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 180: raise MalformattedArgumentError, message % [name, switch.enum_to_s, value]", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 180, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "當參數定義為一個範圍(Range)而非陣列時,將其轉換為字串的邏輯似乎會導致預期外的格式輸出,請檢查處理非集合型列舉值的字串化行為。", "query": "enum to string", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\ndefines enum_to_s", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "當參數定義為一個範圍(Range)而非陣列時,將其轉換為字串的邏輯似乎會導致預期外的格式輸出,請檢查處理非集合型列舉值的字串化行為。", "query": "enum to string", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lang": "zh", "candidates": [{"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "當參數定義為一個範圍(Range)而非陣列時,將其轉換為字串的邏輯似乎會導致預期外的格式輸出,請檢查處理非集合型列舉值的字串化行為。", "query": "enum to string", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=52-75\nread enum_to_s for detail", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/actions_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=216-239\nread apply for detail", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=43-66\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=221-244\nread MyDefaults for detail", "file": "spec/fixtures/script.thor", "symbol": "MyDefaults", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=215-238\nread strict_args_position! for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=28-51\nread add_to_history? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "add_to_history?", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=77-100\nread _shared_configuration for detail", "file": "lib/thor/shell.rb", "symbol": "_shared_configuration", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=18-41\nread subcommand1 for detail", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=420-443\nread stop_on_unknown_option! for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option!", "line": 420, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=321-344\nread show_modules for detail", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=120-143\nread I for detail", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=1-24\nread Thor for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=2-25\nread Argument for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=103-126\nread truncate for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "truncate", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=67-90\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=35-58\nread dynamic_width_tput for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_tput", "line": 35, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "引数を受け取っているにもかかわらず、実際にはそれらを無視して特定の値をハードコードして別のタスクを呼び出している箇所があります。", "query": "invoke hardcoded args", "file": "spec/fixtures/invoke.thor", "symbol": "invoker", "line": 34, "lang": "ja", "candidates": [{"text": "File: lib/thor/shell/terminal.rb\nLine 39: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 183: expect(my_script2.start(%w[exec command --verbose])).to eq [{}, %w[command --verbose]]", "file": "spec/thor_spec.rb", "symbol": "", "line": 183, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 19: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 7: SHORT_NUM = /^(-[a-z])#{NUMERIC}$/i", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 67: attr_reader :replacement, :flag, :behavior", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 40: # initialize the invoker are used to initialize the invoked.", "file": "lib/thor/invocation.rb", "symbol": "", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 24: $stdin.gets", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 343: #", "file": "lib/thor/base.rb", "symbol": "", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 37: # source:: the relative path to the source root.", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 17: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 48: # invoke :bar", "file": "lib/thor/invocation.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 34: def invoker(*args)", "file": "spec/fixtures/invoke.thor", "symbol": "invoker", "line": 34, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nLine 38: # Set the terminal's background ANSI color to red.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 38: end", "file": "lib/thor/error.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 8: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 612: it \"provides full help info when talking about a specific command\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 612, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 29: # Hack. Make rakefile point to invoker, so rdoc task is generated properly.", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 1: class Thor", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 159: klass, command = self.class.prepare_for_invocation(nil, name)", "file": "lib/thor/invocation.rb", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 11: def invoker(options = {})", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 8: allow(invoker).to receive(:file_name).and_return(\"rdoc\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "引数を受け取っているにもかかわらず、実際にはそれらを無視して特定の値をハードコードして別のタスクを呼び出している箇所があります。", "query": "invoke hardcoded args", "file": "spec/fixtures/invoke.thor", "symbol": "invoker", "line": 34, "lang": "ja", "candidates": [{"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\ndefines invoker", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "引数を受け取っているにもかかわらず、実際にはそれらを無視して特定の値をハードコードして別のタスクを呼び出している箇所があります。", "query": "invoke hardcoded args", "file": "spec/fixtures/invoke.thor", "symbol": "invoker", "line": 34, "lang": "ja", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=34-57\nread invoker for detail", "file": "spec/fixtures/invoke.thor", "symbol": "invoker", "line": 34, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/group.rb lines=207-230\nread handle_argument_error for detail", "file": "lib/thor/group.rb", "symbol": "handle_argument_error", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=207-230\nread file_collision for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoker", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=311-334\nread MyOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyOptionScript", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=12-35\nread define for detail", "file": "spec/rake_compat_spec.rb", "symbol": "define", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=325-348\nread _shared_configuration for detail", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=52-75\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=192-215\nread thor_root for detail", "file": "lib/thor/util.rb", "symbol": "thor_root", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/runner_spec.rb lines=5-28\nread when_no_thorfiles_exist for detail", "file": "spec/runner_spec.rb", "symbol": "when_no_thorfiles_exist", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=57-80\nread AmbiguousCommandError for detail", "file": "lib/thor/error.rb", "symbol": "AmbiguousCommandError", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=78-101\nread long_desc for detail", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=22-45\nread SuperSecretPlugin for detail", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=142-165\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "How can I prevent certain subcommands from throwing errors when they miss mandatory flags?", "query": "disable required options", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lang": "en", "candidates": [{"text": "File: lib/thor/actions/create_file.rb\nLine 105: end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 704: expect(capture(:stdout) { MyScript.start(%w(help foo)) }).to match(/Usage:/)", "file": "spec/thor_spec.rb", "symbol": "", "line": 704, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 36: def neither_is_this", "file": "spec/fixtures/script.thor", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 38: describe \"with_padding\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 17: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 156: end", "file": "lib/thor/group.rb", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 224: check_unknown_options!", "file": "spec/thor_spec.rb", "symbol": "", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 84: self.destination_root = config[:destination_root]", "file": "lib/thor/actions.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 92: MyClassOptionScript.start %w[mix --one --two --three --five]", "file": "spec/base_spec.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 15: _, exit_status= Process.wait2(pid)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 6: attr_reader :stdout, :options", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 28: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 14: object = Struct.new(:namespace, :arguments).new(\"foo\", [])", "file": "spec/command_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 55: end", "file": "spec/group_spec.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 88: invoke \"defined:five\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 434: def disable_required_check!(*command_names)", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 368: expect(File.read(file)).to eq(\"another stuff\\n__start__\\nREADME\\n__end__\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 368, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 66: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 161: @content = capture(:stdout) { H.start }", "file": "spec/group_spec.rb", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 5: module LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 185: end", "file": "spec/group_spec.rb", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 197: it \"raises an error on method missing\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 197, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 6: # rake package tasks. For example, to use rspec rake tasks, one can do:", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "How can I prevent certain subcommands from throwing errors when they miss mandatory flags?", "query": "disable required options", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lang": "en", "candidates": [{"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "How can I prevent certain subcommands from throwing errors when they miss mandatory flags?", "query": "disable required options", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "How can I prevent certain subcommands from throwing errors when they miss mandatory flags?", "query": "disable required options", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lang": "en", "candidates": [{"text": "Next: read lib/thor/util.rb lines=153-176\nread load_thorfile for detail", "file": "lib/thor/util.rb", "symbol": "load_thorfile", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=472-495\nread commands for detail", "file": "lib/thor/base.rb", "symbol": "commands", "line": 472, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=259-282\nread baseclass for detail", "file": "lib/thor/group.rb", "symbol": "baseclass", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=65-88\nread peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=1-24\nread TestSubcommands for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "TestSubcommands", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=537-560\nread no_commands_context for detail", "file": "lib/thor/base.rb", "symbol": "no_commands_context", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=194-217\nread thor_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "thor_yaml", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/html_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/html_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=12-35\nread exists_and_identical? for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=79-102\nread can_display_colors? for detail", "file": "lib/thor/shell/html.rb", "symbol": "can_display_colors?", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=94-117\nread with_args for detail", "file": "spec/register_spec.rb", "symbol": "with_args", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=434-457\nread disable_required_check! for detail", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/group_spec.rb lines=223-246\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoker", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=179-202\nread names_to_switch_names for detail", "file": "lib/thor/parser/options.rb", "symbol": "names_to_switch_names", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Wie wird die Tabellenformatierung für die Terminal-Ausgabe mit Spaltenbreiten und Rändern implementiert?", "query": "terminal table print", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lang": "de", "candidates": [{"text": "File: lib/thor/shell/html.rb\nLine 5: module Shell", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nLine 39: expect(parse(\"product\", \"title\", \"age\")[\"string\"]).to eq(\"product\")", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 60: end", "file": "lib/thor/actions.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 7: module Shell", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 3: describe Thor::Shell do", "file": "spec/shell_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nLine 15: _, exit_status= Process.wait2(pid)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 67: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 27: let(:shell) { Thor::Shell::Basic.new }", "file": "spec/tree_spec.rb", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nLine 40: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 4: describe Thor::Shell::Basic do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nLine 11: ensure", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 29: _, options = MyScript.start(%w(with_optional --lazy-numeric 20000))", "file": "spec/thor_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 32: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/└─ sub/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 311: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 103: def files(lookup)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 20: module RakeCompat", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 5: module Shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nLine 28: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 5: module Shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/invoke.thor\nLine 113: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 368: it \"uses maximum terminal width\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 368, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 12: Rake::Task[\"build\"].execute", "file": "Thorfile", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 147: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 35: end", "file": "spec/group_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Wie wird die Tabellenformatierung für die Terminal-Ausgabe mit Spaltenbreiten und Rändern implementiert?", "query": "terminal table print", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lang": "de", "candidates": [{"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\ndefines Shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Wie wird die Tabellenformatierung für die Terminal-Ausgabe mit Spaltenbreiten und Rändern implementiert?", "query": "terminal table print", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lang": "de", "candidates": [{"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Wie wird die Tabellenformatierung für die Terminal-Ausgabe mit Spaltenbreiten und Rändern implementiert?", "query": "terminal table print", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lang": "de", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=80-103\nread Defined for detail", "file": "spec/fixtures/invoke.thor", "symbol": "Defined", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=13-36\nread invoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=12-35\nread command2 for detail", "file": "spec/tree_spec.rb", "symbol": "command2", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=48-71\nread Child1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "Child1", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=78-101\nread glob_pattern for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "glob_pattern", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=375-398\nread with_output_buffer for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "with_output_buffer", "line": 375, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=320-343\nread subcommands for detail", "file": "lib/thor.rb", "symbol": "subcommands", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=172-195\nread animal for detail", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=98-121\nread MalformattedArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "MalformattedArgumentError", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=589-612\nread defined_in_gem? for detail", "file": "lib/thor.rb", "symbol": "defined_in_gem?", "line": 589, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=329-352\nread subcommand for detail", "file": "lib/thor.rb", "symbol": "subcommand", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=329-352\nread class_option for detail", "file": "lib/thor/base.rb", "symbol": "class_option", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=619-642\nread handle_argument_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_argument_error", "line": 619, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=37-60\nread diff_lcs_loaded? for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=59-82\nread foo for detail", "file": "spec/fixtures/script.thor", "symbol": "foo", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=4-27\nread command for detail", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "オプションの引数が欠落している場合に、ブール型以外の型でデフォルト値やラベルを返すべき箇所で、正しくエラーを投げられなかったり、意図しない値が返ったりする挙動を調査してください。特に、必須ではない文字列オプションにおいて、値が指定されていない時のフォールバック処理のロジックを確認したいです。", "query": "option parse default", "file": "lib/thor/parser/options.rb", "symbol": "parse_peek", "line": 274, "lang": "ja", "candidates": [{"text": "File: lib/thor.rb\nLine 466: # ==== Returns", "file": "lib/thor.rb", "symbol": "", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 4: SOME_STRING = \"Some λέξεις 一些词 🎉\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 171: ensure", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 111: else", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 166: expect(colorless).to eq(\"hi!\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 113: def indentation", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 6: option \"--not_help\", :type => :boolean", "file": "spec/fixtures/help.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 191: class_name = self.class.name.split(\"::\").last.downcase", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 4: lib_path= \"#{gem_dir}/lib\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 21: def release", "file": "Thorfile", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 274: def parse_peek(switch, option)", "file": "lib/thor/parser/options.rb", "symbol": "parse_peek", "line": 274, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/invocation.rb\nLine 14: when Symbol, String", "file": "lib/thor/invocation.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 11: ret = \"#{name} is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 21: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 79: usage.to_s.gsub(/^#{name}/) do |match|", "file": "lib/thor/command.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 43: content = capture(:stderr) { Thor::Runner.start(%w(help unknown)) }", "file": "spec/runner_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 2: module LineEditor", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 42: expect(capture(:stdout) { base.say_status :padding, \"cool\" }.strip).to eq(\"padding cool\")", "file": "spec/shell_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 11: class_option \"opt\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 37: sentence = truncate(sentence)", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 73: protected", "file": "lib/thor/shell.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 29: # Set the terminal's foreground HTML color to white.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 202: desc \"say hi to name\"", "file": "spec/group_spec.rb", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "オプションの引数が欠落している場合に、ブール型以外の型でデフォルト値やラベルを返すべき箇所で、正しくエラーを投げられなかったり、意図しない値が返ったりする挙動を調査してください。特に、必須ではない文字列オプションにおいて、値が指定されていない時のフォールバック処理のロジックを確認したいです。", "query": "option parse default", "file": "lib/thor/parser/options.rb", "symbol": "parse_peek", "line": 274, "lang": "ja", "candidates": [{"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "オプションの引数が欠落している場合に、ブール型以外の型でデフォルト値やラベルを返すべき箇所で、正しくエラーを投げられなかったり、意図しない値が返ったりする挙動を調査してください。特に、必須ではない文字列オプションにおいて、値が指定されていない時のフォールバック処理のロジックを確認したいです。", "query": "option parse default", "file": "lib/thor/parser/options.rb", "symbol": "parse_peek", "line": 274, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/parser/option.rb lines=126-149\nread validate! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate!", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=251-274\nread error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "error", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=66-89\nread PluginWithDefaultMultipleArguments for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefaultMultipleArguments", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=93-116\nread method_missing for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "method_missing", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=347-370\nread ask_filtered for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_filtered", "line": 347, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=224-247\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=64-87\nread relative_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "relative_matches", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=110-133\nread invoke_from_option for detail", "file": "lib/thor/group.rb", "symbol": "invoke_from_option", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=112-135\nread are_colors_disabled? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_disabled?", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=9-32\nread empty_directory for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "empty_directory", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=59-82\nread foo for detail", "file": "spec/fixtures/script.thor", "symbol": "foo", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=161-184\nread class_options_help for detail", "file": "lib/thor/group.rb", "symbol": "class_options_help", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=247-270\nread Arities for detail", "file": "spec/fixtures/script.thor", "symbol": "Arities", "line": 247, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=52-75\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=49-72\nread values_at for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "values_at", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=153-176\nread _retrieve_class_and_command for detail", "file": "lib/thor/invocation.rb", "symbol": "_retrieve_class_and_command", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=274-297\nread parse_peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_peek", "line": 274, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=59-82\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "The execution logic fails to correctly identify the base class responsible for the command hierarchy when resolving the top-level entry point.", "query": "base command class", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lang": "en", "candidates": [{"text": "File: lib/thor/shell/html.rb\nLine 51: # on Highline implementation and it automatically appends CLEAR to the end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 192: def thor_root", "file": "lib/thor/util.rb", "symbol": "", "line": 192, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 178: ARGV.replace %w(:command_conflict)", "file": "spec/runner_spec.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 28: # Takes a hash of Thor::Option and a hash with defaults.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 238: yield instance if block_given?", "file": "lib/thor/group.rb", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 26: class Thor::Shell::TestShell < Thor::Shell::Basic; end", "file": "spec/shell_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 6: def show_diff(destination, content) #:nodoc:", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 48: # Set the terminal's background ANSI color to cyan.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 113: def invoke_with_conflict_check(&block)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 112: end", "file": "lib/thor/command.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 221: when is?(:yes), is?(:force), \"\"", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 8: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 27: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 197: # like this:", "file": "lib/thor/util.rb", "symbol": "", "line": 197, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 190: def thor_root", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/command.rb\nLine 78: if klass && !klass.arguments.empty?", "file": "lib/thor/command.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 172: invoke! \"doc\"", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 61: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 35: ON_RED = \"background-color: red\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 509: create attributes: Thor::Option.new(\"attributes\", type: :array, repeatable: true)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 509, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 131: root_file = File.join(Thor::Util.thor_root, \"thor.yml\")", "file": "spec/runner_spec.rb", "symbol": "", "line": 131, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 6: end", "file": "spec/util_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 112: verbose = options.fetch(:verbose, :white)", "file": "lib/thor/group.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "The execution logic fails to correctly identify the base class responsible for the command hierarchy when resolving the top-level entry point.", "query": "base command class", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lang": "en", "candidates": [{"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "The execution logic fails to correctly identify the base class responsible for the command hierarchy when resolving the top-level entry point.", "query": "base command class", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> group", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> ../thor", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> open-uri", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "The execution logic fails to correctly identify the base class responsible for the command hierarchy when resolving the top-level entry point.", "query": "base command class", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lang": "en", "candidates": [{"text": "Next: read spec/fixtures/command.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=262-285\nread argument for detail", "file": "lib/thor/base.rb", "symbol": "argument", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=55-78\nread inherited for detail", "file": "spec/fixtures/group.thor", "symbol": "inherited", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/group_spec.rb lines=206-229\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=4-27\nread Base for detail", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=239-262\nread inject_into_module for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_module", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=8-31\nread encoding for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=143-166\nread content for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=177-200\nread check_unknown_options? for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=190-213\nread thor_root for detail", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=420-443\nread stop_on_unknown_option! for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option!", "line": 420, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=99-122\nread aliases_for_usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "aliases_for_usage", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=4-27\nread shell for detail", "file": "spec/sort_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/html.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/html.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=206-229\nread PackageNameScript for detail", "file": "spec/fixtures/script.thor", "symbol": "PackageNameScript", "line": 206, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Wie werden neue Methoden dynamisch definiert, die einfach nur die Superklasse aufrufen?", "query": "dynamic method super", "file": "lib/thor/base.rb", "symbol": "public_command", "line": 607, "lang": "de", "candidates": [{"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 4: class EncodingWithUtf8 < Thor", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 9: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 10: def self.best_available", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 8: push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 132: public_command :foo, :baz", "file": "spec/fixtures/group.thor", "symbol": "", "line": 132, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 33: ON_BLACK = \"background-color: black\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 43: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 607: def public_command(*names)", "file": "lib/thor/base.rb", "symbol": "public_command", "line": 607, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 212: expect(File.read(file)).to eq(\"__start__\\nREADME\\nmore content\\n__end__\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 212, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 179: File.expand_path(\"~\")", "file": "lib/thor/util.rb", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 14: end", "file": "spec/register_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 76: ensure", "file": "spec/helper.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 51: end", "file": "lib/thor/error.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 107: it \"does not swallow Thor::Group InvocationError\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 57: def merge!(other)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 100: # invoked. You can do that by overwriting the class method", "file": "lib/thor/group.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 41: invoke_with_conflict_check do", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 41: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 50: class PluginInheritingFromClassOptionsGroup < ClassOptionGroupPlugin", "file": "spec/register_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 9: # ignored. If any file name is wrapped within % signs, the text within", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 206: class PackageNameScript < Thor", "file": "spec/fixtures/script.thor", "symbol": "", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 50: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 30: else", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 11: @prompt = prompt", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Wie werden neue Methoden dynamisch definiert, die einfach nur die Superklasse aufrufen?", "query": "dynamic method super", "file": "lib/thor/base.rb", "symbol": "public_command", "line": 607, "lang": "de", "candidates": [{"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Wie werden neue Methoden dynamisch definiert, die einfach nur die Superklasse aufrufen?", "query": "dynamic method super", "file": "lib/thor/base.rb", "symbol": "public_command", "line": 607, "lang": "de", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Wie werden neue Methoden dynamisch definiert, die einfach nur die Superklasse aufrufen?", "query": "dynamic method super", "file": "lib/thor/base.rb", "symbol": "public_command", "line": 607, "lang": "de", "candidates": [{"text": "Next: read lib/thor/parser/options.rb lines=230-253\nread switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch?", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=1-24\nread Enum for detail", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=112-135\nread are_colors_disabled? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_disabled?", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=38-61\nread part_two for detail", "file": "spec/register_spec.rb", "symbol": "part_two", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=607-630\nread public_command for detail", "file": "lib/thor/base.rb", "symbol": "public_command", "line": 607, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=37-60\nread diff_lcs_loaded? for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=46-69\nread use_path_completion? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "use_path_completion?", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=91-114\nread required_options for detail", "file": "lib/thor/command.rb", "symbol": "required_options", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=248-271\nread parsing_options? for detail", "file": "lib/thor/parser/options.rb", "symbol": "parsing_options?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=50-73\nread PathCompletion for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "PathCompletion", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=10-33\nread create_file for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=72-95\nread shift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "shift", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=52-75\nread enum_to_s for detail", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=122-145\nread invoke_command for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_command", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=64-87\nread last? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=12-35\nread exists_and_identical? for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=129-152\nread uninstall for detail", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=75-98\nread PluginWithDefaultcommandAndDeclaredArgument for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefaultcommandAndDeclaredArgument", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Ao instanciar uma ação, o modo de execução está sendo definido incorretamente quando passamos parâmetros de configuração para forçar ou pular operações, o que acaba afetando o comportamento padrão de invocação.", "query": "action behavior config", "file": "lib/thor/actions.rb", "symbol": "initialize", "line": 72, "lang": "pt", "candidates": [{"text": "File: spec/parser/arguments_spec.rb\nLine 64: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 236: puts \"command\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 236, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 41: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 161: def initialize(*args)", "file": "spec/fixtures/script.thor", "symbol": "", "line": 161, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nLine 3: def initialize", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 45: #", "file": "lib/thor/invocation.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 17: # %app_name%.rb", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 16: r.read", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 351: it \"accepts a --switch format on non required types\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 216: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 91: # The old API was `set_color(color, bold=boolean)`. We", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 26: end.compact!", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 425: options = MyChildScript.start(args)", "file": "spec/thor_spec.rb", "symbol": "", "line": 425, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 8: ::FileUtils.cp_r(source_root, destination_root)", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 13: w.close", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 10: def initialize(prompt, options)", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nLine 22: Rake::Task[\"release\"].invoke", "file": "Thorfile", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 397: TABLE", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 397, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 53: included = /spec/", "file": "spec/quality_spec.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 58: def initialize(base, source, destination = nil, config = {}, &block)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 12: describe \"#initialize\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nLine 40: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub help)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 72: def initialize(args = [], options = {}, config = {})", "file": "lib/thor/actions.rb", "symbol": "initialize", "line": 72, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/error.rb\nLine 28: def initialize(error)", "file": "lib/thor/error.rb", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Ao instanciar uma ação, o modo de execução está sendo definido incorretamente quando passamos parâmetros de configuração para forçar ou pular operações, o que acaba afetando o comportamento padrão de invocação.", "query": "action behavior config", "file": "lib/thor/actions.rb", "symbol": "initialize", "line": 72, "lang": "pt", "candidates": [{"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Ao instanciar uma ação, o modo de execução está sendo definido incorretamente quando passamos parâmetros de configuração para forçar ou pular operações, o que acaba afetando o comportamento padrão de invocação.", "query": "action behavior config", "file": "lib/thor/actions.rb", "symbol": "initialize", "line": 72, "lang": "pt", "candidates": [{"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> revoke", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/empty_directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/inject_into_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/file_manipulation", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Ao instanciar uma ação, o modo de execução está sendo definido incorretamente quando passamos parâmetros de configuração para forçar ou pular operações, o que acaba afetando o comportamento padrão de invocação.", "query": "action behavior config", "file": "lib/thor/actions.rb", "symbol": "initialize", "line": 72, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/rake_compat_spec.rb lines=28-51\nread ThorTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "ThorTask", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=95-118\nread RequiredArgumentMissingError for detail", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=424-447\nread stop_on_unknown_option? for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/verbose.thor lines=8-31\nread exit_on_failure? for detail", "file": "spec/fixtures/verbose.thor", "symbol": "exit_on_failure?", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=100-123\nread E for detail", "file": "spec/fixtures/invoke.thor", "symbol": "E", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=613-636\nread normalize_command_name for detail", "file": "lib/thor.rb", "symbol": "normalize_command_name", "line": 613, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/exit_status.thor lines=3-26\nread ExitStatus for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ExitStatus", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=39-62\nread required? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "required?", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=72-95\nread initialize for detail", "file": "lib/thor/actions.rb", "symbol": "initialize", "line": 72, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/group.thor lines=128-151\nread bar for detail", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=57-80\nread merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=21-44\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=15-38\nread parse for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "parse", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=12-35\nread exists_and_identical? for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "vérifie si la méthode est privée pour l'instance", "query": "private method check", "file": "lib/thor/command.rb", "symbol": "private_method?", "line": 100, "lang": "fr", "candidates": [{"text": "File: spec/util_spec.rb\nLine 52: it \"returns an array of names of constants defined in the string\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 13: desc \"sub\", \"My subcommand\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 68: file = File.join(destination_root, \"commands\", \"doc\", \"README\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 28: def add_to_history?", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 51: # configure how it will be invoked.", "file": "lib/thor/group.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 38: # You can also supply the arguments, options and configuration values for", "file": "lib/thor/invocation.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 8: describe \"#sort - default\" do", "file": "spec/sort_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 11: if SOME_STRING.encoding.name == \"UTF-8\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 15: _, exit_status= Process.wait2(pid)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 38: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 33: options.fetch(:echo, true)", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 100: def private_method?(instance)", "file": "lib/thor/command.rb", "symbol": "private_method?", "line": 100, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/option.rb\nLine 118: def #{type}?", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 3: require_relative \"basic\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 14: def ok", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 54: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 195: red = shell.set_color \"hi!\", :red", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 99: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 75: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 36: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 90: describe \"#find_class_and_command_by_namespace\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 346: @table << [\"\", \"#0\", \"empty\"]", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 346, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 48: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 320: ensure", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 320, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "vérifie si la méthode est privée pour l'instance", "query": "private method check", "file": "lib/thor/command.rb", "symbol": "private_method?", "line": 100, "lang": "fr", "candidates": [{"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "vérifie si la méthode est privée pour l'instance", "query": "private method check", "file": "lib/thor/command.rb", "symbol": "private_method?", "line": 100, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/actions/file_manipulation.rb lines=350-373\nread remove_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "remove_file", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=221-244\nread command_exists? for detail", "file": "lib/thor/group.rb", "symbol": "command_exists?", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=100-123\nread private_method? for detail", "file": "lib/thor/command.rb", "symbol": "private_method?", "line": 100, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/arguments.rb lines=158-181\nread parse_string for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_string", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=377-400\nread merge_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge_tool", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=97-120\nread parse_hash for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_hash", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=76-99\nread unshift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "unshift", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=128-151\nread send for detail", "file": "spec/fixtures/script.thor", "symbol": "send", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=39-62\nread required? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "required?", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=179-202\nread boom for detail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=276-299\nread thorfiles_relevant_to for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=4-27\nread EncodingWithUtf8 for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=138-161\nread say_status for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "say_status", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=58-81\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=103-126\nread files for detail", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "return the instance variable holding unparsed arguments", "query": "extra arguments", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lang": "en", "candidates": [{"text": "File: spec/shell/html_spec.rb\nLine 9: it \"sets the color if specified\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 108: expect(content).to match(/\\[--unused\\]/)", "file": "spec/group_spec.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 110: it \"passes remaining args to command when it encounters a non-option\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 110, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 22: counter = word.length", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 384: # argument is encountered. All remaining arguments are passed to the command.", "file": "lib/thor.rb", "symbol": "", "line": 384, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 147: def replacement_present?", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 28: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub print_opt --help)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 36: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 32: # ==== Returns", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 100: # remaining arguments looks like an option.", "file": "lib/thor/base.rb", "symbol": "", "line": 100, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 61: def remaining", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 43: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 60: @block = block", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 53: def remaining", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 53, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 65: # Yields the given block with padding.", "file": "lib/thor/shell.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 51: describe \"#namespaces_in_content\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 4: module Shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 24: def remaining", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 16: expect(capture(:stdout) { Thor::Sandbox::EncodingOther.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 81: end", "file": "lib/thor/command.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 262: [[\"foo\", \"bar\"], [\"baz\",\"qux\"]])", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 145: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "return the instance variable holding unparsed arguments", "query": "extra arguments", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lang": "en", "candidates": [{"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "return the instance variable holding unparsed arguments", "query": "extra arguments", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lang": "en", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=139-162\nread parse_numeric for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_numeric", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=65-88\nread peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=145-168\nread chmod for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "chmod", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=108-131\nread long_description_unwrapped for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description_unwrapped", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=367-390\nread concat for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "concat", "line": 367, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=43-66\nread indent for detail", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=14-37\nread print for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=65-88\nread UnknownArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=114-137\nread handle_argument_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_argument_error?", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=797-820\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 797, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=27-50\nread source_root for detail", "file": "lib/thor/actions.rb", "symbol": "source_root", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=21-44\nread revoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=60-83\nread invoke! for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=96-119\nread name_with_dashes for detail", "file": "spec/fixtures/script.thor", "symbol": "name_with_dashes", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "In den Test-Fixtures scheint eine Methode zu existieren, die lediglich einen internen Zugriffswert zurückgibt, ohne eine echte Logik für eine Tierpark-Simulation zu implementieren. Das wirkt wie ein Platzhalter.", "query": "zoo accessor", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lang": "de", "candidates": [{"text": "File: lib/thor/error.rb\nLine 105: end", "file": "lib/thor/error.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 53: Array(usage).map do |specific_usage|", "file": "lib/thor/command.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 82: expect(command.run(klass.new)).to eq(\"can_has\")", "file": "spec/command_spec.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 97: else", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 1: require_relative \"line_editor/basic\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 64: invoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 278: it \"does not attempt to change the file if it doesn't exist - instead raises Thor::Error\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 278, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 116: else", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 216: def zoo", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/base_spec.rb\nLine 59: expect(Scripts::MyScript.start(%w(zoo my_special_param --param=normal_param))).to eq(\"my_special_param\")", "file": "spec/base_spec.rb", "symbol": "", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 28: expect(content).to match(/zoo\\s+# zoo around/m)", "file": "spec/runner_spec.rb", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 63: expect(File.exist?(file)).to be true", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 62: a[0] == :help ? -1 : a[0] <=> b[0]", "file": "spec/sort_spec.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 123: \"zoo\",", "file": "spec/register_spec.rb", "symbol": "", "line": 123, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 345: expect(MyScript.command_exists?(\"zoo\")).to be true", "file": "spec/thor_spec.rb", "symbol": "", "line": 345, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 244: def normalize_switch(arg)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 296: it \"does not log status if required\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 41: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 4: require_relative \"lcs_diff\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 2: module LineEditor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 616: end", "file": "lib/thor/base.rb", "symbol": "", "line": 616, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 82: # If force is true, run the action, otherwise check if it's not being", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 147: content = invoke!(\"app{1}\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 88: ansi_colors = colors.map { |color| lookup_color(color) }", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "In den Test-Fixtures scheint eine Methode zu existieren, die lediglich einen internen Zugriffswert zurückgibt, ohne eine echte Logik für eine Tierpark-Simulation zu implementieren. Das wirkt wie ein Platzhalter.", "query": "zoo accessor", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lang": "de", "candidates": [{"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines zoo", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "In den Test-Fixtures scheint eine Methode zu existieren, die lediglich einen internen Zugriffswert zurückgibt, ohne eine echte Logik für eine Tierpark-Simulation zu implementieren. Das wirkt wie ein Platzhalter.", "query": "zoo accessor", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lang": "de", "candidates": [{"text": "Next: read lib/thor/util.rb lines=4-27\nread Sandbox for detail", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=101-124\nread map for detail", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=32-55\nread echo? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "echo?", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=128-151\nread bar for detail", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=4-27\nread Thor for detail", "file": "lib/thor/rake_compat.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=189-212\nread assign_result! for detail", "file": "lib/thor/parser/options.rb", "symbol": "assign_result!", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=58-81\nread namespaces_in_content for detail", "file": "lib/thor/util.rb", "symbol": "namespaces_in_content", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=54-77\nread set_color for detail", "file": "lib/thor/shell/html.rb", "symbol": "set_color", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=216-239\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/option.rb lines=160-183\nread dasherized? for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherized?", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=403-426\nread class_exclusive_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=7-30\nread RakeTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "RakeTask", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=231-254\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "task", "query": "decrement depth", "file": "lib/thor/nested_context.rb", "symbol": "pop", "line": 25, "lang": "en", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nLine 4: def runner(options = {}, behavior = :invoke)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 81: options = args.last.is_a?(Hash) ? args.pop : {}", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 375: expect(File.read(file)).to eq(\"__start__\\nREADME\\n__end__\\nanother stuff\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 375, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 82: else", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 181: klasses = Thor::Base.subclasses.select do |k|", "file": "lib/thor/runner.rb", "symbol": "", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 428: options = names.last.is_a?(Hash) ? names.pop : {}", "file": "lib/thor/base.rb", "symbol": "", "line": 428, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 109: def sans_backtrace(backtrace, caller) #:nodoc:", "file": "lib/thor/command.rb", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 25: def pop", "file": "lib/thor/nested_context.rb", "symbol": "pop", "line": 25, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/rake_compat.rb\nLine 8: # require 'thor/rake_compat'", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 70: Thor::RakeCompat.rake_classes.pop", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 70, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 8: def initialize(stdout, options = {})", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 1: class Thor", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 203: expect(Thor::Util.escape_globs(\"apps?\")).to eq('apps\\\\?')", "file": "spec/util_spec.rb", "symbol": "", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 21: memo = \"#{memo}\\n#{word}\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 101: # The method referenced can be either public or private.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 82: else", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 50: config = args.last.is_a?(Hash) ? args.pop : {}", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 67: it \"clones the parent command\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 23: config = args.last.is_a?(Hash) ? args.pop : {}", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\nLine 18: config = args.last.is_a?(Hash) ? args.pop : {}", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 44: #", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 54: end", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 69: def initialize(error)", "file": "lib/thor/error.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "task", "query": "decrement depth", "file": "lib/thor/nested_context.rb", "symbol": "pop", "line": 25, "lang": "en", "candidates": [{"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\ndefines pop", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "task", "query": "decrement depth", "file": "lib/thor/nested_context.rb", "symbol": "pop", "line": 25, "lang": "en", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=360-383\nread answer_match for detail", "file": "lib/thor/shell/basic.rb", "symbol": "answer_match", "line": 360, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=161-184\nread initialize for detail", "file": "spec/fixtures/script.thor", "symbol": "initialize", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=39-62\nread three for detail", "file": "spec/fixtures/group.thor", "symbol": "three", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=25-48\nread pop for detail", "file": "lib/thor/nested_context.rb", "symbol": "pop", "line": 25, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=622-645\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=11-34\nread HashWithIndifferentAccess for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=478-501\nread disable_required_check for detail", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=243-266\nread ChildDefault for detail", "file": "spec/fixtures/script.thor", "symbol": "ChildDefault", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=15-38\nread entered? for detail", "file": "lib/thor/nested_context.rb", "symbol": "entered?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=142-165\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=83-106\nread convert_key for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "convert_key", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=2-25\nread NestedContext for detail", "file": "lib/thor/nested_context.rb", "symbol": "NestedContext", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=111-134\nread group for detail", "file": "spec/fixtures/group.thor", "symbol": "group", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=709-732\nread find_and_refresh_command for detail", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=113-136\nread indentation for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=458-481\nread group for detail", "file": "lib/thor/base.rb", "symbol": "group", "line": 458, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=7-30\nread enter for detail", "file": "lib/thor/nested_context.rb", "symbol": "enter", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=127-150\nread ChildGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ChildGroup", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=276-299\nread apple for detail", "file": "spec/fixtures/script.thor", "symbol": "apple", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Je cherche à comprendre comment est construite l'URL ou le chemin du fichier cible dans les tests. Peux-tu me montrer la logique qui définit l'emplacement du fichier de l'application ?", "query": "destination root application", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 567, "lang": "fr", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nLine 567: def file", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 567, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/util_spec.rb\nLine 144: it \"returns the *nix system path if file cannot be expanded and separator does not exist\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 144, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 12: private", "file": "spec/fixtures/script.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 5: module LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 185: #", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 223: path = File.join(Thor::Util.thor_root, Digest::SHA256.hexdigest(location + \"random\"))", "file": "spec/runner_spec.rb", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 54: it \"copies the file to the specified destination\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nLine 43: desc \"install NAME\", \"Install an optionally named Thor file into your system commands\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 10: @options = options", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 272: klass.class_eval \"def shell; end\"", "file": "spec/base_spec.rb", "symbol": "", "line": 272, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 168: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 33: row.each_with_index do |column, index|", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 7: include Thor::RakeCompat", "file": "Thorfile", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 31: def file", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 12: def file", "file": "spec/actions_spec.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 51: formatted ||= \"\".dup", "file": "lib/thor/command.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 257: end", "file": "lib/thor/actions.rb", "symbol": "", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 58: def namespaces_in_content(contents, file = __FILE__)", "file": "lib/thor/util.rb", "symbol": "", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 8: actual = File.binread(destination).to_s.split(\"\\n\")", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 333: message = prepare_message(message, *color)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 9: paras = message.split(\"\\n\\n\")", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche à comprendre comment est construite l'URL ou le chemin du fichier cible dans les tests. Peux-tu me montrer la logique qui définit l'emplacement du fichier de l'application ?", "query": "destination root application", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 567, "lang": "fr", "candidates": [{"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\ndefines file", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Je cherche à comprendre comment est construite l'URL ou le chemin du fichier cible dans les tests. Peux-tu me montrer la logique qui définit l'emplacement du fichier de l'application ?", "query": "destination root application", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 567, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche à comprendre comment est construite l'URL ou le chemin du fichier cible dans les tests. Peux-tu me montrer la logique qui définit l'emplacement du fichier de l'application ?", "query": "destination root application", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 567, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/actions.rb lines=248-271\nread run for detail", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "runner", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=149-172\nread remove_invocation for detail", "file": "lib/thor/group.rb", "symbol": "remove_invocation", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=65-88\nread UnknownArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=345-368\nread only_one for detail", "file": "spec/fixtures/script.thor", "symbol": "only_one", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=168-191\nread user_home for detail", "file": "lib/thor/util.rb", "symbol": "user_home", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=91-114\nread required_options for detail", "file": "lib/thor/command.rb", "symbol": "required_options", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=8-31\nread action for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "action", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/tree_spec.rb lines=18-41\nread subcommand1 for detail", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=304-327\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 304, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=15-38\nread entered? for detail", "file": "lib/thor/nested_context.rb", "symbol": "entered?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=12-35\nread initialize for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "initialize", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=482-505\nread print_exclusive_options for detail", "file": "lib/thor.rb", "symbol": "print_exclusive_options", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=12-35\nread exists_and_identical? for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=221-244\nread MyDefaults for detail", "file": "spec/fixtures/script.thor", "symbol": "MyDefaults", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=41-64\nread slice for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "slice", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=567-590\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 567, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=219-242\nread strict_args_position for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=57-80\nread AmbiguousCommandError for detail", "file": "lib/thor/error.rb", "symbol": "AmbiguousCommandError", "line": 57, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Die Berechnung des aktuellen Arbeitsverzeichnisses am Ende des Pfades scheint inkonsistent zu sein, da sie immer einen Slash erzwingt.", "query": "current working directory", "file": "lib/thor/line_editor/readline.rb", "symbol": "base_path", "line": 82, "lang": "de", "candidates": [{"text": "File: spec/parser/argument_spec.rb\nLine 63: required: false,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 11: # :: give :symbolic => false for hard link.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 79: # :on_yellow", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 56: eval(\"$#{stream} = #{stream.upcase}\")", "file": "spec/helper.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 48: class Child1 < Thor", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 79: def human_name", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 53: def remaining", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 181: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 8: desc \"describe NAME\", \"say that someone is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 20: expect(capture(:stdout) { Thor::Sandbox::EncodingImplicit.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 16: expect(shell.base).to eq(base)", "file": "spec/shell_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 34: expect(Thor::Base.shell).to eq(shell.class)", "file": "spec/shell_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 4: class EncodingWithUtf8 < Thor", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 864: Class.new(Thor) do", "file": "spec/thor_spec.rb", "symbol": "", "line": 864, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 173: revoke! \"doc\"", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 56: def insert_into_file(destination, *args, &block)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 103: # Sets the root for this thor class. Relatives path are added to the", "file": "lib/thor/actions.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 210: msg << \", but it should not.\"", "file": "lib/thor/group.rb", "symbol": "", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 24: $stdin.gets", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 19: load_thorfile(\"encoding_implicit.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 82: def base_path", "file": "lib/thor/line_editor/readline.rb", "symbol": "base_path", "line": 82, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/register_spec.rb\nLine 131: \"say message\",", "file": "spec/register_spec.rb", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 14: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Die Berechnung des aktuellen Arbeitsverzeichnisses am Ende des Pfades scheint inkonsistent zu sein, da sie immer einen Slash erzwingt.", "query": "current working directory", "file": "lib/thor/line_editor/readline.rb", "symbol": "base_path", "line": 82, "lang": "de", "candidates": [{"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nsibling in lib/thor/line_editor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\ndefines base_path", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Die Berechnung des aktuellen Arbeitsverzeichnisses am Ende des Pfades scheint inkonsistent zu sein, da sie immer einen Slash erzwingt.", "query": "current working directory", "file": "lib/thor/line_editor/readline.rb", "symbol": "base_path", "line": 82, "lang": "de", "candidates": [{"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Die Berechnung des aktuellen Arbeitsverzeichnisses am Ende des Pfades scheint inkonsistent zu sein, da sie immer einen Slash erzwingt.", "query": "current working directory", "file": "lib/thor/line_editor/readline.rb", "symbol": "base_path", "line": 82, "lang": "de", "candidates": [{"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=129-152\nread uninstall for detail", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=546-569\nread banner for detail", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=262-285\nread argument for detail", "file": "lib/thor/base.rb", "symbol": "argument", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=41-64\nread slice for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "slice", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=194-217\nread check_default_type for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=248-271\nread parsing_options? for detail", "file": "lib/thor/parser/options.rb", "symbol": "parsing_options?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=21-44\nread revoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=203-226\nread thor_root_glob for detail", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=78-101\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=6-29\nread Thor for detail", "file": "lib/thor/shell/color.rb", "symbol": "Thor", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=363-386\nread check_unknown_options? for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options?", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=320-343\nread subcommands for detail", "file": "lib/thor.rb", "symbol": "subcommands", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=82-105\nread base_path for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "base_path", "line": 82, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "부모 서브커맨드에서 자식 서브커맨드를 등록할 때, 자식 커맨드가 실패하더라도 부모 커맨드가 오류 메시지를 출력하지 않고 계속 실행되도록 설정하는 테스트 케이스를 찾아주세요. 특히 `exit_on_failure?` 메소드가 false를 반환하도록 오버라이드된 경우를 포함해야 합니다.", "query": "subcommand error handling", "file": "spec/subcommand_spec.rb", "symbol": "SubcommandTest1", "line": 47, "lang": "ko", "candidates": [{"text": "File: spec/actions/directory_spec.rb\nLine 13: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 111: describe \"#revoke!\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 39: ON_RED = \"\\e[41m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 140: expect(error).to match(/ERROR: \"thor two\" was called with arguments/)", "file": "spec/group_spec.rb", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 47: module SubcommandTest1", "file": "spec/subcommand_spec.rb", "symbol": "SubcommandTest1", "line": 47, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/sort_spec.rb\nLine 21: it \"sorts them lexicographillay\" do", "file": "spec/sort_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 110: flavors = %w(strawberry chocolate vanilla)", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 121: def handle_no_method_error?(instance, error, caller)", "file": "lib/thor/command.rb", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 477: expect(parse(\"--attributes\", \"name:string\", \"age:integer\", \"--baz\", \"cool\")[\"attributes\"]).to eq(\"name\" => \"string\", \"age\" => \"integer\")", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 477, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 383: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 383, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 14: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 6: option \"--not_help\", :type => :boolean", "file": "spec/fixtures/help.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 156: exists_and_identical?(\"doc/README\", \"doc/README\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 3: require \"bundler\"", "file": "Thorfile", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 8: desc \"describe NAME\", \"say that someone is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 49: description.strip!", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 142: if !klass && fallback # try a command in the default namespace", "file": "lib/thor/util.rb", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 29: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 11: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 58: else", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 123: while current_is_value?", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 49: def values_at(*indices)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 47: end", "file": "spec/helper.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "부모 서브커맨드에서 자식 서브커맨드를 등록할 때, 자식 커맨드가 실패하더라도 부모 커맨드가 오류 메시지를 출력하지 않고 계속 실행되도록 설정하는 테스트 케이스를 찾아주세요. 특히 `exit_on_failure?` 메소드가 false를 반환하도록 오버라이드된 경우를 포함해야 합니다.", "query": "subcommand error handling", "file": "spec/subcommand_spec.rb", "symbol": "SubcommandTest1", "line": 47, "lang": "ko", "candidates": [{"text": "File: spec/tree_spec.rb\nsibling in spec", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nsibling in spec", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\ndefines SubcommandTest1", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nsibling in spec", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nsibling in spec", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nsibling in spec", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "부모 서브커맨드에서 자식 서브커맨드를 등록할 때, 자식 커맨드가 실패하더라도 부모 커맨드가 오류 메시지를 출력하지 않고 계속 실행되도록 설정하는 테스트 케이스를 찾아주세요. 특히 `exit_on_failure?` 메소드가 false를 반환하도록 오버라이드된 경우를 포함해야 합니다.", "query": "subcommand error handling", "file": "spec/subcommand_spec.rb", "symbol": "SubcommandTest1", "line": 47, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "부모 서브커맨드에서 자식 서브커맨드를 등록할 때, 자식 커맨드가 실패하더라도 부모 커맨드가 오류 메시지를 출력하지 않고 계속 실행되도록 설정하는 테스트 케이스를 찾아주세요. 특히 `exit_on_failure?` 메소드가 false를 반환하도록 오버라이드된 경우를 포함해야 합니다.", "query": "subcommand error handling", "file": "spec/subcommand_spec.rb", "symbol": "SubcommandTest1", "line": 47, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=40-63\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=293-316\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=58-81\nread namespaces_in_content for detail", "file": "lib/thor/util.rb", "symbol": "namespaces_in_content", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=40-63\nread invoke! for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=55-78\nread Parent for detail", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=7-30\nread print for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=48-71\nread Child1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "Child1", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/subcommand_spec.rb lines=47-70\nread SubcommandTest1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "SubcommandTest1", "line": 47, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=27-50\nread delete for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "delete", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=73-96\nread ask for detail", "file": "lib/thor/shell/html.rb", "symbol": "ask", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=76-99\nread call_myself_with_wrong_arity for detail", "file": "spec/fixtures/script.thor", "symbol": "call_myself_with_wrong_arity", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=132-155\nread on_conflict_behavior for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_conflict_behavior", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=59-82\nread exit_on_failure? for detail", "file": "spec/subcommand_spec.rb", "symbol": "exit_on_failure?", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=661-684\nread sort_commands! for detail", "file": "lib/thor.rb", "symbol": "sort_commands!", "line": 661, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=221-244\nread ruby_command for detail", "file": "lib/thor/util.rb", "symbol": "ruby_command", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=68-91\nread ClearCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "ClearCounter", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=50-73\nread foo for detail", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=231-254\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "O sistema está falhando ao verificar se a biblioteca de edição de linha está disponível no ambiente, o que pode causar erros de carregamento dependendo de como a constante é verificada após a tentativa de importação.", "query": "readline available check", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lang": "pt", "candidates": [{"text": "File: lib/thor/actions/inject_into_file.rb\nLine 10: # ==== Parameters", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 29: # base:: A Thor::Base instance", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 97: end", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 21: create string: nil, numeric: nil", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 1: class Thor", "file": "lib/thor/invocation.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 3: # A hash with indifferent access and magic predicates.", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 21: if meth && !respond_to?(meth)", "file": "lib/thor/runner.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 61: def world(&block)", "file": "spec/fixtures/group.thor", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 63: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 1: class A < Thor", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 1: class Thor", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 1: require \"helper\"", "file": "spec/command_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 7: Thor::Util.load_thorfile(File.expand_path(\"./fixtures/#{filename}\", __dir__))", "file": "spec/encoding_spec.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 150: klass = Class.new(Thor) do", "file": "spec/thor_spec.rb", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 51: puts \"#{name} was given\"", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 1: class Thor", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 3: class Thor", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nLine 23: expect(thor_command(\"error\")).to eq(1)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 17: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 163: expect(ClearCounter.class_options[:third]).to be nil", "file": "spec/base_spec.rb", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 1: class Thor", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 13: end", "file": "spec/util_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "O sistema está falhando ao verificar se a biblioteca de edição de linha está disponível no ambiente, o que pode causar erros de carregamento dependendo de como a constante é verificada após a tentativa de importação.", "query": "readline available check", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lang": "pt", "candidates": [{"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\ndefines Thor", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nsibling in lib/thor/line_editor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "O sistema está falhando ao verificar se a biblioteca de edição de linha está disponível no ambiente, o que pode causar erros de carregamento dependendo de como a constante é verificada após a tentativa de importação.", "query": "readline available check", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "O sistema está falhando ao verificar se a biblioteca de edição de linha está disponível no ambiente, o que pode causar erros de carregamento dependendo de como a constante é verificada após a tentativa de importação.", "query": "readline available check", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=28-51\nread add_to_history? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "add_to_history?", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=74-97\nread thor_classes_in for detail", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=671-694\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=4-27\nread Base for detail", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=64-87\nread reverse_merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=172-195\nread get_options_from_invocations for detail", "file": "lib/thor/group.rb", "symbol": "get_options_from_invocations", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=399-422\nread set_eoutvar for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "set_eoutvar", "line": 399, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=307-330\nread mix for detail", "file": "spec/fixtures/script.thor", "symbol": "mix", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=133-156\nread invoke_all for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_all", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=190-213\nread allow_incompatible_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "allow_incompatible_default_type!", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=537-560\nread no_commands_context for detail", "file": "lib/thor/base.rb", "symbol": "no_commands_context", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=53-76\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=322-345\nread quiet? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "How does the system handle cases where a command is called without any of its mandatory parameters?", "query": "required argument error", "file": "lib/thor/error.rb", "symbol": "AtLeastOneRequiredArgumentError", "line": 104, "lang": "en", "candidates": [{"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 1: require_relative \"terminal\"", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 53: source = File.expand_path(find_in_source_paths(source.to_s))", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 57: create_file(\"doc/config.rb\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 281: expect{parse(%w[--baz])}.to raise_error(Thor::AtLeastOneRequiredArgumentError, \"Not found at least one of required options '--foo', '--bar'\")", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 281, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 121: @stopped_parsing_after_extra_index ||= @extra.size", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 164: fail AtLeastOneRequiredArgumentError, \"Not found at least one of required #{class_name} #{names.join(\", \")}\"", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 164, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 357: #", "file": "lib/thor/base.rb", "symbol": "", "line": 357, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 11: ENV[\"THOR_COLUMNS\"].to_i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 74: end", "file": "spec/command_spec.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 232: # If you do not give \"--one\" and \"--two\" AtLeastOneRequiredArgumentError", "file": "lib/thor.rb", "symbol": "", "line": 232, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/command.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 19: if ((((index + 1) % (Terminal.terminal_width / colwidth))).zero? && !index.zero?) || index + 1 == array.length", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 40: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 303: list[\"root\"] = groups", "file": "lib/thor/runner.rb", "symbol": "", "line": 303, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 111: end.to raise_error(Thor::AtLeastOneRequiredArgumentError, \"Not found at least one of required options '--three', '--four'\")", "file": "spec/base_spec.rb", "symbol": "", "line": 111, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 379: # If you do not give \"--one\" and \"--two\" AtLeastOneRequiredArgumentError", "file": "lib/thor/base.rb", "symbol": "", "line": 379, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nLine 104: class AtLeastOneRequiredArgumentError < InvocationError", "file": "lib/thor/error.rb", "symbol": "AtLeastOneRequiredArgumentError", "line": 104, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/command.rb\nLine 62: formatted_specific_usage.strip", "file": "lib/thor/command.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 208: end", "file": "spec/util_spec.rb", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 32: expect(parse(\"product\", \"title:string\", \"age:integer\")[\"string\"]).to eq(\"product\")", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 133: FileUtils.rm_rf(File.join(thor_root, (thor_yaml[name][:filename]).to_s))", "file": "lib/thor/runner.rb", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 272: end", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 272, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "How does the system handle cases where a command is called without any of its mandatory parameters?", "query": "required argument error", "file": "lib/thor/error.rb", "symbol": "AtLeastOneRequiredArgumentError", "line": 104, "lang": "en", "candidates": [{"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "How does the system handle cases where a command is called without any of its mandatory parameters?", "query": "required argument error", "file": "lib/thor/error.rb", "symbol": "AtLeastOneRequiredArgumentError", "line": 104, "lang": "en", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=123-146\nread version for detail", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=43-66\nread indent for detail", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=68-91\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=329-352\nread class_option for detail", "file": "lib/thor/base.rb", "symbol": "class_option", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=138-161\nread say_status for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "say_status", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=145-168\nread register_klass_file for detail", "file": "lib/thor/base.rb", "symbol": "register_klass_file", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=709-732\nread find_and_refresh_command for detail", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=24-47\nread UndefinedCommandError for detail", "file": "lib/thor/error.rb", "symbol": "UndefinedCommandError", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=104-127\nread AtLeastOneRequiredArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "AtLeastOneRequiredArgumentError", "line": 104, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=460-483\nread method_exclusive_option_names for detail", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=307-330\nread class_options for detail", "file": "lib/thor/base.rb", "symbol": "class_options", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=6-29\nread Thor for detail", "file": "lib/thor/shell/color.rb", "symbol": "Thor", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=20-43\nread Error for detail", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=265-288\nread optional_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "optional_arg", "line": 265, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=110-133\nread G for detail", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=221-244\nread command_exists? for detail", "file": "lib/thor/group.rb", "symbol": "command_exists?", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=8-31\nread encoding for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=48-71\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "trouve la méthode qui lance l'insertion dans un fichier en capturant la sortie standard", "query": "capture stdout insert", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/invoke.thor\nLine 92: p 5", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 21: def revoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 304: ENV[\"THOR_DEBUG\"] = \"1\"", "file": "spec/base_spec.rb", "symbol": "", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 23: def invoke_with_a_bang!(*args, &block)", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/runner.rb\nLine 179: group = options[:group] || \"standard\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 72: def replace(other_hash)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 13: puts \"expected #{SOME_STRING.encoding.name} to equal UTF-8\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 31: @_invocations.values.flatten.map(&:to_sym)", "file": "lib/thor/invocation.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 85: ask_filtered(statement, color, options)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 329: def subcommand(subcommand, subcommand_class)", "file": "lib/thor.rb", "symbol": "", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 54: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 29: @error = error", "file": "lib/thor/error.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 77: # inside \"bar\" do", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 22: desc \"four\", \"invoke four\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 42: require \"fileutils\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 107: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 62: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 9: true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 31: # Add shell to initialize config values.", "file": "lib/thor/shell.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 49: check_requirement!", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 6: option \"--not_help\", :type => :boolean", "file": "spec/fixtures/help.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 72: # Returns the thor classes declared inside the given class.", "file": "lib/thor/util.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 68: when Hash, Array, String", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 19: describe \"#parse\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "trouve la méthode qui lance l'insertion dans un fichier en capturant la sortie standard", "query": "capture stdout insert", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lang": "fr", "candidates": [{"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\ndefines invoke_with_a_bang!", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_link_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nsibling in spec/actions", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "trouve la méthode qui lance l'insertion dans un fichier en capturant la sortie standard", "query": "capture stdout insert", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lang": "fr", "candidates": [{"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "trouve la méthode qui lance l'insertion dans un fichier en capturant la sortie standard", "query": "capture stdout insert", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/base.rb lines=307-330\nread class_options for detail", "file": "lib/thor/base.rb", "symbol": "class_options", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=104-127\nread camel_case for detail", "file": "lib/thor/util.rb", "symbol": "camel_case", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=120-143\nread I for detail", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=168-191\nread check_unknown! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=170-193\nread prepend_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "prepend_to_file", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=27-50\nread revoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=811-834\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 811, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoker", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=256-279\nread parse_boolean for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_boolean", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=86-109\nread force_or_skip_or_conflict for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_or_skip_or_conflict", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=257-280\nread one_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "one_arg", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=8-31\nread initialize for detail", "file": "spec/rake_compat_spec.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoker", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/parser/argument_spec.rb lines=5-28\nread argument for detail", "file": "spec/parser/argument_spec.rb", "symbol": "argument", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=167-190\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=541-564\nread no_commands? for detail", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=31-54\nread file for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "I'm looking for the method that serves as the primary hook for command execution during the startup sequence. Where is the abstract interface defined that requires subclasses to implement the routing logic?", "query": "hook invoked start", "file": "lib/thor/base.rb", "symbol": "dispatch", "line": 793, "lang": "en", "candidates": [{"text": "File: lib/thor/actions/create_link.rb\nLine 27: class CreateLink < CreateFile #:nodoc:", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 228: def dispatch(command, given_args, given_opts, config) #:nodoc:", "file": "lib/thor/group.rb", "symbol": "", "line": 228, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 13: else", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 251: # Returns a string that has had any glob characters escaped.", "file": "lib/thor/util.rb", "symbol": "", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 38: expect(shell.set_color(\"\", [:nocolor])).to eq \"<htmlcontent>\"", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 1: require \"thor\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 22: stdout.printf(\"%-#{colwidth}s\", value)", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 2: include Thor::Actions", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 793: def dispatch(command, given_args, given_opts, config) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "dispatch", "line": 793, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/group_spec.rb\nLine 25: expect do", "file": "spec/group_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 223: context \"when stop_on_unknown is true\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 196: yaml_file = File.join(thor_root, \"thor.yml\")", "file": "lib/thor/runner.rb", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 292: raise Error, \"No Thor commands available\" if klasses.empty?", "file": "lib/thor/runner.rb", "symbol": "", "line": 292, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 116: klass.send(:dispatch, command, args, opts, config) do |instance|", "file": "lib/thor/invocation.rb", "symbol": "", "line": 116, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 486: Usage: \"thor scripts:arities:optional_arg [ARG]\"'", "file": "spec/thor_spec.rb", "symbol": "", "line": 486, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 14: puts \"expected #{SOME_STRING.encoding.name} to equal UTF-8\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 11: def build", "file": "Thorfile", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 24: object = Struct.new(:namespace, :arguments).new(\"default:foo\", [])", "file": "spec/command_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 141: end", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 102: # and an optional command.", "file": "lib/thor/group.rb", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 505: def dispatch(meth, given_args, given_opts, config) #:nodoc:", "file": "lib/thor.rb", "symbol": "", "line": 505, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 238: ruby = alternate_ruby if linked_ruby == ruby_name || linked_ruby == ruby", "file": "lib/thor/util.rb", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 134: true", "file": "spec/fixtures/script.thor", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm looking for the method that serves as the primary hook for command execution during the startup sequence. Where is the abstract interface defined that requires subclasses to implement the routing logic?", "query": "hook invoked start", "file": "lib/thor/base.rb", "symbol": "dispatch", "line": 793, "lang": "en", "candidates": [{"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "I'm looking for the method that serves as the primary hook for command execution during the startup sequence. Where is the abstract interface defined that requires subclasses to implement the routing logic?", "query": "hook invoked start", "file": "lib/thor/base.rb", "symbol": "dispatch", "line": 793, "lang": "en", "candidates": [{"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm looking for the method that serves as the primary hook for command execution during the startup sequence. Where is the abstract interface defined that requires subclasses to implement the routing logic?", "query": "hook invoked start", "file": "lib/thor/base.rb", "symbol": "dispatch", "line": 793, "lang": "en", "candidates": [{"text": "Next: read lib/thor/base.rb lines=793-816\nread dispatch for detail", "file": "lib/thor/base.rb", "symbol": "dispatch", "line": 793, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=478-501\nread disable_required_check for detail", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=67-90\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=161-184\nread class_options_help for detail", "file": "lib/thor/group.rb", "symbol": "class_options_help", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/group_spec.rb lines=223-246\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=35-58\nread identical? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "identical?", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=83-106\nread convert_key for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "convert_key", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=153-176\nread _retrieve_class_and_command for detail", "file": "lib/thor/invocation.rb", "symbol": "_retrieve_class_and_command", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=5-28\nread parse for detail", "file": "spec/parser/option_spec.rb", "symbol": "parse", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=97-120\nread parse_hash for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_hash", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=6-29\nread available? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=239-262\nread inject_into_module for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_module", "line": 239, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I need to figure out how to quickly trigger the argument processing logic without manually instantiating the parser class every time. Is there a class-level method that handles the instantiation and the parsing in one go?", "query": "class parse args", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lang": "en", "candidates": [{"text": "File: spec/fixtures/group.thor\nLine 29: FOO", "file": "spec/fixtures/group.thor", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 5: def parse(key, value)", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 92: cell << \" \" * @padding if options[:borders]", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 97: context \"with source path relative to destination\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 98: say_status(:unchanged, warning: WARNINGS[:unchanged_no_flag], color: :red)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 75: # Let Thor::Options parse the options first, so it can remove", "file": "lib/thor/base.rb", "symbol": "", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 9: def encoding", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 5: # invocations to be done at the class method, which are not available to Thor", "file": "lib/thor/group.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 33: @stop_on_unknown = stop_on_unknown", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 30: object = Struct.new(:namespace, :arguments).new(\"foo\", [Thor::Argument.new(:bar, options)])", "file": "spec/command_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 10: #", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 73: super(other_hash)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 657: It even has two paragraphs.", "file": "spec/thor_spec.rb", "symbol": "", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 18: # This parse quick options given as method_options. It makes several", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 71: # supplied to B. This allows lazy parse of options. Let's suppose you have", "file": "lib/thor/invocation.rb", "symbol": "", "line": 71, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nLine 11: opts[key] = Thor::Option.parse(key, value) unless value.is_a?(Thor::Option)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nLine 13: unix? ? dynamic_width : DEFAULT_TERMINAL_WIDTH", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 27: let(:shell) { Thor::Shell::Basic.new }", "file": "spec/tree_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 9: def encoding", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 43: ON_MAGENTA = \"background-color: magenta\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 15: def parse(*args)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 13: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 19: def self.parse(*args)", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 34: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I need to figure out how to quickly trigger the argument processing logic without manually instantiating the parser class every time. Is there a class-level method that handles the instantiation and the parsing in one go?", "query": "class parse args", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lang": "en", "candidates": [{"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I need to figure out how to quickly trigger the argument processing logic without manually instantiating the parser class every time. Is there a class-level method that handles the instantiation and the parsing in one go?", "query": "class parse args", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lang": "en", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=8-31\nread action for detail", "file": "spec/actions_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=10-33\nread create_file for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=15-38\nread readline for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "readline", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=14-37\nread print for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=26-49\nread squirrel for detail", "file": "spec/register_spec.rb", "symbol": "squirrel", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell.rb lines=23-46\nread Shell for detail", "file": "lib/thor/shell.rb", "symbol": "Shell", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=40-63\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=101-124\nread ExclusiveArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "ExclusiveArgumentError", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=85-108\nread SubcommandWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "SubcommandWithDefault", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=108-131\nread long_description_unwrapped for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description_unwrapped", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=827-850\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 827, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=66-89\nread PluginWithDefaultMultipleArguments for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefaultMultipleArguments", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/parser/options_spec.rb lines=16-39\nread parse for detail", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=76-99\nread call_myself_with_wrong_arity for detail", "file": "spec/fixtures/script.thor", "symbol": "call_myself_with_wrong_arity", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=172-195\nread animal for detail", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=15-38\nread entered? for detail", "file": "lib/thor/nested_context.rb", "symbol": "entered?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "find the test case that contains an empty method definition", "query": "def empty", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lang": "en", "candidates": [{"text": "File: lib/thor/actions/empty_directory.rb\nLine 110: # Receives a hash of options and just execute the block if some", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 22: class_option :simple, :type => :numeric, :aliases => 'z'", "file": "spec/fixtures/group.thor", "symbol": "", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 290: /\\A#{value}\\z/i", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 290, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nLine 116: class_option :defined, :type => :boolean, :default => true", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 124: expect(MyCounter.start(%w(1 2 -z 3))[4]).to eq(3)", "file": "spec/base_spec.rb", "symbol": "", "line": 124, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 10: base = MyCounter.new [1, 2], {}, shell: shell", "file": "spec/shell_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 46: error_messages << check_for_extra_spaces(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 41: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 8: desc \"describe NAME\", \"say that someone is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 32: end", "file": "spec/command_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 25: when \"+\"", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 1: require_relative \"column_printer\"", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 76: # Convert to a Hash with String keys.", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 60: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 101: else", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 16: # rb-readline does not allow Readline.completion_proc= to receive nil.", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 194: config[:before] = /\\z/", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 194, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nLine 14: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 30: config[:after] = /\\z/ unless config.key?(:before) || config.key?(:after)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 384: def diff_tool #:nodoc:", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 384, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 33: def z; end", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 196: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 4: SHORT_RE = /^(-[a-z])$/i", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find the test case that contains an empty method definition", "query": "def empty", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lang": "en", "candidates": [{"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nsibling in spec", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\ndefines z", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/quality_spec.rb\nsibling in spec", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nsibling in spec", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nsibling in spec", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "find the test case that contains an empty method definition", "query": "def empty", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find the test case that contains an empty method definition", "query": "def empty", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lang": "en", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=326-349\nread unix? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "unix?", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=4-27\nread shell for detail", "file": "spec/sort_spec.rb", "symbol": "shell", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=434-457\nread disable_required_check! for detail", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/util_spec.rb lines=4-27\nread clear_user_home! for detail", "file": "spec/util_spec.rb", "symbol": "clear_user_home!", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=32-55\nread echo? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "echo?", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=371-394\nread capture for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "capture", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=1-24\nread Thor for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=18-41\nread subcommand1 for detail", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/options.rb lines=274-297\nread parse_peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_peek", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=47-70\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=78-101\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=9-32\nread empty_directory for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "empty_directory", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=65-88\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=28-51\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=325-348\nread _shared_configuration for detail", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=35-58\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=27-50\nread included for detail", "file": "lib/thor/rake_compat.rb", "symbol": "included", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=107-130\nread revoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "revoke!", "line": 107, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "テスト用のスクリプトで、オプションを取得するためのメソッドがどこに定義されているか確認したいです。Thorのベースクラスから引き継いでいるものですか?", "query": "thor options method", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 167, "lang": "ja", "candidates": [{"text": "File: spec/parser/argument_spec.rb\nLine 41: expect(argument(:foo, type: :numeric).usage).to eq(\"N\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 229: end", "file": "spec/group_spec.rb", "symbol": "", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 312: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 312, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 3: require \"tempfile\"", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 167: def zoo", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 167, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/color_spec.rb\nLine 93: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 28: expect(content).to match(/zoo\\s+# zoo around/m)", "file": "spec/runner_spec.rb", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 345: expect(MyScript.command_exists?(\"zoo\")).to be true", "file": "spec/thor_spec.rb", "symbol": "", "line": 345, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nLine 80: end", "file": "lib/thor/error.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 42: def formatted_usage(klass, namespace = true, subcommand = false)", "file": "lib/thor/command.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 62: styles << BOLD if bold", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 3: class ExitStatus < Thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 123: \"zoo\",", "file": "spec/register_spec.rb", "symbol": "", "line": 123, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 171: end", "file": "lib/thor.rb", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 268: expect(action(:apply, @file)).to match(/cool padding/)", "file": "spec/actions_spec.rb", "symbol": "", "line": 268, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 37: it \"snake-cases component strings\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 127: elsif flag == /\\z/", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 12: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 196: yaml_file = File.join(thor_root, \"thor.yml\")", "file": "lib/thor/runner.rb", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 59: expect(Scripts::MyScript.start(%w(zoo my_special_param --param=normal_param))).to eq(\"my_special_param\")", "file": "spec/base_spec.rb", "symbol": "", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nLine 37: load File.join(File.dirname(__FILE__), \"fixtures\", \"subcommand.thor\")", "file": "spec/helper.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 224: return false", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 31: # Add shell to initialize config values.", "file": "lib/thor/shell.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 43: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "テスト用のスクリプトで、オプションを取得するためのメソッドがどこに定義されているか確認したいです。Thorのベースクラスから引き継いでいるものですか?", "query": "thor options method", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 167, "lang": "ja", "candidates": [{"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines zoo", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "テスト用のスクリプトで、オプションを取得するためのメソッドがどこに定義されているか確認したいです。Thorのベースクラスから引き継いでいるものですか?", "query": "thor options method", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 167, "lang": "ja", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=347-370\nread ask_filtered for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_filtered", "line": 347, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=12-35\nread initialize for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "initialize", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=110-133\nread invoke_from_option for detail", "file": "lib/thor/group.rb", "symbol": "invoke_from_option", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=25-48\nread silence! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "silence!", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=1-24\nread Thor for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=138-161\nread say_status for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "say_status", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=72-95\nread format_cell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "format_cell", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=64-87\nread reverse_merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=21-44\nread revoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=424-447\nread stop_on_unknown_option? for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=167-190\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 167, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=482-505\nread print_exclusive_options for detail", "file": "lib/thor.rb", "symbol": "print_exclusive_options", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=546-569\nread banner for detail", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=40-63\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 40, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "suche die leere testmethode", "query": "empty test method", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lang": "de", "candidates": [{"text": "File: lib/thor/base.rb\nLine 703: end", "file": "lib/thor/base.rb", "symbol": "", "line": 703, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 101: class ExclusiveArgumentError < InvocationError", "file": "lib/thor/error.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 169: # options are added to group_options hash. Options that already exists", "file": "lib/thor/group.rb", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 131: expect(my_script.start(%w[exec command --mode z again -- --verbose more])).to eq [{}, %w[command --mode z again -- --verbose more]]", "file": "spec/thor_spec.rb", "symbol": "", "line": 131, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 40: @invocations ||= from_superclass(:invocations, {})", "file": "lib/thor/group.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 30: config[:after] = /\\z/ unless config.key?(:before) || config.key?(:after)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 132: end", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 20: out = capture(:stdout) { shell.say \"Wow! Now we have colors! \", :green }", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 194: config[:before] = /\\z/", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 194, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 372: invoke! \"doc/README\", \"more content\\n\", before: /\\z/", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 372, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 76: #", "file": "lib/thor/shell.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 827: def unknown(*args)", "file": "spec/thor_spec.rb", "symbol": "", "line": 827, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 125: expect(@action.send(:convert_encoded_instructions, \"%some.name%.txt\")).to eq(\"%some.name%.txt\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 46: error_messages << check_for_extra_spaces(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 124: expect(MyCounter.start(%w(1 2 -z 3))[4]).to eq(3)", "file": "spec/base_spec.rb", "symbol": "", "line": 124, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nLine 31: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/├─ command2/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 55: else", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 15: # Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 14: def z; end", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/group.thor\nLine 22: class_option :simple, :type => :numeric, :aliases => 'z'", "file": "spec/fixtures/group.thor", "symbol": "", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 48: end", "file": "spec/util_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 18: # Don't output trailing spaces when printing the last column", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 53: name = name.to_s", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 51: # insert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "suche die leere testmethode", "query": "empty test method", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lang": "de", "candidates": [{"text": "File: spec/shell_spec.rb\nsibling in spec", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nsibling in spec", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\ndefines z", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nsibling in spec", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nsibling in spec", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "suche die leere testmethode", "query": "empty test method", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lang": "de", "candidates": [{"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "suche die leere testmethode", "query": "empty test method", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lang": "de", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=53-76\nread remaining for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "remaining", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=4-27\nread shell for detail", "file": "spec/sort_spec.rb", "symbol": "shell", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=692-715\nread build_command_tree for detail", "file": "lib/thor.rb", "symbol": "build_command_tree", "line": 692, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=68-91\nread ClearCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "ClearCounter", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=424-447\nread stop_on_unknown_option? for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=384-407\nread diff_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "diff_tool", "line": 384, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=127-150\nread J for detail", "file": "spec/fixtures/invoke.thor", "symbol": "J", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=501-524\nread remove_command for detail", "file": "lib/thor/base.rb", "symbol": "remove_command", "line": 501, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=243-266\nread ChildDefault for detail", "file": "spec/fixtures/script.thor", "symbol": "ChildDefault", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=700-723\nread build_options for detail", "file": "lib/thor/base.rb", "symbol": "build_options", "line": 700, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=161-184\nread initialize for detail", "file": "spec/fixtures/script.thor", "symbol": "initialize", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=10-33\nread describe for detail", "file": "spec/fixtures/command.thor", "symbol": "describe", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=1-24\nread TestSubcommands for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "TestSubcommands", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=880-903\nread no_arg for detail", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=350-373\nread remove_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "remove_file", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=285-308\nread run_ruby_script for detail", "file": "lib/thor/actions.rb", "symbol": "run_ruby_script", "line": 285, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=167-190\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=35-58\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "入力された文字列からコマンドの候補を絞り込むロジックを探して", "query": "command substring matching", "file": "lib/thor.rb", "symbol": "find_command_possibilities", "line": 634, "lang": "ja", "candidates": [{"text": "File: Thorfile\nLine 7: include Thor::RakeCompat", "file": "Thorfile", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 213: def globs_for(path)", "file": "lib/thor/util.rb", "symbol": "", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 634: def find_command_possibilities(meth)", "file": "lib/thor.rb", "symbol": "find_command_possibilities", "line": 634, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/exit_status.thor\nLine 18: ExitStatus.start(ARGV)", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 132: expect(content).to match(%r{create doc/README})", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 2: require \"helper\"", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 5: script_path= \"#{gem_dir}/spec/fixtures/exit_status.thor\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 29: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 41: #", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 240: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 240, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 192: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 23: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 1: Bundler.require :development, :default", "file": "spec/fixtures/help.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 16: rescue", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 149: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 21: it \"sorts them lexicographillay\" do", "file": "spec/sort_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 13: w.close", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 7: class Test < Thor", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 7: # config:: give :verbose => false to not log the status.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 21: require \"webmock/rspec\"", "file": "spec/helper.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 92: #", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 259: break unless thorfiles.empty?", "file": "lib/thor/runner.rb", "symbol": "", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 185: invoke_with_a_bang! \"doc/README\", \"more content\\n\", before: \"__end__\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "入力された文字列からコマンドの候補を絞り込むロジックを探して", "query": "command substring matching", "file": "lib/thor.rb", "symbol": "find_command_possibilities", "line": 634, "lang": "ja", "candidates": [{"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "入力された文字列からコマンドの候補を絞り込むロジックを探して", "query": "command substring matching", "file": "lib/thor.rb", "symbol": "find_command_possibilities", "line": 634, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "入力された文字列からコマンドの候補を絞り込むロジックを探して", "query": "command substring matching", "file": "lib/thor.rb", "symbol": "find_command_possibilities", "line": 634, "lang": "ja", "candidates": [{"text": "Next: read spec/actions/create_file_spec.rb lines=10-33\nread create_file for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=75-98\nread execute! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "execute!", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=634-657\nread find_command_possibilities for detail", "file": "lib/thor.rb", "symbol": "find_command_possibilities", "line": 634, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/command.thor lines=3-26\nread Amazing for detail", "file": "spec/fixtures/command.thor", "symbol": "Amazing", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=103-126\nread truncate for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "truncate", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=163-186\nread attr_accessor for detail", "file": "lib/thor/base.rb", "symbol": "attr_accessor", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=25-48\nread pop for detail", "file": "lib/thor/nested_context.rb", "symbol": "pop", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=367-390\nread concat for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "concat", "line": 367, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=173-196\nread check_unknown_options for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=73-96\nread on_conflict_behavior for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "on_conflict_behavior", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=18-41\nread subcommand1 for detail", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=43-66\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=53-76\nread remaining for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "remaining", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=172-195\nread get_options_from_invocations for detail", "file": "lib/thor/group.rb", "symbol": "get_options_from_invocations", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=313-336\nread show_diff for detail", "file": "lib/thor/shell/basic.rb", "symbol": "show_diff", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=219-242\nread strict_args_position for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position", "line": 219, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "trouve la méthode qui accepte un seul paramètre dans les fichiers de test", "query": "one arg spec", "file": "spec/fixtures/script.thor", "symbol": "one_arg", "line": 257, "lang": "fr", "candidates": [{"text": "File: spec/thor_spec.rb\nLine 477: arity_asserter.call %w(one_arg), 'ERROR: \"thor one_arg\" was called with no arguments", "file": "spec/thor_spec.rb", "symbol": "", "line": 477, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 14: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 182: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 78: end", "file": "spec/command_spec.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 4: DEFAULT_TERMINAL_WIDTH = 80", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 15: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 244: end", "file": "lib/thor/group.rb", "symbol": "", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 86: return unless destination", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 85: end", "file": "spec/helper.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 22: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 19: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 61: # end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 430: # to work, like help.", "file": "lib/thor.rb", "symbol": "", "line": 430, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 238: describe \"#subclasses\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 128: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 24: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 5: def print_opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 32: describe \"#set_color\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 257: def one_arg(arg)", "file": "spec/fixtures/script.thor", "symbol": "one_arg", "line": 257, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 35: @base = base", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 29: # Set the terminal's foreground HTML color to white.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 624: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 624, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 14: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "trouve la méthode qui accepte un seul paramètre dans les fichiers de test", "query": "one arg spec", "file": "spec/fixtures/script.thor", "symbol": "one_arg", "line": 257, "lang": "fr", "candidates": [{"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines one_arg", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "trouve la méthode qui accepte un seul paramètre dans les fichiers de test", "query": "one arg spec", "file": "spec/fixtures/script.thor", "symbol": "one_arg", "line": 257, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=172-195\nread validate_enum_value! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "validate_enum_value!", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/base_spec.rb lines=4-27\nread Amazing for detail", "file": "spec/base_spec.rb", "symbol": "Amazing", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=117-140\nread template for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=7-30\nread print for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=385-408\nread actually_gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "actually_gsub_file", "line": 385, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=64-87\nread invoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=282-305\nread stderr for detail", "file": "lib/thor/shell/basic.rb", "symbol": "stderr", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=100-123\nread private_method? for detail", "file": "lib/thor/command.rb", "symbol": "private_method?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=56-79\nread revoke! for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "revoke!", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=259-282\nread baseclass for detail", "file": "lib/thor/group.rb", "symbol": "baseclass", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=257-280\nread one_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "one_arg", "line": 257, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=190-213\nread allow_incompatible_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "allow_incompatible_default_type!", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=77-100\nread required_arguments_for for detail", "file": "lib/thor/command.rb", "symbol": "required_arguments_for", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=78-101\nread long_desc for detail", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Je vérifie comment le groupe gère la méthode fail dans les tests. Je m'attends à ce que respond_to retourne vrai.", "query": "group fail respond", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 89, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 101: base.shell.file_collision(destination) { render }", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 543: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 543, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 13: failing_lines = []", "file": "spec/quality_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 225: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 6: def load_thorfile(filename)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 11: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 89: def four", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 89, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/options_spec.rb\nLine 54: it \"accepts arrays\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 111: end.to raise_error(Thor::AtLeastOneRequiredArgumentError, \"Not found at least one of required options '--three', '--four'\")", "file": "spec/base_spec.rb", "symbol": "", "line": 111, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 135: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 232: # directory of your system. If at any time we find a Thor file, we stop.", "file": "lib/thor/runner.rb", "symbol": "", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 613: def normalize_command_name(meth) #:nodoc:", "file": "lib/thor.rb", "symbol": "", "line": 613, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 273: #", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 26: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 22: desc \"four\", \"invoke four\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 31: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 296: class_option :four", "file": "spec/fixtures/script.thor", "symbol": "", "line": 296, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 5: SOME_STRING = \"Some ������\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 602: expect(content).to match(/Required At Least One:\\n\\s+--three\\s+--four\\n/)", "file": "spec/thor_spec.rb", "symbol": "", "line": 602, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 68: self.class::VALID_TYPES.include?(type.to_sym)", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 61: # Raised when a command was found, but not invoked properly.", "file": "lib/thor/error.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 277: with_padding do", "file": "lib/thor/group.rb", "symbol": "", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 287: # it shows a table with information extracted from the yaml file.", "file": "lib/thor/runner.rb", "symbol": "", "line": 287, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je vérifie comment le groupe gère la méthode fail dans les tests. Je m'attends à ce que respond_to retourne vrai.", "query": "group fail respond", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 89, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\ndefines four", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je vérifie comment le groupe gère la méthode fail dans les tests. Je m'attends à ce que respond_to retourne vrai.", "query": "group fail respond", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 89, "lang": "fr", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=89-112\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 89, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/subcommand_spec.rb lines=50-73\nread foo for detail", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=4-27\nread TreeApp for detail", "file": "spec/tree_spec.rb", "symbol": "TreeApp", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=126-149\nread validate! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate!", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=199-222\nread printable_commands for detail", "file": "lib/thor/group.rb", "symbol": "printable_commands", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=83-106\nread convert_key for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "convert_key", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=74-97\nread thor_classes_in for detail", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=4-27\nread shell for detail", "file": "spec/sort_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=27-50\nread included for detail", "file": "lib/thor/rake_compat.rb", "symbol": "included", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=4-27\nread EncodingOther for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "EncodingOther", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=60-83\nread invoke! for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=583-606\nread start for detail", "file": "lib/thor/base.rb", "symbol": "start", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=154-177\nread ClassMethods for detail", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=304-327\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "생성될 대상 파일이 렌더링된 결과와 내용이 똑같은지 확인하는 로직이 어디 있어?", "query": "identical file content", "file": "lib/thor/actions/create_link.rb", "symbol": "identical?", "line": 35, "lang": "ko", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nLine 156: # Check if the peek is included in enum if enum is provided. Otherwise raises an error.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 6: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 15: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 528: end", "file": "lib/thor.rb", "symbol": "", "line": 528, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 80: match << \" \" << klass.arguments.map(&:usage).compact.join(\" \")", "file": "lib/thor/command.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 426: expect(options).to eq(\"force\" => true, \"param\" => \"feathers\")", "file": "spec/thor_spec.rb", "symbol": "", "line": 426, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 66: base.inside(\"foo\", pretend: true) do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 169: it \"generates a file clash\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 39: base.inside(\"doc\") do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 701: options.each do |key, value|", "file": "lib/thor/base.rb", "symbol": "", "line": 701, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 17: array.each_with_index do |value, index|", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 20: # create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 25: desc \"squirrel\", \"All of secret squirrel's secrets\"", "file": "spec/register_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 199: expect(on_red).to eq(\"\\e[37m\\e[41mhi!\\e[0m\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 133: warning", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 13: end.to raise_error(ArgumentError, \"Argument name can't be nil.\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 29: describe \"#invoke!\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 3: $VERBOSE = true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 35: def identical?", "file": "lib/thor/actions/create_link.rb", "symbol": "identical?", "line": 35, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/invoke.thor\nLine 102: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 20: capture(:stdout) { invoker.directory(*args, &block) }", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 96: self.options = opts.parse(array_options)", "file": "lib/thor/base.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 29: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 19: if ((((index + 1) % (Terminal.terminal_width / colwidth))).zero? && !index.zero?) || index + 1 == array.length", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "생성될 대상 파일이 렌더링된 결과와 내용이 똑같은지 확인하는 로직이 어디 있어?", "query": "identical file content", "file": "lib/thor/actions/create_link.rb", "symbol": "identical?", "line": 35, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "생성될 대상 파일이 렌더링된 결과와 내용이 똑같은지 확인하는 로직이 어디 있어?", "query": "identical file content", "file": "lib/thor/actions/create_link.rb", "symbol": "identical?", "line": 35, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "생성될 대상 파일이 렌더링된 결과와 내용이 똑같은지 확인하는 로직이 어디 있어?", "query": "identical file content", "file": "lib/thor/actions/create_link.rb", "symbol": "identical?", "line": 35, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/shell/table_printer.rb lines=96-119\nread print_border_separator for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print_border_separator", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=30-53\nread current_command_chain for detail", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=41-64\nread slice for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "slice", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=213-236\nread globs_for for detail", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=434-457\nread disable_required_check! for detail", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=253-276\nread zero_args for detail", "file": "spec/fixtures/script.thor", "symbol": "zero_args", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=27-50\nread source_root for detail", "file": "lib/thor/actions.rb", "symbol": "source_root", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/util_spec.rb lines=4-27\nread clear_user_home! for detail", "file": "spec/util_spec.rb", "symbol": "clear_user_home!", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=35-58\nread identical? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "identical?", "line": 35, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=173-196\nread check_unknown_options for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=66-89\nread method_exclusive_option_names for detail", "file": "lib/thor/command.rb", "symbol": "method_exclusive_option_names", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=3-26\nread ExitStatus for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ExitStatus", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=98-121\nread WhinyGenerator for detail", "file": "spec/fixtures/group.thor", "symbol": "WhinyGenerator", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=100-123\nread force_on_collision? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_on_collision?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=541-564\nread no_commands? for detail", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=40-63\nread invoke! for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=2-25\nread NestedContext for detail", "file": "lib/thor/nested_context.rb", "symbol": "NestedContext", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Check if the logic for determining whether a command should run in dry-run mode is correctly checking the options passed to the base class.", "query": "options pretend", "file": "lib/thor/actions/empty_directory.rb", "symbol": "pretend?", "line": 67, "lang": "en", "candidates": [{"text": "File: lib/thor/util.rb\nLine 160: if debug", "file": "lib/thor/util.rb", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 6: def self.readline(prompt, options = {})", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 24: argument(:command, type: :string, default: \"bar\", required: true)", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 104: # directory where the script was invoked and expanded.", "file": "lib/thor/actions.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 67: def pretend?", "file": "lib/thor/actions/empty_directory.rb", "symbol": "pretend?", "line": 67, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/runner_spec.rb\nLine 153: expect(capture(:stdout) { Thor::Runner.start }).to match(/amazing:describe NAME/)", "file": "spec/runner_spec.rb", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 185: value = value.to_s", "file": "lib/thor/group.rb", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 108: end", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 67: it \"converts encoded instructions\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 23: expect(parse(\"name\", \"13\")[\"numeric\"]).to eq(13)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 75: expect(MyClassOptionScript.class_exclusive_option_names.size).to be(1)", "file": "spec/base_spec.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 21: puts \"HIPER MEGA SUPER\"", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 154: fireworks_output = capture(:stdout) { BoringVendorProvidedCLI.start(%w(exciting fireworks)) }", "file": "spec/register_spec.rb", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 95: runner.destination_root = \"/app\"", "file": "spec/actions_spec.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 61: self", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 81: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 298: shell.say \"Commands:\"", "file": "lib/thor.rb", "symbol": "", "line": 298, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 46: aliases: \"-w\",", "file": "spec/register_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 333: say \"\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 1: describe \"The library itself\" do", "file": "spec/quality_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 60: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 57: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 49: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 62: def source_root", "file": "spec/helper.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Check if the logic for determining whether a command should run in dry-run mode is correctly checking the options passed to the base class.", "query": "options pretend", "file": "lib/thor/actions/empty_directory.rb", "symbol": "pretend?", "line": 67, "lang": "en", "candidates": [{"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Check if the logic for determining whether a command should run in dry-run mode is correctly checking the options passed to the base class.", "query": "options pretend", "file": "lib/thor/actions/empty_directory.rb", "symbol": "pretend?", "line": 67, "lang": "en", "candidates": [{"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Check if the logic for determining whether a command should run in dry-run mode is correctly checking the options passed to the base class.", "query": "options pretend", "file": "lib/thor/actions/empty_directory.rb", "symbol": "pretend?", "line": 67, "lang": "en", "candidates": [{"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=55-78\nread inherited for detail", "file": "spec/fixtures/group.thor", "symbol": "inherited", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=121-144\nread handle_no_method_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_no_method_error?", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=91-114\nread required_options for detail", "file": "lib/thor/command.rb", "symbol": "required_options", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=192-215\nread append_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "append_to_file", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=686-709\nread tree for detail", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=149-172\nread remove_invocation for detail", "file": "lib/thor/group.rb", "symbol": "remove_invocation", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=67-90\nread pretend? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "pretend?", "line": 67, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=27-50\nread included for detail", "file": "lib/thor/rake_compat.rb", "symbol": "included", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=767-790\nread hi for detail", "file": "spec/thor_spec.rb", "symbol": "hi", "line": 767, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=393-416\nread class_at_least_one for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=377-400\nread merge_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge_tool", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=59-82\nread foo for detail", "file": "spec/fixtures/script.thor", "symbol": "foo", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=248-271\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=709-732\nread find_and_refresh_command for detail", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "zeig mir die beispielhaften aufrufe für die thor kommandos", "query": "thor task examples", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lang": "de", "candidates": [{"text": "File: lib/thor/actions/file_manipulation.rb\nLine 125: capturable_erb = CapturableERB.new(::File.binread(source), trim_mode: \"-\", eoutvar: \"@output_buffer\")", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 11: # available only in class methods invocations (i.e. in Thor::Group).", "file": "lib/thor/invocation.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 81: # given option named \"name\". A class option must be created before this", "file": "lib/thor/group.rb", "symbol": "", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 43: expect(Thor::DynamicCommand.new(\"command\").description).to eq(\"A dynamically-generated command\")", "file": "spec/command_spec.rb", "symbol": "", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\nLine 10: # config:: give :verbose => false to not log the status.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 3: # A hash with indifferent access and magic predicates.", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nLine 42: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 535: expect { parse(\"-n\", \"foo\") }.to raise_error(Thor::MalformattedArgumentError,", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 535, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 185: expect(File.exist?(File.join(destination_root, \"app{1}\", \"README\"))).to be false", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 628: # A flag that makes the process exit with status 1 if any error happens.", "file": "lib/thor/base.rb", "symbol": "", "line": 628, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 307: # flag:: the regexp or string used to decide which lines to uncomment", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 56: html_colors = colors.map { |color| lookup_color(color) }", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 4: class Thor", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 139: message = message.to_s.chomp.gsub(/(? false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\ndefines A", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "zeig mir die beispielhaften aufrufe für die thor kommandos", "query": "thor task examples", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lang": "de", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=206-229\nread PackageNameScript for detail", "file": "spec/fixtures/script.thor", "symbol": "PackageNameScript", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=23-46\nread rake_classes for detail", "file": "lib/thor/rake_compat.rb", "symbol": "rake_classes", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=192-215\nread thor_root for detail", "file": "lib/thor/util.rb", "symbol": "thor_root", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=281-304\nread Pear for detail", "file": "spec/fixtures/script.thor", "symbol": "Pear", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=35-58\nread identical? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "identical?", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=398-421\nread CapturableERB for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "CapturableERB", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=104-127\nread camel_case for detail", "file": "lib/thor/util.rb", "symbol": "camel_case", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=29-52\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=122-145\nread baz for detail", "file": "spec/fixtures/group.thor", "symbol": "baz", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=49-72\nread values_at for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "values_at", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=123-146\nread say_status for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "say_status", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=99-122\nread aliases_for_usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "aliases_for_usage", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "sincronizar opções de classe com opções de método ao adicionar", "query": "initialize_added", "file": "lib/thor.rb", "symbol": "initialize_added", "line": 594, "lang": "pt", "candidates": [{"text": "File: spec/fixtures/invoke.thor\nLine 78: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 104: warn \"[Thor] Calling invoke() without argument is deprecated. Please use invoke_all instead.\\n#{caller.join(\"\\n\")}\"", "file": "lib/thor/invocation.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 37: # Stores invocations for this class merging with superclass values.", "file": "lib/thor/group.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 21: shell.ask \"Is this green?\", :green, limited_to: %w(Yes No Maybe)", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 16: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 34: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 41: @diff_lcs_loaded = begin", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 149: on_red = shell.set_color \"hi!\", :white, :on_red", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 108: invoke! \"doc/README\", before: /(__end__)/ do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 21: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 29: expect(Thor::LineEditor).to receive(:readline).with(\"Is this green? [Yes, No, Maybe] \", anything).and_return(\"Yes\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 198: ensure", "file": "spec/register_spec.rb", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 1: class Thor", "file": "lib/thor/error.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 76: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 112: it \"removes the symbolic link of non-existent destination\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 8: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 41: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 105: it \"raise error when at least one of required options are not given\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 20: task :super do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 67: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 594: def initialize_added #:nodoc:", "file": "lib/thor.rb", "symbol": "initialize_added", "line": 594, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/base.rb\nLine 735: initialize_added", "file": "lib/thor/base.rb", "symbol": "", "line": 735, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "sincronizar opções de classe com opções de método ao adicionar", "query": "initialize_added", "file": "lib/thor.rb", "symbol": "initialize_added", "line": 594, "lang": "pt", "candidates": [{"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "sincronizar opções de classe com opções de método ao adicionar", "query": "initialize_added", "file": "lib/thor.rb", "symbol": "initialize_added", "line": 594, "lang": "pt", "candidates": [{"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "sincronizar opções de classe com opções de método ao adicionar", "query": "initialize_added", "file": "lib/thor.rb", "symbol": "initialize_added", "line": 594, "lang": "pt", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=127-150\nread ChildGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ChildGroup", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=153-176\nread what for detail", "file": "spec/fixtures/script.thor", "symbol": "what", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=61-84\nread world for detail", "file": "spec/fixtures/group.thor", "symbol": "world", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=6-29\nread Thor for detail", "file": "lib/thor/shell/color.rb", "symbol": "Thor", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=276-299\nread thorfiles_relevant_to for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=65-88\nread peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=206-229\nread PackageNameScript for detail", "file": "spec/fixtures/script.thor", "symbol": "PackageNameScript", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=147-170\nread replacement_present? for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=594-617\nread initialize_added for detail", "file": "lib/thor.rb", "symbol": "initialize_added", "line": 594, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=247-270\nread Arities for detail", "file": "spec/fixtures/script.thor", "symbol": "Arities", "line": 247, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=291-314\nread gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/options_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=67-90\nread pretend? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "pretend?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=767-790\nread hi for detail", "file": "spec/thor_spec.rb", "symbol": "hi", "line": 767, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=68-91\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=53-76\nread merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge", "line": 53, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "查找返回布尔值的测试固定数据脚本中的方法", "query": "spec fixtures true", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/exit_status.thor\nLine 8: desc \"error\", \"exit with a planned error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 345: expect(MyScript.command_exists?(\"zoo\")).to be true", "file": "spec/thor_spec.rb", "symbol": "", "line": 345, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nLine 60: end", "file": "spec/helper.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 79: usage.to_s.gsub(/^#{name}/) do |match|", "file": "lib/thor/command.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 123: \"zoo\",", "file": "spec/register_spec.rb", "symbol": "", "line": 123, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nLine 20: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 11: # destination:: Relative path to the destination root", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 59: expect(Scripts::MyScript.start(%w(zoo my_special_param --param=normal_param))).to eq(\"my_special_param\")", "file": "spec/base_spec.rb", "symbol": "", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 26: say \"+ #{diff.new_element.chomp}\", :green, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 289: invoker pretend: true", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 9: method_options :forcefully => :boolean", "file": "spec/fixtures/command.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 8: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 28: expect(content).to match(/zoo\\s+# zoo around/m)", "file": "spec/runner_spec.rb", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 149: if found", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 45: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 62: end", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 1: # frozen_string_literal: true", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 36: required? ? banner : \"[#{banner}]\"", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 43: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 83: # :on_white", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 35: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 19: counter += (word.length + 1)", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 240: expect(parse(:no_foo, :boolean).usage).not_to include(\"[--no-no-foo]\")", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 240, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 24: def zoo", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "查找返回布尔值的测试固定数据脚本中的方法", "query": "spec fixtures true", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines zoo", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "查找返回布尔值的测试固定数据脚本中的方法", "query": "spec fixtures true", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/util.rb lines=221-244\nread ruby_command for detail", "file": "lib/thor/util.rb", "symbol": "ruby_command", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=32-55\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=43-66\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=556-579\nread dynamic_command_class for detail", "file": "lib/thor.rb", "symbol": "dynamic_command_class", "line": 556, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=132-155\nread on_conflict_behavior for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_conflict_behavior", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=40-63\nread animal for detail", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor.rb lines=4-27\nread Thor for detail", "file": "lib/thor/line_editor.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=165-188\nread print_in_columns for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_in_columns", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=709-732\nread find_and_refresh_command for detail", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/basic_spec.rb lines=5-28\nread shell for detail", "file": "spec/shell/basic_spec.rb", "symbol": "shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/options.rb lines=230-253\nread switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch?", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=31-54\nread GroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "GroupPlugin", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/html.rb lines=9-32\nread HTML for detail", "file": "lib/thor/shell/html.rb", "symbol": "HTML", "line": 9, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "지정된 경로의 파일을 읽어서 샌드박스 환경 내에서 실행해 주는 로직이 어디에 정의되어 있나요? 네임스페이스 충돌을 방지하기 위해 evaluate 하는 부분도 같이 확인하고 싶습니다.", "query": "sandbox class_eval path", "file": "lib/thor/util.rb", "symbol": "load_thorfile", "line": 153, "lang": "ko", "candidates": [{"text": "File: lib/thor/parser/options.rb\nLine 202: # starts with a hyphen; the second is true if it is a registered switch.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 228: # option :one", "file": "lib/thor.rb", "symbol": "", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 510: # We're a subcommand and our first argument didn't match any of our", "file": "lib/thor.rb", "symbol": "", "line": 510, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 5: true", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 91: if replace!(/#{flag}/, content, config[:force])", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 20: expect(capture(:stdout) { Thor::Sandbox::EncodingImplicit.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 76: end", "file": "lib/thor/error.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 42: # MyScript.new [1.0], { :foo => :bar }, :shell => Thor::Shell::Basic.new", "file": "lib/thor/shell.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 35: describe \"#usage\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 6: def load_thorfile(filename)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nLine 21: puts \"HIPER MEGA SUPER\"", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 227: Thor::Util.load_thorfile(f, nil, options[:debug]) unless Thor::Base.subclass_files.keys.include?(File.expand_path(f))", "file": "lib/thor/runner.rb", "symbol": "", "line": 227, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 331: method_option :after1", "file": "spec/fixtures/script.thor", "symbol": "", "line": 331, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 77: $VERBOSE = old_verbose", "file": "spec/helper.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 166: expect(output).to include(\"hello\")", "file": "spec/register_spec.rb", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 75: error.unknown.flat_map { |unknown| spell_checker.correct(unknown) }.uniq.map(&:inspect)", "file": "lib/thor/error.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 142: protected", "file": "lib/thor/invocation.rb", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 119: it \"copies directories even if they are empty\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 6: require \"readline\"", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 32: # Load fixtures", "file": "spec/helper.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 141: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 153: def load_thorfile(path, content = nil, debug = false)", "file": "lib/thor/util.rb", "symbol": "load_thorfile", "line": 153, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "지정된 경로의 파일을 읽어서 샌드박스 환경 내에서 실행해 주는 로직이 어디에 정의되어 있나요? 네임스페이스 충돌을 방지하기 위해 evaluate 하는 부분도 같이 확인하고 싶습니다.", "query": "sandbox class_eval path", "file": "lib/thor/util.rb", "symbol": "load_thorfile", "line": 153, "lang": "ko", "candidates": [{"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "지정된 경로의 파일을 읽어서 샌드박스 환경 내에서 실행해 주는 로직이 어디에 정의되어 있나요? 네임스페이스 충돌을 방지하기 위해 evaluate 하는 부분도 같이 확인하고 싶습니다.", "query": "sandbox class_eval path", "file": "lib/thor/util.rb", "symbol": "load_thorfile", "line": 153, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "지정된 경로의 파일을 읽어서 샌드박스 환경 내에서 실행해 주는 로직이 어디에 정의되어 있나요? 네임스페이스 충돌을 방지하기 위해 evaluate 하는 부분도 같이 확인하고 싶습니다.", "query": "sandbox class_eval path", "file": "lib/thor/util.rb", "symbol": "load_thorfile", "line": 153, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/util.rb lines=4-27\nread Sandbox for detail", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=216-239\nread apply for detail", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=607-630\nread public_command for detail", "file": "lib/thor/base.rb", "symbol": "public_command", "line": 607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=17-40\nread Util for detail", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=100-123\nread private_method? for detail", "file": "lib/thor/command.rb", "symbol": "private_method?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=276-299\nread apple for detail", "file": "spec/fixtures/script.thor", "symbol": "apple", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=153-176\nread load_thorfile for detail", "file": "lib/thor/util.rb", "symbol": "load_thorfile", "line": 153, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=68-91\nread reverse_merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=93-116\nread method_missing for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "method_missing", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=167-190\nread installed for detail", "file": "lib/thor/runner.rb", "symbol": "installed", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=24-47\nread find_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_by_namespace", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=34-57\nread invoker for detail", "file": "spec/fixtures/invoke.thor", "symbol": "invoker", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=12-35\nread file for detail", "file": "spec/actions_spec.rb", "symbol": "file", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=83-106\nread usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "usage", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=153-176\nread what for detail", "file": "spec/fixtures/script.thor", "symbol": "what", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=4-27\nread command for detail", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=43-66\nread indent for detail", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=224-247\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 224, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "how is the exception object stored when this class is instantiated?", "query": "initialize error", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 28, "lang": "en", "candidates": [{"text": "File: spec/runner_spec.rb\nLine 223: path = File.join(Thor::Util.thor_root, Digest::SHA256.hexdigest(location + \"random\"))", "file": "spec/runner_spec.rb", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 8: def initialize(name, options = {})", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 9: def encoding", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 8: describe \"#initialize\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\nLine 32: # ==== Returns", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 547: command.formatted_usage(self, $thor_runner, subcommand).split(\"\\n\").map do |formatted_usage|", "file": "lib/thor.rb", "symbol": "", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 15: class SubApp < Thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 12: def initialize(hash = {})", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 168: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 19: p 3", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 117: invoke_from_option :defined", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 377: # class_at_least_one :one, :two", "file": "lib/thor/base.rb", "symbol": "", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 17: array.each_with_index do |value, index|", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 28: def initialize(error)", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 28, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/html_spec.rb\nLine 28: shell.say_status :conflict, \"README\", :red", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 9: def initialize(stdout, options = {})", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nLine 125: expect(invoke!).to match(%r{force doc/config\\.rb})", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 68: expect(capture(:stdout) do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 18: it \"has implicit UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 132: \"any content\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 161: def initialize(*args)", "file": "spec/fixtures/script.thor", "symbol": "", "line": 161, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 74: nil", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 42: #", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 25: describe \"#initialize\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 25, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "how is the exception object stored when this class is instantiated?", "query": "initialize error", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 28, "lang": "en", "candidates": [{"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "how is the exception object stored when this class is instantiated?", "query": "initialize error", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 28, "lang": "en", "candidates": [{"text": "Next: read lib/thor/rake_compat.rb lines=20-43\nread RakeCompat for detail", "file": "lib/thor/rake_compat.rb", "symbol": "RakeCompat", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=661-684\nread sort_commands! for detail", "file": "lib/thor.rb", "symbol": "sort_commands!", "line": 661, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=72-95\nread handle_no_command_error for detail", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=100-123\nread E for detail", "file": "spec/fixtures/invoke.thor", "symbol": "E", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=52-75\nread enum_to_s for detail", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=112-135\nread private_file_name for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=6-29\nread Thor for detail", "file": "lib/thor/shell/color.rb", "symbol": "Thor", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=26-49\nread spec for detail", "file": "Thorfile", "symbol": "spec", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=322-345\nread quiet? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=24-47\nread UndefinedCommandError for detail", "file": "lib/thor/error.rb", "symbol": "UndefinedCommandError", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=20-43\nread Error for detail", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=55-78\nread inherited for detail", "file": "spec/fixtures/group.thor", "symbol": "inherited", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=28-51\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 28, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "引数の初期化とバリデーションを行う処理を探して", "query": "argument initialize validation", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lang": "ja", "candidates": [{"text": "File: lib/thor/actions/create_file.rb\nLine 35: def initialize(base, destination, data, config = {})", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nLine 411: it \"will prefer 'no-opt' variant over inverting 'opt' if explicitly set\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 411, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 536: \"Expected numeric value for '-n'; got \\\"foo\\\"\")", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 536, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 24: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 69: def initialize(base, destination, data, config)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nLine 254: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 68: expect(@content).to match(/my_counter N \\[N\\]/)", "file": "spec/group_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 110: true", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 38: load File.join(File.dirname(__FILE__), \"fixtures\", \"command.thor\")", "file": "spec/helper.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 8: def initialize(name, options = {})", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 72: def replace(other_hash)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 9: true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 55: def a; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 73: protected", "file": "lib/thor/shell.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 45: destination_path = File.join(destination_root, \"doc/config.rb\")", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 23: expect(thor_command(\"error\")).to eq(1)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 3: def initialize", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nLine 18: require \"rdoc\"", "file": "spec/helper.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 7: def initialize(name, options = {})", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 29: ENV[\"THOR_SHELL\"] = \"TestShell\"", "file": "spec/shell_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 19: def invoke!(*args, &block)", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 102: end", "file": "lib/thor/command.rb", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 5: def initialize(name, description, long_description, wrap_long_description, usage, options = nil, options_relation = nil)", "file": "lib/thor/command.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 72: def initialize(args = [], options = {}, config = {})", "file": "lib/thor/actions.rb", "symbol": "", "line": 72, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "引数の初期化とバリデーションを行う処理を探して", "query": "argument initialize validation", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lang": "ja", "candidates": [{"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\ndefines initialize", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "引数の初期化とバリデーションを行う処理を探して", "query": "argument initialize validation", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "引数の初期化とバリデーションを行う処理を探して", "query": "argument initialize validation", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=26-49\nread spec for detail", "file": "Thorfile", "symbol": "spec", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=827-850\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 827, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=53-76\nread merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=59-82\nread exit_on_failure? for detail", "file": "spec/subcommand_spec.rb", "symbol": "exit_on_failure?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=59-82\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=16-39\nread parse for detail", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=156-179\nread check_at_least_one! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_at_least_one!", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=333-356\nread comment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "comment_lines", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=82-105\nread base_path for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "base_path", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=478-501\nread disable_required_check for detail", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=2-25\nread Argument for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=45-68\nread identical? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "identical?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=25-48\nread pop for detail", "file": "lib/thor/nested_context.rb", "symbol": "pop", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=39-62\nread required? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "required?", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=276-299\nread apple for detail", "file": "spec/fixtures/script.thor", "symbol": "apple", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=126-149\nread on_file_clash_behavior for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_file_clash_behavior", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=58-81\nread namespaces_in_content for detail", "file": "lib/thor/util.rb", "symbol": "namespaces_in_content", "line": 58, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "How does the parser determine if the next token should be interpreted as a flag or a value?", "query": "peek switch format", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch_formatted?", "line": 215, "lang": "en", "candidates": [{"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 4: class Thor", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 5: def print_opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 25: desc \"spec\", \"Run RSpec code examples\"", "file": "Thorfile", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 1: require_relative \"line_editor/basic\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 328: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 59: color, bold = colors", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 146: # def next_command", "file": "lib/thor.rb", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 10: it \"raises an error if name is not supplied\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 103: it \"returns true if the destination link exists and is identical\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 403: def class_exclusive_option_names", "file": "lib/thor/base.rb", "symbol": "", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 13: w.close", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 69: end", "file": "spec/group_spec.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 523: expect(action(:gsub_file, \"doc/README\", \"__start__\", \"START\", force: true)).to eq(\" gsub doc/README\\n\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 523, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 5: SOME_STRING = \"Some ������\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 10: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 12: pop", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 15: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 84: p 1", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 215: def current_is_switch_formatted?", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch_formatted?", "line": 215, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 33: row.each_with_index do |column, index|", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 89: File.open(File.join(destination_root, \"doc/config.rb\"), \"w\") { |f| f.write(\"FOO = 3\") }", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 223: expect(output).to match(/^ README/)", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 302: option :five", "file": "spec/fixtures/script.thor", "symbol": "", "line": 302, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "How does the parser determine if the next token should be interpreted as a flag or a value?", "query": "peek switch format", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch_formatted?", "line": 215, "lang": "en", "candidates": [{"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "How does the parser determine if the next token should be interpreted as a flag or a value?", "query": "peek switch format", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch_formatted?", "line": 215, "lang": "en", "candidates": [{"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=750-773\nread from_superclass for detail", "file": "lib/thor/base.rb", "symbol": "from_superclass", "line": 750, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=38-61\nread part_two for detail", "file": "spec/register_spec.rb", "symbol": "part_two", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=12-35\nread file for detail", "file": "spec/actions_spec.rb", "symbol": "file", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=215-238\nread current_is_switch_formatted? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch_formatted?", "line": 215, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/sort_spec.rb lines=35-58\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=166-189\nread _parse_initialization_options for detail", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=122-145\nread baz for detail", "file": "spec/fixtures/group.thor", "symbol": "baz", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=83-106\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=403-426\nread class_exclusive_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=156-179\nread no? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "no?", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=219-242\nread strict_args_position for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=286-309\nread is? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "is?", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=8-31\nread action for detail", "file": "spec/actions_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=4-27\nread TreeApp for detail", "file": "spec/tree_spec.rb", "symbol": "TreeApp", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Estou tentando entender como o comando lida com blocos passados durante a execução de uma opção. Onde fica armazenado o conjunto de blocos de invocação que são recuperados da classe pai?", "query": "invocation blocks superclass", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lang": "pt", "candidates": [{"text": "File: spec/rake_compat_spec.rb\nLine 9: define", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 3: require \"bundler\"", "file": "Thorfile", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 30: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 108: end", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 66: def with_padding", "file": "lib/thor/shell.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 291: \"any content\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 18: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 199: # Check if the current value in peek is a registered switch.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 45: def invocation_blocks #:nodoc:", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell_spec.rb\nLine 25: it \"uses $THOR_SHELL\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 53: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 74: empty_directory(\"doc\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 317: gsub_file(path, /^(\\s*)#[[:blank:]]?(.*#{flag})/, '\\1\\2', *args)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 317, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 116: expect(File.symlink?(action.destination)).to be false", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 249: # options:: Described below.", "file": "lib/thor/base.rb", "symbol": "", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 73: protected", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 259: action(:apply, @file)", "file": "spec/actions_spec.rb", "symbol": "", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 184: end", "file": "spec/register_spec.rb", "symbol": "", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 19: it \"returns nil if the namespace can't be found\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 4: describe \"#subcommand\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 20: it \"invokes all the commands in the Thor group and its parents\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 159: if no_or_skip?(name)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 90: respond_to?(:fail)", "file": "spec/fixtures/group.thor", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 123: error.message =~ /^undefined method `#{name}' for #{Regexp.escape(instance.to_s)}$/", "file": "lib/thor/command.rb", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estou tentando entender como o comando lida com blocos passados durante a execução de uma opção. Onde fica armazenado o conjunto de blocos de invocação que são recuperados da classe pai?", "query": "invocation blocks superclass", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lang": "pt", "candidates": [{"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Estou tentando entender como o comando lida com blocos passados durante a execução de uma opção. Onde fica armazenado o conjunto de blocos de invocação que são recuperados da classe pai?", "query": "invocation blocks superclass", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estou tentando entender como o comando lida com blocos passados durante a execução de uma opção. Onde fica armazenado o conjunto de blocos de invocação que são recuperados da classe pai?", "query": "invocation blocks superclass", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=131-154\nread find_class_and_command_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_class_and_command_by_namespace", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=93-116\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=99-122\nread destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "destination_root", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=206-229\nread PackageNameScript for detail", "file": "spec/fixtures/script.thor", "symbol": "PackageNameScript", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=129-152\nread HiddenCommand for detail", "file": "lib/thor/command.rb", "symbol": "HiddenCommand", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=96-119\nread print_border_separator for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print_border_separator", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=45-68\nread invocation_blocks for detail", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/option.rb lines=164-187\nread undasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/subcommand.thor lines=3-26\nread Subcommand for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Subcommand", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=108-131\nread are_colors_supported? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=90-113\nread snake_case for detail", "file": "lib/thor/util.rb", "symbol": "snake_case", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=110-133\nread invoke_from_option for detail", "file": "lib/thor/group.rb", "symbol": "invoke_from_option", "line": 110, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=82-105\nread base_path for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "base_path", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=101-124\nread map for detail", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=126-149\nread validate! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate!", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=1-24\nread TestSubcommands for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "TestSubcommands", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=117-140\nread with_optional for detail", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=67-90\nread pretend? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "pretend?", "line": 67, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "我需要定义命令行参数的基本结构,包括名称、描述、类型和默认值,并确保在初始化时验证这些字段的有效性。", "query": "argument initialization validation", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/enum.thor\nLine 8: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 5: false", "file": "spec/fixtures/command.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 23: end", "file": "Thorfile", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 69: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 4: require \"thor/rake_compat\"", "file": "Thorfile", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 6: print options[\"opt\"]", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 253: def thorfiles(relevant_to = nil, skip_lookup = false)", "file": "lib/thor/runner.rb", "symbol": "", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 16: r.read", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 13: w.close", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 2: class Option < Argument #:nodoc:", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 6: # Inherit from Thor::Shell::Basic and add set_color behavior. Check", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 75: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 30: object = Struct.new(:namespace, :arguments).new(\"foo\", [Thor::Argument.new(:bar, options)])", "file": "spec/command_spec.rb", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 73: protected", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 286: arguments << Thor::Argument.new(name, options)", "file": "lib/thor/base.rb", "symbol": "", "line": 286, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 2: class Argument #:nodoc:", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/html.rb\nLine 57: \"#{Thor::Util.escape_html(string)}\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 4: describe Thor::Argument do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 24: # Takes an array of Thor::Argument objects.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nLine 8: Thor::Argument.new(type.to_s, options)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 271: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 541: action(:append_to_file, \"doc/README\") { \"END\\n\" }", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 541, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 74: $VERBOSE = nil", "file": "spec/helper.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 11: ensure", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "我需要定义命令行参数的基本结构,包括名称、描述、类型和默认值,并确保在初始化时验证这些字段的有效性。", "query": "argument initialization validation", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lang": "zh", "candidates": [{"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\ndefines Argument", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "我需要定义命令行参数的基本结构,包括名称、描述、类型和默认值,并确保在初始化时验证这些字段的有效性。", "query": "argument initialization validation", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "我需要定义命令行参数的基本结构,包括名称、描述、类型和默认值,并确保在初始化时验证这些字段的有效性。", "query": "argument initialization validation", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lang": "zh", "candidates": [{"text": "Next: read spec/tree_spec.rb lines=7-30\nread command1 for detail", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=83-106\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=39-62\nread required? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "required?", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=54-77\nread initialize for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=91-114\nread required_options for detail", "file": "lib/thor/command.rb", "symbol": "required_options", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=269-292\nread can_display_colors? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "can_display_colors?", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=49-72\nread invoke! for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke!", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=254-277\nread self_command for detail", "file": "lib/thor/group.rb", "symbol": "self_command", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=102-125\nread invoke for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=210-233\nread Scripts for detail", "file": "spec/fixtures/script.thor", "symbol": "Scripts", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=7-30\nread enter for detail", "file": "lib/thor/nested_context.rb", "symbol": "enter", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=2-25\nread Argument for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=692-715\nread build_command_tree for detail", "file": "lib/thor.rb", "symbol": "build_command_tree", "line": 692, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=35-58\nread identical? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "identical?", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=21-44\nread check_for_extra_spaces for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/basic_spec.rb lines=5-28\nread shell for detail", "file": "spec/shell/basic_spec.rb", "symbol": "shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "查找读取目标文件内容的逻辑", "query": "read destination file", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/exit_status.thor\nLine 15: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 45: @all_commands = all_commands", "file": "lib/thor/error.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 64: @content = capture(:stdout) { MyCounter.help(Thor::Base.shell.new) }", "file": "spec/group_spec.rb", "symbol": "", "line": 64, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 36: it \"changes the file adding content after the flag\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 134: action :copy_file, \"command.thor\" do |content|", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 134, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 1: class Thor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 262: it \"opens a file and executes its content in the instance binding\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 262, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nLine 6: ruby_lib= ENV[\"RUBYLIB\"].nil? ? lib_path : \"#{lib_path}:#{ENV['RUBYLIB']}\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 3: FILE_REGEXP = /^#{Regexp.escape(File.dirname(__FILE__))}/", "file": "lib/thor/command.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 67: end", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 30: it \"takes relative root into account\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 41: sub_help = capture(:stdout) { TestSubcommands::Parent.start(%w(help sub)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 72: def self.handle_no_command_error(name)", "file": "spec/command_spec.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 14: raise ArgumentError, \"Type :#{type} is not valid for #{class_name.downcase}s.\" if type && !valid_type?(type)", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 90: end", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 13: attr_reader :private_attribute", "file": "spec/fixtures/script.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 16: rescue", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 143: def content", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_file_spec.rb\nLine 194: expect(@action.exists?).to be false", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 33: it \"escapes HTML content when using the default colors\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nLine 53: included = /spec/", "file": "spec/quality_spec.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 16: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 126: content = invoke!(\"doc/components\", \"docs/components\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 126, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 4: class Thor", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "查找读取目标文件内容的逻辑", "query": "read destination file", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lang": "zh", "candidates": [{"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "查找读取目标文件内容的逻辑", "query": "read destination file", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "查找读取目标文件内容的逻辑", "query": "read destination file", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lang": "zh", "candidates": [{"text": "Next: read spec/actions/directory_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=256-279\nread parse_boolean for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_boolean", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=97-120\nread parse_hash for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_hash", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=143-166\nread content for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/register_spec.rb lines=22-45\nread SuperSecretPlugin for detail", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=11-34\nread HashWithIndifferentAccess for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=285-308\nread run_ruby_script for detail", "file": "lib/thor/actions.rb", "symbol": "run_ruby_script", "line": 285, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=278-301\nread stdout for detail", "file": "lib/thor/shell/basic.rb", "symbol": "stdout", "line": 278, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=23-46\nread revoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoke!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=21-44\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=446-469\nread remove_class_option for detail", "file": "lib/thor/base.rb", "symbol": "remove_class_option", "line": 446, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=43-66\nread show_default? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "show_default?", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=1-24\nread LCSDiff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "LCSDiff", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=81-104\nread call_unexistent_method for detail", "file": "spec/fixtures/script.thor", "symbol": "call_unexistent_method", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=26-49\nread insert_into_file! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "디렉토리 생성하고 옵션 처리하는 로직 찾아줘", "query": "directory action", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lang": "ko", "candidates": [{"text": "File: lib/thor/command.rb\nLine 51: formatted ||= \"\".dup", "file": "lib/thor/command.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 147: capture(:stderr) { File.const_set(:ALT_SEPARATOR, false) }", "file": "spec/util_spec.rb", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 75: when :string, :default", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 56: # of the returned String.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 4: module Shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 49: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 134: # Changes the mode of the given file or directory.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 134, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 41: # destination:: Relative path to the destination root", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 51: it \"gets the current directory and expands the path to set the root\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 15: _, exit_status= Process.wait2(pid)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 49: def directory(source, *args, &block)", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Thorfile\nLine 11: def build", "file": "Thorfile", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 60: # If a directory name is provided as the argument, look for a 'main.thor'", "file": "lib/thor/runner.rb", "symbol": "", "line": 60, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 66: # to the current working directory on systems that support", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nLine 40: exempt = /\\.gitmodules|\\.marshal|fixtures|vendor|spec|ssl_certs|LICENSE|.devcontainer/", "file": "spec/quality_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 328: thor_yaml.each do |name, hash|", "file": "lib/thor/runner.rb", "symbol": "", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 70: if File.directory?(path)", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 70, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 73: name", "file": "spec/command_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 3: # Creates an empty directory.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 247: invoke_with_a_bang! \"doc/README\", before: /(__end__)/ do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 247, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 54: error_messages = []", "file": "spec/quality_spec.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 11: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 8: desc \"describe NAME\", \"say that someone is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "디렉토리 생성하고 옵션 처리하는 로직 찾아줘", "query": "directory action", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lang": "ko", "candidates": [{"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "디렉토리 생성하고 옵션 처리하는 로직 찾아줘", "query": "directory action", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "디렉토리 생성하고 옵션 처리하는 로직 찾아줘", "query": "directory action", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lang": "ko", "candidates": [{"text": "Next: read spec/parser/argument_spec.rb lines=5-28\nread argument for detail", "file": "spec/parser/argument_spec.rb", "symbol": "argument", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=288-311\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=95-118\nread RequiredArgumentMissingError for detail", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=58-81\nread initialize for detail", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=286-309\nread is? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "is?", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=43-66\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=115-138\nread say_error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_error", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=16-39\nread install for detail", "file": "Thorfile", "symbol": "install", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=472-495\nread commands for detail", "file": "lib/thor/base.rb", "symbol": "commands", "line": 472, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=159-182\nread attr_writer for detail", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=64-87\nread invoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=123-146\nread version for detail", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=351-374\nread no_relations for detail", "file": "spec/fixtures/script.thor", "symbol": "no_relations", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=122-145\nread invoke_command for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_command", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=6-29\nread available? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=76-99\nread unshift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "unshift", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=263-286\nread create_command for detail", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "How does the interactive prompt for handling existing files work, especially when dealing with diffs or merges?", "query": "overwrite file interactive prompt", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision", "line": 207, "lang": "en", "candidates": [{"text": "File: lib/thor/actions/inject_into_file.rb\nLine 40: # ==== Parameters", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 6: ::FileUtils.rm_rf(destination_root)", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 182: expect(File.exist?(File.join(destination_root, \"app{1}\", \"README\"))).to be true", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 20: else", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 3: gem_dir= File.expand_path(\"#{File.dirname(__FILE__)}/..\")", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 10: base = MyCounter.new [1, 2], {}, shell: shell", "file": "spec/shell_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 11: if SOME_STRING.encoding.name == \"UTF-8\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 149: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 83: # skipped. If both are false, show the file_collision menu, if the menu", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 83, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 51: # on Highline implementation and it automatically appends CLEAR to the end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 9: # source:: the relative path to the source root.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 290: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 290, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 13: else", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 109: it \"falls back on the default namespace class if nothing else matches\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 159: shell.say(\"Running... \")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 118: def #{type}?", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 207: def file_collision(destination)", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision", "line": 207, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_link.rb\nLine 46: File.unlink(destination) if exists?", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 24: SHELL_DELEGATED_METHODS = [:ask, :error, :set_color, :yes?, :no?, :say, :say_error, :say_status, :print_in_columns, :print_table, :print_wrapped, :file_collision, :terminal_width]", "file": "lib/thor/shell.rb", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 243: #", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 47: end", "file": "lib/thor/util.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 214: describe \"#file_collision\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 214, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nLine 489: describe \"#file_collision\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 489, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 61: # Strip and go!", "file": "lib/thor/command.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "How does the interactive prompt for handling existing files work, especially when dealing with diffs or merges?", "query": "overwrite file interactive prompt", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision", "line": 207, "lang": "en", "candidates": [{"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "How does the interactive prompt for handling existing files work, especially when dealing with diffs or merges?", "query": "overwrite file interactive prompt", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision", "line": 207, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "How does the interactive prompt for handling existing files work, especially when dealing with diffs or merges?", "query": "overwrite file interactive prompt", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision", "line": 207, "lang": "en", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=107-130\nread show_default? for detail", "file": "lib/thor/parser/option.rb", "symbol": "show_default?", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=15-38\nread entered? for detail", "file": "lib/thor/nested_context.rb", "symbol": "entered?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=325-348\nread subcommand_classes for detail", "file": "lib/thor.rb", "symbol": "subcommand_classes", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=797-820\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 797, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=73-96\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=207-230\nread file_collision for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision", "line": 207, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/exit_status.thor lines=3-26\nread ExitStatus for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ExitStatus", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=32-55\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=307-330\nread mix for detail", "file": "spec/fixtures/script.thor", "symbol": "mix", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=158-181\nread parse_string for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_string", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=547-570\nread shell for detail", "file": "spec/thor_spec.rb", "symbol": "shell", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=84-107\nread current_is_value? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=307-330\nread class_options for detail", "file": "lib/thor/base.rb", "symbol": "class_options", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=144-167\nread method_missing for detail", "file": "spec/fixtures/script.thor", "symbol": "method_missing", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=200-223\nread in_root for detail", "file": "lib/thor/actions.rb", "symbol": "in_root", "line": 200, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "O cálculo da largura das colunas está adicionando espaços desnecessários no final da última coluna quando as bordas não estão ativadas, o que quebra o alinhamento visual da tabela.", "query": "table column padding", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lang": "pt", "candidates": [{"text": "File: lib/thor.rb\nLine 363: def check_unknown_options?(config) #:nodoc:", "file": "lib/thor.rb", "symbol": "", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 102: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 119: it \"customized source paths should be before source roots\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 80: class Defined < Thor::Group", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 335: args, opts = Thor::Arguments.split(args)", "file": "lib/thor.rb", "symbol": "", "line": 335, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 47: def prepare(array)", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/sort_spec.rb\nLine 33: def z; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 28: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 746: end", "file": "lib/thor/base.rb", "symbol": "", "line": 746, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 69: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 13: Test.start(ARGV)", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 233: # will be raised.", "file": "lib/thor.rb", "symbol": "", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 291: send(:\"parse_#{option.type}\", switch)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 86: case file_source", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 62: describe \"#help\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 16: expect(shell.base).to eq(base)", "file": "spec/shell_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 226: expect(MyScript.group).to eq(\"script\")", "file": "spec/base_spec.rb", "symbol": "", "line": 226, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 62: require \"fileutils\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 2: require \"thor/actions\"", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 21: def base", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 16: @depth.positive?", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 99: hash = {}", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 51: describe \"#namespaces_in_content\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 153: create_file(\"doc/config\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "O cálculo da largura das colunas está adicionando espaços desnecessários no final da última coluna quando as bordas não estão ativadas, o que quebra o alinhamento visual da tabela.", "query": "table column padding", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lang": "pt", "candidates": [{"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\ndefines prepare", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "O cálculo da largura das colunas está adicionando espaços desnecessários no final da última coluna quando as bordas não estão ativadas, o que quebra o alinhamento visual da tabela.", "query": "table column padding", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "O cálculo da largura das colunas está adicionando espaços desnecessários no final da última coluna quando as bordas não estão ativadas, o que quebra o alinhamento visual da tabela.", "query": "table column padding", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lang": "pt", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=53-76\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=288-311\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/terminal.rb lines=1-24\nread Thor for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=274-297\nread Apple for detail", "file": "spec/fixtures/script.thor", "symbol": "Apple", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=9-32\nread option for detail", "file": "spec/parser/option_spec.rb", "symbol": "option", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=482-505\nread print_exclusive_options for detail", "file": "lib/thor.rb", "symbol": "print_exclusive_options", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=156-179\nread check_at_least_one! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_at_least_one!", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=449-472\nread command_exists? for detail", "file": "lib/thor.rb", "symbol": "command_exists?", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/verbose.thor lines=7-30\nread Test for detail", "file": "spec/fixtures/verbose.thor", "symbol": "Test", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=47-70\nread hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "hidden", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=86-109\nread force_or_skip_or_conflict for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_or_skip_or_conflict", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=257-280\nread one_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "one_arg", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=80-103\nread ask for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=567-590\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=100-123\nread E for detail", "file": "spec/fixtures/invoke.thor", "symbol": "E", "line": 100, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "특정 문자열의 인코딩이 ISO-8859-7인지 확인하고 출력하는 로직이 어디 있지?", "query": "ISO-8859-7 encoding", "file": "spec/fixtures/encoding_other.thor", "symbol": "encoding", "line": 9, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 1: # encoding: UTF-8", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 70: execute!", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 52: expect(invoke!).to eq(\" create doc/config.rb\\n\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 61: # Example:", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 49: # insert_into_file \"config/environment.rb\", \"config.gem :thor\", :after => \"Rails::Initializer.run do |config|\\n\"", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 46: # Set the terminal's background ANSI color to magenta.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 57: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 1: # encoding: utf-8", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 5: describe \"file's encoding\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nLine 17: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 9: def encoding", "file": "spec/fixtures/encoding_other.thor", "symbol": "encoding", "line": 9, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/sort_spec.rb\nLine 52: describe \"#sort - simple override\" do", "file": "spec/sort_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 28: @dynamic_width ||= (dynamic_width_stty.nonzero? || dynamic_width_tput)", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 23: subcommand \"sub\", SubApp", "file": "spec/tree_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 77: # inside \"bar\" do", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 100: def private_method?(instance)", "file": "lib/thor/command.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 38: end", "file": "spec/command_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 2: require_relative \"group\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 28: paras.each do |para|", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 6: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nLine 182: expect(output).to include(\"default subcommand\")", "file": "spec/register_spec.rb", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 13: Help.start(ARGV)", "file": "spec/fixtures/help.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 55: class Parent < Thor", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 108: ARGV.replace %w(whiny_generator)", "file": "spec/runner_spec.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "특정 문자열의 인코딩이 ISO-8859-7인지 확인하고 출력하는 로직이 어디 있지?", "query": "ISO-8859-7 encoding", "file": "spec/fixtures/encoding_other.thor", "symbol": "encoding", "line": 9, "lang": "ko", "candidates": [{"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\ndefines encoding", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "특정 문자열의 인코딩이 ISO-8859-7인지 확인하고 출력하는 로직이 어디 있지?", "query": "ISO-8859-7 encoding", "file": "spec/fixtures/encoding_other.thor", "symbol": "encoding", "line": 9, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "특정 문자열의 인코딩이 ISO-8859-7인지 확인하고 출력하는 로직이 어디 있지?", "query": "ISO-8859-7 encoding", "file": "spec/fixtures/encoding_other.thor", "symbol": "encoding", "line": 9, "lang": "ko", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=71-94\nread example_default_command for detail", "file": "spec/fixtures/script.thor", "symbol": "example_default_command", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=251-274\nread error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "error", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=72-95\nread initialize for detail", "file": "lib/thor/actions.rb", "symbol": "initialize", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=142-165\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=211-234\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/group_spec.rb lines=223-246\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=360-383\nread answer_match for detail", "file": "lib/thor/shell/basic.rb", "symbol": "answer_match", "line": 360, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=155-178\nread attr_reader for detail", "file": "lib/thor/base.rb", "symbol": "attr_reader", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=4-27\nread shell for detail", "file": "spec/sort_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=108-131\nread are_colors_supported? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=265-288\nread optional_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "optional_arg", "line": 265, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=4-27\nread EncodingOther for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "EncodingOther", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=100-123\nread E for detail", "file": "spec/fixtures/invoke.thor", "symbol": "E", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=547-570\nread shell for detail", "file": "spec/thor_spec.rb", "symbol": "shell", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=94-117\nread with_args for detail", "file": "spec/register_spec.rb", "symbol": "with_args", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=5-28\nread LineEditor for detail", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=230-253\nread cow for detail", "file": "spec/fixtures/script.thor", "symbol": "cow", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=74-97\nread thor_classes_in for detail", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=235-258\nread command_conflict for detail", "file": "spec/fixtures/script.thor", "symbol": "command_conflict", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "encoding", "line": 9, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=482-505\nread print_exclusive_options for detail", "file": "lib/thor.rb", "symbol": "print_exclusive_options", "line": 482, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "find the method in the thor fixture that returns a default string if no argument is provided", "query": "thor default string", "file": "spec/fixtures/group.thor", "symbol": "baz", "line": 122, "lang": "en", "candidates": [{"text": "File: lib/thor/runner.rb\nLine 328: thor_yaml.each do |name, hash|", "file": "lib/thor/runner.rb", "symbol": "", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 231: alternate_ruby << RbConfig::CONFIG[\"EXEEXT\"]", "file": "lib/thor/util.rb", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 72: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 54: # end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 21: def push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 122: def baz(name = 'baz')", "file": "spec/fixtures/group.thor", "symbol": "baz", "line": 122, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/basic_spec.rb\nLine 219: it \"does not print a message if muted\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 78: # empty_directory \"baz\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 78, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nLine 6: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 33: def part_one", "file": "spec/register_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 209: end", "file": "spec/group_spec.rb", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 41: def task(*)", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 33: it \"accepts the help short switch and calls the help command on the subcommand\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 24: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 213: expect(parse(:foo, :array).usage).to eq(\"[--foo=one two three]\")", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 335: MyScript.start(%w(foo bar --force true --unknown baz))", "file": "spec/base_spec.rb", "symbol": "", "line": 335, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 64: desc [\"baz THING\", \"baz --all\"], \"super cool\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 64, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nLine 8: invoke :three", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 6: expect(ChildGroup.start).to eq(%w(bar foo baz))", "file": "spec/group_spec.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nLine 24: # parse [:foo, :baz] => \"bar\"", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 145: expect(klass.stop_on_unknown_option?(double(name: \"baz\"))).to be false", "file": "spec/thor_spec.rb", "symbol": "", "line": 145, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 10: it \"respects explicit UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 56: @shorts[name] ||= option.switch_name", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 370: \"Expected '--fruit' to be one of #{enum.join(', ')}; got orange\")", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 370, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find the method in the thor fixture that returns a default string if no argument is provided", "query": "thor default string", "file": "spec/fixtures/group.thor", "symbol": "baz", "line": 122, "lang": "en", "candidates": [{"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\ndefines baz", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find the method in the thor fixture that returns a default string if no argument is provided", "query": "thor default string", "file": "spec/fixtures/group.thor", "symbol": "baz", "line": 122, "lang": "en", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=122-145\nread baz for detail", "file": "spec/fixtures/group.thor", "symbol": "baz", "line": 122, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=185-208\nread Barn for detail", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=622-645\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=200-223\nread in_root for detail", "file": "lib/thor/actions.rb", "symbol": "in_root", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=367-390\nread concat for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "concat", "line": 367, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=145-168\nread chmod for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "chmod", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=144-167\nread method_missing for detail", "file": "spec/fixtures/script.thor", "symbol": "method_missing", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/help.thor lines=7-30\nread bugs for detail", "file": "spec/fixtures/help.thor", "symbol": "bugs", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=6-29\nread Default for detail", "file": "Thorfile", "symbol": "Default", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=122-145\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=592-615\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=230-253\nread switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch?", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=6-29\nread available? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "¿Dónde está la definición de la función que devuelve este string literal?", "query": "returns \"foo\"", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lang": "es", "candidates": [{"text": "File: lib/thor/shell/color.rb\nLine 65: # The available colors are:", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 23: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 81: class_option :unused, :type => :boolean, :desc => \"This option has no use\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 111: @action.base.extend Module.new {", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 144: # method_option :foo, :for => :previous_command", "file": "lib/thor.rb", "symbol": "", "line": 144, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 253: # Parse boolean values which can be given as --foo=true or --foo for true values, or", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 253, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 19: map \"-T\" => :animal, [\"-f\", \"--foo\"] => :foo", "file": "spec/fixtures/script.thor", "symbol": "", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nLine 179: expect(runner.inside(\"foo\") { 123 }).to eq(123)", "file": "spec/actions_spec.rb", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 34: expect(Thor::Base.shell).to eq(shell.class)", "file": "spec/shell_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 33: load File.join(File.dirname(__FILE__), \"fixtures\", \"enum.thor\")", "file": "spec/helper.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 28: end", "file": "spec/register_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 4: # Overwrite show_diff to show diff with colors if Diff::LCS is", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 185: expect(File.exist?(File.join(destination_root, \"app{1}\", \"README\"))).to be false", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 31: # Set the terminal's foreground ANSI color to cyan.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 16: def install", "file": "Thorfile", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 16: puts \"COOL\"", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 97: bold = bold ? BOLD : \"\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 49: desc \"foo NAME\", \"Fooo\"", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 118: def foo", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/nested_context.rb\nLine 3: def initialize", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 43: true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 37: expect(argument(:foo, type: :string).usage).to eq(\"FOO\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 21: File.join(destination_root, \"foo\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 21, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "¿Dónde está la definición de la función que devuelve este string literal?", "query": "returns \"foo\"", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lang": "es", "candidates": [{"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\ndefines foo", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "¿Dónde está la definición de la función que devuelve este string literal?", "query": "returns \"foo\"", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lang": "es", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=163-186\nread method_option for detail", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=164-187\nread undasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=161-184\nread initialize for detail", "file": "spec/fixtures/script.thor", "symbol": "initialize", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=96-119\nread public_method? for detail", "file": "lib/thor/command.rb", "symbol": "public_method?", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=199-222\nread printable_commands for detail", "file": "lib/thor/group.rb", "symbol": "printable_commands", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=155-178\nread attr_reader for detail", "file": "lib/thor/base.rb", "symbol": "attr_reader", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=62-85\nread source_root for detail", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=64-87\nread last? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/util.rb lines=4-27\nread Sandbox for detail", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=62-85\nread InvocationError for detail", "file": "lib/thor/error.rb", "symbol": "InvocationError", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/verbose.thor lines=7-30\nread Test for detail", "file": "spec/fixtures/verbose.thor", "symbol": "Test", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=54-77\nread set_color for detail", "file": "lib/thor/shell/html.rb", "symbol": "set_color", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=50-73\nread PathCompletion for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "PathCompletion", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=293-316\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=68-91\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/encoding_spec.rb lines=6-29\nread load_thorfile for detail", "file": "spec/encoding_spec.rb", "symbol": "load_thorfile", "line": 6, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "初始化时 @base、@mute 和 @padding 默认值是什么?", "query": "initialize padding mute base", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lang": "zh", "candidates": [{"text": "File: lib/thor/command.rb\nLine 5: def initialize(name, description, long_description, wrap_long_description, usage, options = nil, options_relation = nil)", "file": "lib/thor/command.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nLine 71: # Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 3: class Help < Thor", "file": "spec/fixtures/help.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 251: \"then uploading it to the configured Amazon S3 Bucket.\\n\\n\"\\", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 11: ensure", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 58: def initialize(base, source, destination = nil, config = {}, &block)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 83: empty_directory(\"doc\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 13: def initialize #:nodoc:", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_link_spec.rb\nLine 87: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 239: # If we start at /Users/wycats/dev/thor ...", "file": "lib/thor/runner.rb", "symbol": "", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 8: def initialize(stdout, options = {})", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 9: def initialize(stdout, options = {})", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 16: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 7: include Thor::RakeCompat", "file": "Thorfile", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 208: unless File.exist?(yaml_file)", "file": "lib/thor/runner.rb", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 35: def revoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 27: when \"!\"", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 5: def create(opts = {})", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 8: def initialize(name, options = {})", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 647: alias_method :find_task_possibilities, :find_command_possibilities", "file": "lib/thor.rb", "symbol": "", "line": 647, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 28: def initialize(error)", "file": "lib/thor/error.rb", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nLine 3: module Terminal", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 45: expect(parse(\"-\")[\"array\"]).to eq(%w(-))", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 47: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "初始化时 @base、@mute 和 @padding 默认值是什么?", "query": "initialize padding mute base", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lang": "zh", "candidates": [{"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "初始化时 @base、@mute 和 @padding 默认值是什么?", "query": "initialize padding mute base", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lang": "zh", "candidates": [{"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "初始化时 @base、@mute 和 @padding 默认值是什么?", "query": "initialize padding mute base", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/shell.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=77-100\nread _shared_configuration for detail", "file": "lib/thor/shell.rb", "symbol": "_shared_configuration", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=4-27\nread EncodingOther for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "EncodingOther", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=103-126\nread truncate for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "truncate", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=123-146\nread say_status for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "say_status", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=101-124\nread ExclusiveArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "ExclusiveArgumentError", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=56-79\nread exists? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=216-239\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/terminal.rb lines=27-50\nread dynamic_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=351-374\nread no_relations for detail", "file": "spec/fixtures/script.thor", "symbol": "no_relations", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=47-70\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=1-24\nread Enum for detail", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "¿Dónde se define la lógica que llama a otra tarea pasando argumentos específicos y opciones?", "query": "thor invoke arguments", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lang": "es", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nLine 66: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 8: desc \"error\", \"exit with a planned error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 261: elsif [\"false\", \"FALSE\", \"f\", \"F\", false].include?(peek)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 261, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nLine 144: red = shell.set_color \"hi!\", :red", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 60: Thor::Base.subclasses.clear", "file": "lib/thor/util.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 40: invoke! \"unknown\"", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 222: @ruby_command ||= begin", "file": "lib/thor/util.rb", "symbol": "", "line": 222, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 205: alias_method :printable_tasks, :printable_commands", "file": "lib/thor/group.rb", "symbol": "", "line": 205, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 2: module Shell", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 14: it \"respects explicit non-UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 35: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 18: expect(MyCounter.class_options.keys).to include(:pretend)", "file": "spec/actions_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 17: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 24: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 315: shell.say_status(:created, \"~/.thor/command.thor\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 315, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 4: def shell", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 104: class F < Thor::Group", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/subcommand_spec.rb\nLine 56: desc \"child1\", \"child1 description\"", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 4: desc \"print_opt\", \"My method\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 88: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 102: def invoke(name = nil, *args)", "file": "lib/thor/invocation.rb", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 101: expect(F.start).to eq([\"Valim, Jose\"])", "file": "spec/group_spec.rb", "symbol": "", "line": 101, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nLine 25: class SpellChecker", "file": "lib/thor/error.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 361: it \"overwrites earlier values with later values\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 361, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "¿Dónde se define la lógica que llama a otra tarea pasando argumentos específicos y opciones?", "query": "thor invoke arguments", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lang": "es", "candidates": [{"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\ndefines F", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "¿Dónde se define la lógica que llama a otra tarea pasando argumentos específicos y opciones?", "query": "thor invoke arguments", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lang": "es", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=629-652\nread exit_on_failure? for detail", "file": "lib/thor/base.rb", "symbol": "exit_on_failure?", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=86-109\nread force_or_skip_or_conflict for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_or_skip_or_conflict", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=93-116\nread method_missing for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "method_missing", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=329-352\nread class_option for detail", "file": "lib/thor/base.rb", "symbol": "class_option", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=793-816\nread dispatch for detail", "file": "lib/thor/base.rb", "symbol": "dispatch", "line": 793, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=7-30\nread enter for detail", "file": "lib/thor/nested_context.rb", "symbol": "enter", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=104-127\nread F for detail", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=37-60\nread fetch for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "fetch", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=307-330\nread class_options for detail", "file": "lib/thor/base.rb", "symbol": "class_options", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=3-26\nread Amazing for detail", "file": "spec/fixtures/command.thor", "symbol": "Amazing", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=1-24\nread TestSubcommands for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "TestSubcommands", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=27-50\nread dynamic_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=28-51\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=47-70\nread SubcommandTest1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "SubcommandTest1", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "实现嵌套上下文管理器以追踪嵌套层级", "query": "nested context depth", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/subcommand.thor\nLine 3: class Subcommand < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 4: class Thor", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nLine 73: it \"has default value equal to the string\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 160: nil", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 1: class Thor", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/subcommand_spec.rb\nLine 31: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 136: expect(Thor::LineEditor).to receive(:readline).and_return(\"d\", \"n\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 189: end.strip).to eq(\"Unknown switches \\\"--foo\\\"\")", "file": "spec/thor_spec.rb", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 71: type: :numeric,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 161: it \"doesn't break new\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 43: subcommand subcommand_name, klass", "file": "lib/thor.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 4: describe Thor::Argument do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 8: class Thor", "file": "lib/thor/actions.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 1: require \"helper\"", "file": "spec/shell_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 3: describe Thor::Command do", "file": "spec/command_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 4: describe Thor::Actions::EmptyDirectory do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 120: expect(@content).to match(/1\\n2\\n3\\n4\\n5\\n/)", "file": "spec/group_spec.rb", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 283: end.to raise_error(Thor::Error, /does not appear to exist/)", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 8: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 277: # ==== Returns", "file": "lib/thor/util.rb", "symbol": "", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 23: expect(content).not_to match(/help \\[COMMAND\\]/)", "file": "spec/runner_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 2: # frozen_string_literal: true", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 9: method_options :forcefully => :boolean", "file": "spec/fixtures/command.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "实现嵌套上下文管理器以追踪嵌套层级", "query": "nested context depth", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\ndefines Thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "实现嵌套上下文管理器以追踪嵌套层级", "query": "nested context depth", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/nested_context.rb lines=15-38\nread entered? for detail", "file": "lib/thor/nested_context.rb", "symbol": "entered?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=367-390\nread concat for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "concat", "line": 367, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=45-68\nread invocation_blocks for detail", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=43-66\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=144-167\nread method_missing for detail", "file": "spec/fixtures/script.thor", "symbol": "method_missing", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=2-25\nread NestedContext for detail", "file": "lib/thor/nested_context.rb", "symbol": "NestedContext", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=164-187\nread undasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=7-30\nread enter for detail", "file": "lib/thor/nested_context.rb", "symbol": "enter", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/quality_spec.rb lines=12-35\nread check_for_tab_characters for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=215-238\nread current_is_switch_formatted? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch_formatted?", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=309-332\nread printable_commands for detail", "file": "lib/thor.rb", "symbol": "printable_commands", "line": 309, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=213-236\nread globs_for for detail", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=7-30\nread bugs for detail", "file": "spec/fixtures/help.thor", "symbol": "bugs", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=66-89\nread method_exclusive_option_names for detail", "file": "lib/thor/command.rb", "symbol": "method_exclusive_option_names", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "ファイル上書き確認の選択肢を表示するメッセージを生成する処理を探して", "query": "file collision help", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lang": "ja", "candidates": [{"text": "File: lib/thor/invocation.rb\nLine 31: @_invocations.values.flatten.map(&:to_sym)", "file": "lib/thor/invocation.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 95: \"more content\\n\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 57: raise Error, \"Error opening URI '#{name}'\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 30: # ERB, it gets the content from the user.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 13: $main.instance_eval do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 165: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 29: # Set the terminal's foreground ANSI color to magenta.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 73: expect(parse(\"bar\")).to eq(\"string\" => \"bar\", \"numeric\" => 3.0)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 84: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 48: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 49: # Set color by using a string or one of the defined constants. If a third", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 51: # it gets a default shell from Thor::Base.shell.", "file": "lib/thor/shell.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 40: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 235: # Executes a command returning the contents of the command.", "file": "lib/thor/actions.rb", "symbol": "", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 13: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 1: require_relative \"line_editor/basic\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 51: describe \"#copy_file\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 296: def file_collision_help(block_given) #:nodoc:", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/runner.rb\nLine 132: require \"fileutils\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 27: expect(parse(\"name\", \"-13.3\")[\"numeric\"]).to eq(-13.3)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 43: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 12: puts opts[\"forcefully\"] ? ret.upcase : ret", "file": "spec/fixtures/command.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 3: $VERBOSE = true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "ファイル上書き確認の選択肢を表示するメッセージを生成する処理を探して", "query": "file collision help", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lang": "ja", "candidates": [{"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "ファイル上書き確認の選択肢を表示するメッセージを生成する処理を探して", "query": "file collision help", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "ファイル上書き確認の選択肢を表示するメッセージを生成する処理を探して", "query": "file collision help", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=296-319\nread file_collision_help for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=65-88\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=1-24\nread TestSubcommands for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "TestSubcommands", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=78-101\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=661-684\nread sort_commands! for detail", "file": "lib/thor.rb", "symbol": "sort_commands!", "line": 661, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=186-209\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=248-271\nread run for detail", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=4-27\nread EncodingWithUtf8 for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=8-31\nread initialize for detail", "file": "spec/rake_compat_spec.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=230-253\nread switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch?", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=62-85\nread InvocationError for detail", "file": "lib/thor/error.rb", "symbol": "InvocationError", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=149-172\nread remove_invocation for detail", "file": "lib/thor/group.rb", "symbol": "remove_invocation", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=291-314\nread gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=21-44\nread check_for_extra_spaces for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=351-374\nread no_relations for detail", "file": "spec/fixtures/script.thor", "symbol": "no_relations", "line": 351, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Je cherche la méthode qui permet de générer un nouveau fichier à partir d'un modèle ERB en utilisant le contexte local. Peux-tu m'expliquer comment elle gère la destination si aucun chemin de sortie n'est fourni ?", "query": "template ERB generator", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lang": "fr", "candidates": [{"text": "File: spec/quality_spec.rb\nLine 7: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 156: expect(klass.stop_on_unknown_option?(double(name: \"bar\"))).to be true", "file": "spec/thor_spec.rb", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 6: # If any of the files finishes with .tt, it's considered to be a template", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 44: @command = command", "file": "lib/thor/error.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 75: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 23: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 50: def foo(name)", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 66: when Numeric", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 219: describe \"#template\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 219, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 117: def template(source, *args, &block)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/argument_spec.rb\nLine 59: }).print_default).to eq('\"one\" \"two\"')", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 10: yield", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 110: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 226: URI.open(path, \"Accept\" => \"application/x-thor-template\", &:read)", "file": "lib/thor/actions.rb", "symbol": "", "line": 226, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 111: content = '\\1\\2'", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 4: def shell", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 4: describe \"#subcommand\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 188: expect(colorless).to eq(\"hi!\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 292: end", "file": "lib/thor/group.rb", "symbol": "", "line": 292, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 169: (str.length > 1 ? \"--\" : \"-\") + str.tr(\"_\", \"-\")", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 45: config.expect_with :rspec do |c|", "file": "spec/helper.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 137: it \"finds a template inside the source path\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 137, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 45: when Array, String, Hash", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche la méthode qui permet de générer un nouveau fichier à partir d'un modèle ERB en utilisant le contexte local. Peux-tu m'expliquer comment elle gère la destination si aucun chemin de sortie n'est fourni ?", "query": "template ERB generator", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lang": "fr", "candidates": [{"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Je cherche la méthode qui permet de générer un nouveau fichier à partir d'un modèle ERB en utilisant le contexte local. Peux-tu m'expliquer comment elle gère la destination si aucun chemin de sortie n'est fourni ?", "query": "template ERB generator", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche la méthode qui permet de générer un nouveau fichier à partir d'un modèle ERB en utilisant le contexte local. Peux-tu m'expliquer comment elle gère la destination si aucun chemin de sortie n'est fourni ?", "query": "template ERB generator", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lang": "fr", "candidates": [{"text": "Next: read spec/actions/empty_directory_spec.rb lines=9-32\nread empty_directory for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "empty_directory", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=4-27\nread Shell for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=138-161\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=234-257\nread switch_option for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch_option", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=434-457\nread disable_required_check! for detail", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=81-104\nread call_unexistent_method for detail", "file": "spec/fixtures/script.thor", "symbol": "call_unexistent_method", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=51-74\nread six for detail", "file": "spec/fixtures/group.thor", "symbol": "six", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=61-84\nread namespace for detail", "file": "lib/thor/rake_compat.rb", "symbol": "namespace", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=73-96\nread ask for detail", "file": "lib/thor/shell/html.rb", "symbol": "ask", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=62-85\nread validate! for detail", "file": "lib/thor/parser/argument.rb", "symbol": "validate!", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=153-176\nread replace! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replace!", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=541-564\nread no_commands? for detail", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=117-140\nread template for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=560-583\nread create_command for detail", "file": "lib/thor.rb", "symbol": "create_command", "line": 560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "查找定义命令行元数据结构并负责执行逻辑的部分", "query": "command run struct", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lang": "zh", "candidates": [{"text": "File: spec/util_spec.rb\nLine 207: end", "file": "spec/util_spec.rb", "symbol": "", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 29: @error = error", "file": "lib/thor/error.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 35: describe \"#invoke!\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 6: # Allows for custom \"Command\" package naming.", "file": "lib/thor.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 3: describe Thor::Command do", "file": "spec/command_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 264: commands[meth.to_s] = Thor::Command.new(meth, nil, nil, nil, nil)", "file": "lib/thor/group.rb", "symbol": "", "line": 264, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 10: # data:: the data to append to the file.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 134: it \"does not affect ordinary commands\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 46: def use_path_completion?", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 220: it \"returns to the previous state\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 220, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 53: # The namespace/class given will have its options showed on the help", "file": "lib/thor/group.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 10: desc \"a\", \"First Command\"", "file": "spec/sort_spec.rb", "symbol": "", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 18: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 222: expect(output).to match(/\\e\\[31m\\- __start__\\e\\[0m/)", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 222, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 6: relation = {", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 469: # Hash:: An ordered hash with commands names as keys and Thor::Command", "file": "lib/thor/base.rb", "symbol": "", "line": 469, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nLine 56: invoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 33: # parse :foo => :numeric", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 11: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 27: it \"accepts the help switch and calls the help command on the subcommand\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 109: stdout.tty? && ENV[\"TERM\"] != \"dumb\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 35: # \"namespace:command\"), a Thor::Command, a Class or a Thor instance. If the", "file": "lib/thor/invocation.rb", "symbol": "", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 2: class Command < Struct.new(:name, :description, :long_description, :wrap_long_description, :usage, :options, :options_relation, :ancestor_name)", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "查找定义命令行元数据结构并负责执行逻辑的部分", "query": "command run struct", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "查找定义命令行元数据结构并负责执行逻辑的部分", "query": "command run struct", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lang": "zh", "candidates": [{"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=686-709\nread tree for detail", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=207-230\nread file_collision for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=16-39\nread install for detail", "file": "Thorfile", "symbol": "install", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=104-127\nread AtLeastOneRequiredArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "AtLeastOneRequiredArgumentError", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=92-115\nread long_description for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=216-239\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/options_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_link_spec.rb lines=31-54\nread invoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "invoke!", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=21-44\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=142-165\nread update for detail", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=8-31\nread action for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=1-24\nread LCSDiff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "LCSDiff", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "¿Cómo se encarga esta clase de ajustar el texto y los saltos de línea según el ancho de la terminal y la indentación?", "query": "terminal width indentation", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lang": "es", "candidates": [{"text": "File: spec/rake_compat_spec.rb\nLine 8: def initialize", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 7: if diff_lcs_loaded? && ENV[\"THOR_DIFF\"].nil? && ENV[\"RAILS_DIFF\"].nil?", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 68: @content = capture(:stdout) { my_script.help(shell) }", "file": "spec/sort_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 3: describe Thor do", "file": "spec/thor_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 3: module Thor::Util", "file": "spec/util_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 5: SOME_STRING = \"Some ������\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 11: arguments.sort! { |a, b| b.name <=> a.name }", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 1: class MyScript < Thor", "file": "spec/fixtures/script.thor", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 3: class Help < Thor", "file": "spec/fixtures/help.thor", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 57: def merge!(other)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 17: before do", "file": "spec/sort_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 4: class Thor", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/script.thor\nLine 87: This is a really really really long description.", "file": "spec/fixtures/script.thor", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 3: class BoringVendorProvidedCLI < Thor", "file": "spec/register_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 270: false", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 270, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 116: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 16: # t.spec_files = FileList['spec/**/*_spec.rb']", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 17: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 54: end", "file": "lib/thor/error.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 5: class_option \"fruit\", :aliases => \"-f\", :type => :string, :enum => %w(apple banana)", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 28: end", "file": "Thorfile", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 68: # :black", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "¿Cómo se encarga esta clase de ajustar el texto y los saltos de línea según el ancho de la terminal y la indentación?", "query": "terminal width indentation", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lang": "es", "candidates": [{"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\ndefines Thor", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "¿Cómo se encarga esta clase de ajustar el texto y los saltos de línea según el ancho de la terminal y la indentación?", "query": "terminal width indentation", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "¿Cómo se encarga esta clase de ajustar el texto y los saltos de línea según el ancho de la terminal y la indentación?", "query": "terminal width indentation", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lang": "es", "candidates": [{"text": "Next: read lib/thor/invocation.rb lines=122-145\nread invoke_command for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_command", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=297-320\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 297, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=6-29\nread WrappedPrinter for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "WrappedPrinter", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=730-753\nread method_added for detail", "file": "lib/thor/base.rb", "symbol": "method_added", "line": 730, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=172-195\nread get_options_from_invocations for detail", "file": "lib/thor/group.rb", "symbol": "get_options_from_invocations", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=307-330\nread class_options for detail", "file": "lib/thor/base.rb", "symbol": "class_options", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=49-72\nread invoke! for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke!", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=122-145\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Shell", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=161-184\nread initialize for detail", "file": "spec/fixtures/script.thor", "symbol": "initialize", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=263-286\nread gsub_file! for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=85-108\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=43-66\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=827-850\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 827, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=6-29\nread Default for detail", "file": "Thorfile", "symbol": "Default", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=97-120\nread parse_hash for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_hash", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=31-54\nread file for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=35-58\nread dynamic_width_tput for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_tput", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=26-49\nread insert_into_file! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=473-496\nread stop_on_unknown_option for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option", "line": 473, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=7-30\nread print for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "有没有可以把新代码片段插入到指定模块定义之后的方法?", "query": "inject into module", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_module", "line": 239, "lang": "zh", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nLine 591: describe \"#inject_into_module\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 591, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 42: task = super", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 210: else", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 15: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 168: it \"does not invoke if the option is false\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 7: def bugs", "file": "spec/fixtures/help.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 17: array.each_with_index do |value, index|", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 18: memo = \"#{memo} #{word}\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 208: msg = \"#{basename} #{command.name} takes #{arity} argument\".dup", "file": "lib/thor/group.rb", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 239: def inject_into_module(path, module_name, *args, &block)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_module", "line": 239, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions.rb\nLine 2: require_relative \"actions/create_link\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 56: maxima = array.map { |row| row[index] ? row[index].to_s.size : 0 }.max", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 11: puts \"ok\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 18: ExitStatus.start(ARGV)", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 304: #", "file": "lib/thor/actions.rb", "symbol": "", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 163: context \"when directory exists and it causes a file clash\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 209: end", "file": "spec/util_spec.rb", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 144: expect(Thor::LineEditor).to receive(:readline).and_return(\"m\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 25: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 7: # Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 28: desc \"animal TYPE\", \"horse around\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 112: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 18: base", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "有没有可以把新代码片段插入到指定模块定义之后的方法?", "query": "inject into module", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_module", "line": 239, "lang": "zh", "candidates": [{"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "有没有可以把新代码片段插入到指定模块定义之后的方法?", "query": "inject into module", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_module", "line": 239, "lang": "zh", "candidates": [{"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "有没有可以把新代码片段插入到指定模块定义之后的方法?", "query": "inject into module", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_module", "line": 239, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=132-155\nread on_conflict_behavior for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_conflict_behavior", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=264-287\nread escape_globs for detail", "file": "lib/thor/util.rb", "symbol": "escape_globs", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/runner_spec.rb lines=5-28\nread when_no_thorfiles_exist for detail", "file": "spec/runner_spec.rb", "symbol": "when_no_thorfiles_exist", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=77-100\nread BrokenCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "BrokenCounter", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=333-356\nread at_least_one for detail", "file": "spec/fixtures/script.thor", "symbol": "at_least_one", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=207-230\nread handle_argument_error for detail", "file": "lib/thor/group.rb", "symbol": "handle_argument_error", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=18-41\nread subcommand1 for detail", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=239-262\nread inject_into_module for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_module", "line": 239, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=393-416\nread class_at_least_one for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=278-301\nread stdout for detail", "file": "lib/thor/shell/basic.rb", "symbol": "stdout", "line": 278, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=671-694\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Comment est-ce que les méthodes de classe sont injectées dans les modules qui sont inclus ?", "query": "included super extend", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lang": "fr", "candidates": [{"text": "File: lib/thor/base.rb\nLine 73: end", "file": "lib/thor/base.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 132: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 50: class PathCompletion", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 31: sentence = \"\".dup", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 411: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 411, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 6: p 1", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 55: it \"converts namespaces to classes\" do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 136: # Check if the peek is included in enum if enum is provided.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 136, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 307: def class_options(options = nil)", "file": "lib/thor/base.rb", "symbol": "", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 45: create_file(\"doc/config.rb\", {}, pretend: true)", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 10: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 10: # data:: the data to append to the file.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 12: def self.included(base) #:nodoc:", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_link.rb\nLine 45: config[:symbolic] = true if config[:symbolic].nil?", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 6: before do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 27: def self.included(base)", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 96: #", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 13: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 164: describe \"#get\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 53: included = /spec/", "file": "spec/quality_spec.rb", "symbol": "", "line": 53, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 3: def self.included(base) #:nodoc:", "file": "lib/thor/invocation.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 117: def included(base) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nLine 133: )", "file": "spec/register_spec.rb", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 154: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Comment est-ce que les méthodes de classe sont injectées dans les modules qui sont inclus ?", "query": "included super extend", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lang": "fr", "candidates": [{"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Comment est-ce que les méthodes de classe sont injectées dans les modules qui sont inclus ?", "query": "included super extend", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/empty_directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/file_manipulation", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> revoke", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/inject_into_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Comment est-ce que les méthodes de classe sont injectées dans les modules qui sont inclus ?", "query": "included super extend", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/actions.rb lines=27-50\nread source_root for detail", "file": "lib/thor/actions.rb", "symbol": "source_root", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=169-192\nread check_unknown_options! for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options!", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=48-71\nread Child1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "Child1", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=105-128\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=13-36\nread invoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=99-122\nread aliases_for_usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "aliases_for_usage", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=41-64\nread task for detail", "file": "lib/thor/rake_compat.rb", "symbol": "task", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=65-88\nread UnknownArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=25-48\nread silence! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "silence!", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=248-271\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=52-75\nread render for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "render", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=2-25\nread check_for_spec_defs_with_single_quotes for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=66-89\nread with_padding for detail", "file": "lib/thor/shell.rb", "symbol": "with_padding", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=59-82\nread foo for detail", "file": "spec/fixtures/script.thor", "symbol": "foo", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=258-281\nread command_help for detail", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=478-501\nread disable_required_check for detail", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Como adicionar conteúdo a um arquivo substituindo uma correspondência de regex, respeitando a flag de forçar a substituição?", "query": "replace content regex", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replace!", "line": 153, "lang": "pt", "candidates": [{"text": "File: lib/thor/group.rb\nLine 212: end", "file": "lib/thor/group.rb", "symbol": "", "line": 212, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 363: it \"does not log status if required\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 189: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 7: best_available.new(prompt, options).readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 14: it \"sets bold if specified\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 456: #", "file": "lib/thor.rb", "symbol": "", "line": 456, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 11: # empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 3: class ExitStatus < Thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 371: temp.write content", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 12: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 683: # Build an option and adds it to the given scope.", "file": "lib/thor/base.rb", "symbol": "", "line": 683, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 178: end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 155: save_yaml(thor_yaml)", "file": "lib/thor/runner.rb", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 6: attr_writer :shell", "file": "lib/thor/shell.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 9: @corrections ||= self.class.const_get(:SpellChecker).new(self).corrections", "file": "lib/thor/error.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 18: # end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 37: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 172: # ==== Parameters", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 42: # ==== Returns", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 106: Thor.send :remove_const, :Help", "file": "spec/util_spec.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 170: # Raises an error if the switch is an enum and the values aren't included on it.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 5: describe \"file's encoding\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 153: def replace!(regexp, string, force)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replace!", "line": 153, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Como adicionar conteúdo a um arquivo substituindo uma correspondência de regex, respeitando a flag de forçar a substituição?", "query": "replace content regex", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replace!", "line": 153, "lang": "pt", "candidates": [{"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Como adicionar conteúdo a um arquivo substituindo uma correspondência de regex, respeitando a flag de forçar a substituição?", "query": "replace content regex", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replace!", "line": 153, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Como adicionar conteúdo a um arquivo substituindo uma correspondência de regex, respeitando a flag de forçar a substituição?", "query": "replace content regex", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replace!", "line": 153, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor.rb lines=5-28\nread LineEditor for detail", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=168-191\nread check_unknown! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=6-29\nread Default for detail", "file": "Thorfile", "symbol": "Default", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=168-191\nread dasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherize", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=48-71\nread add_runtime_options! for detail", "file": "lib/thor/actions.rb", "symbol": "add_runtime_options!", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=26-49\nread insert_into_file! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=61-84\nread namespace for detail", "file": "lib/thor/rake_compat.rb", "symbol": "namespace", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=153-176\nread replace! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replace!", "line": 153, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=32-55\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=296-319\nread file_collision_help for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=62-85\nread source_root for detail", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=5-28\nread print_opt for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "print_opt", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=368-391\nread merge for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge", "line": 368, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/base_spec.rb lines=4-27\nread Amazing for detail", "file": "spec/base_spec.rb", "symbol": "Amazing", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "What does the method that simply returns the first element do?", "query": "def first", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lang": "en", "candidates": [{"text": "File: lib/thor/shell/html.rb\nLine 75: end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 31: def one", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 1: describe \"when the Thor class's exit_with_failure? method returns true\" do", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 31: expect(Thor::Base.shell).to eq(Thor::Shell::TestShell)", "file": "spec/shell_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 103: end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 112: expect(parse([:foo, :b, \"--bar\"], true).aliases).to eq([\"-b\", \"--bar\"])", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 18: it \"has implicit UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 62: it \"invokes a command from a specific Thor class\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 9: # it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nLine 273: # will load all thor files in the thor.yaml that has \"foo\" e \"foo:bar\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 10: # exists, tries to find the USAGE one folder above it, otherwise searches", "file": "lib/thor/group.rb", "symbol": "", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nLine 24: private", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 5: # hash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 154: previous_value = File::ALT_SEPARATOR", "file": "spec/util_spec.rb", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 199: describe \"with one required and one optional switch\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 199, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 116: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 81: it \"returns the at least one of option names for the class\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nLine 26: attr_reader :error", "file": "lib/thor/error.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 28: expect(Thor::Base.shell).to eq(shell.class)", "file": "spec/shell_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 203: # Save the yaml file. If none exists in thor root, creates one.", "file": "lib/thor/runner.rb", "symbol": "", "line": 203, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 256: desc \"one_arg ARG\", \"takes one arg\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 256, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 64: action :copy_file, \"README\"", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 137: it \"raises an error if default is inconsistent with type and check_default_type is true\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "What does the method that simply returns the first element do?", "query": "def first", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lang": "en", "candidates": [{"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\ndefines one", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "What does the method that simply returns the first element do?", "query": "def first", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lang": "en", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=26-49\nread squirrel for detail", "file": "spec/register_spec.rb", "symbol": "squirrel", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=420-443\nread stop_on_unknown_option! for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option!", "line": 420, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=622-645\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=154-177\nread ClassMethods for detail", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=35-58\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=67-90\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=180-203\nread print_table for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_table", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=36-59\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=39-62\nread three for detail", "file": "spec/fixtures/group.thor", "symbol": "three", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=170-193\nread inside for detail", "file": "lib/thor/actions.rb", "symbol": "inside", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=783-806\nread create_command for detail", "file": "lib/thor/base.rb", "symbol": "create_command", "line": 783, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=41-64\nread slice for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "slice", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=53-76\nread remaining for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "remaining", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=75-98\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=72-95\nread shift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "shift", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=142-165\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I'm testing error handling and the CLI output when a command intentionally fails. I need a test command that exits with a non-zero status code immediately upon execution, without printing any output or performing any other actions.", "query": "test exit fail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lang": "en", "candidates": [{"text": "File: spec/shell_spec.rb\nLine 12: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 2: require_relative \"line_editor/readline\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 287: expect(MyChildScript.commands.keys).not_to include(\"boom\")", "file": "spec/base_spec.rb", "symbol": "", "line": 287, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nLine 71: type: :numeric,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 23: def self.rake_classes", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 85: '\\0' + replacement", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 37: # #=> Option foo with default value true and type boolean", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 10: it \"raises an error if name is not supplied\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 15: Thor::Shell::Basic", "file": "lib/thor/shell.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 631: false", "file": "lib/thor/base.rb", "symbol": "", "line": 631, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 22: class_option :simple, :type => :numeric, :aliases => 'z'", "file": "spec/fixtures/group.thor", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 103: expect(parse(\"--bar\", \"boom\")[\"foo\"]).to eq(\"baz\")", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 103, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 172: unknown = to_check.select { |str| str =~ /^--?(?:(?!--).)*$/ }", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 13: # doc/", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 57: type: :array,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 52: expect(ThorTask::HiperMega.tasks[\"super\"].description).to eq(\"super\")", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 115: revoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 101: end", "file": "spec/util_spec.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 13: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 10: it \"respects explicit UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 179: def boom", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions_spec.rb\nLine 200: runner.inside(\"foo\", verbose: true) {}", "file": "spec/actions_spec.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 18: ExitStatus.start(ARGV)", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 19: def self.parse(*args)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm testing error handling and the CLI output when a command intentionally fails. I need a test command that exits with a non-zero status code immediately upon execution, without printing any output or performing any other actions.", "query": "test exit fail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lang": "en", "candidates": [{"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines boom", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm testing error handling and the CLI output when a command intentionally fails. I need a test command that exits with a non-zero status code immediately upon execution, without printing any output or performing any other actions.", "query": "test exit fail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lang": "en", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=15-38\nread parse for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "parse", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=40-63\nread invoke! for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=104-127\nread local_method? for detail", "file": "lib/thor/command.rb", "symbol": "local_method?", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=179-202\nread boom for detail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=56-79\nread revoke! for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "revoke!", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=59-82\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=49-72\nread capture for detail", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=67-90\nread pretend? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "pretend?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=26-49\nread squirrel for detail", "file": "spec/register_spec.rb", "symbol": "squirrel", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=689-712\nread build_option for detail", "file": "lib/thor/base.rb", "symbol": "build_option", "line": 689, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=304-327\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=62-85\nread source_root for detail", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=649-672\nread subcommand_help for detail", "file": "lib/thor.rb", "symbol": "subcommand_help", "line": 649, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "encontre a exceção usada para erros de uso do usuário que oculta o backtrace", "query": "suppress backtrace error", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lang": "pt", "candidates": [{"text": "File: lib/thor/actions/empty_directory.rb\nLine 44: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 16: $stdout.print(prompt)", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 56: eval(\"$#{stream} = #{stream.upcase}\")", "file": "spec/helper.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 20: class Error < StandardError", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_link.rb\nLine 38: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 22: it \"a command that raises a Thor::Error exits with a status of 1\" do", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 129: it \"does not attempt to change the file if it doesn't exist - instead raises Thor::Error\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 129, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 497: expect(MyScript.start(%w(unk hello))).to eq([:unk, %w(hello)])", "file": "spec/thor_spec.rb", "symbol": "", "line": 497, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 10: raise Thor::Error.new(\"planned error\")", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nLine 3: require \"rake/tasklib\"", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 45: error_messages << check_for_tab_characters(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 12: puts opts[\"forcefully\"] ? ret.upcase : ret", "file": "spec/fixtures/command.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 175: [args, opts, config]", "file": "lib/thor/invocation.rb", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 1: # encoding: UTF-8", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 370: end.to raise_error(Thor::Error, \"The content of #{destination_root}/doc/README did not change\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 370, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 151: # Adds the content to the file.", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 15: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 11: desc \"two\", \"invoke two\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 194: it \"returns false for a command that is not defined in the class\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 57: raise Error, \"Error opening URI '#{name}'\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 57, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nLine 93: # break old APIs unnecessarily :P", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 3: class Amazing < Thor", "file": "spec/fixtures/command.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 156: raise Error, message", "file": "lib/thor/actions.rb", "symbol": "", "line": 156, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 38: instance_eval do", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "encontre a exceção usada para erros de uso do usuário que oculta o backtrace", "query": "suppress backtrace error", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lang": "pt", "candidates": [{"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "encontre a exceção usada para erros de uso do usuário que oculta o backtrace", "query": "suppress backtrace error", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lang": "pt", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=224-247\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=161-184\nread class_options_help for detail", "file": "lib/thor/group.rb", "symbol": "class_options_help", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=594-617\nread initialize_added for detail", "file": "lib/thor.rb", "symbol": "initialize_added", "line": 594, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=600-623\nread retrieve_command_name for detail", "file": "lib/thor.rb", "symbol": "retrieve_command_name", "line": 600, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=43-66\nread show_default? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "show_default?", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=17-40\nread revoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "revoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=20-43\nread Error for detail", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=368-391\nread merge for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge", "line": 368, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=25-48\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 25, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=108-131\nread are_colors_supported? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=472-495\nread commands for detail", "file": "lib/thor/base.rb", "symbol": "commands", "line": 472, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=21-44\nread output_diff_line for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "output_diff_line", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=24-47\nread UndefinedCommandError for detail", "file": "lib/thor/error.rb", "symbol": "UndefinedCommandError", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=40-63\nread invoke! for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=45-68\nread identical? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "identical?", "line": 45, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "4番目のオプションを取得するメソッドが、期待通りに動作していない可能性があります。確認してください。", "query": "fourth option", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 43, "lang": "ja", "candidates": [{"text": "File: spec/actions/inject_into_file_spec.rb\nLine 358: invoke! \"doc/README\", \"more content\\n\", before: \"__start__\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 43: def four", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 43, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/invoke.thor\nLine 22: desc \"four\", \"invoke four\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 28: super(convert_key(key))", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 9: it \"sets the color if specified\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 17: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 157: capture(:stderr) { File.const_set(:ALT_SEPARATOR, previous_value) }", "file": "spec/util_spec.rb", "symbol": "", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 27: exec \"bundle exec rspec spec\"", "file": "Thorfile", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 14: when Symbol, String", "file": "lib/thor/invocation.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 30: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 75: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 296: class_option :four", "file": "spec/fixtures/script.thor", "symbol": "", "line": 296, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 99: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 8: def corrections", "file": "lib/thor/error.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 111: end.to raise_error(Thor::AtLeastOneRequiredArgumentError, \"Not found at least one of required options '--three', '--four'\")", "file": "spec/base_spec.rb", "symbol": "", "line": 111, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nLine 373: it \"does not erroneously mutate defaults\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 373, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 41: ON_GREEN = \"\\e[42m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 202: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 7: best_available.new(prompt, options).readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 285: instance_exec(klass, &block)", "file": "lib/thor/group.rb", "symbol": "", "line": 285, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 602: expect(content).to match(/Required At Least One:\\n\\s+--three\\s+--four\\n/)", "file": "spec/thor_spec.rb", "symbol": "", "line": 602, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 20: #", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 18: # other actions like create_file and directory.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 249: def banner", "file": "lib/thor/group.rb", "symbol": "", "line": 249, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "4番目のオプションを取得するメソッドが、期待通りに動作していない可能性があります。確認してください。", "query": "fourth option", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 43, "lang": "ja", "candidates": [{"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\ndefines four", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "4番目のオプションを取得するメソッドが、期待通りに動作していない可能性があります。確認してください。", "query": "fourth option", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 43, "lang": "ja", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=29-52\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=43-66\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 43, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/util.rb lines=58-81\nread namespaces_in_content for detail", "file": "lib/thor/util.rb", "symbol": "namespaces_in_content", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=158-181\nread parse_string for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_string", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=7-30\nread RakeTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "RakeTask", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=80-103\nread Defined for detail", "file": "spec/fixtures/invoke.thor", "symbol": "Defined", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=10-33\nread create_file for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=333-356\nread at_least_one for detail", "file": "spec/fixtures/script.thor", "symbol": "at_least_one", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=173-196\nread check_unknown_options for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=21-44\nread check_for_extra_spaces for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=163-186\nread attr_accessor for detail", "file": "lib/thor/base.rb", "symbol": "attr_accessor", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=230-253\nread switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch?", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=58-81\nread initialize for detail", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=133-156\nread find_in_source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "find_in_source_paths", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Hay un problema con la ejecución de comandos personalizados mediante alias en la interfaz de línea de comandos para la gestión de frutas; parece que no se están mapeando correctamente las abreviaciones.", "query": "fruits alias map", "file": "spec/fixtures/script.thor", "symbol": "Apple", "line": 274, "lang": "es", "candidates": [{"text": "File: spec/base_spec.rb\nLine 295: describe \"#from_superclass\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 295, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 8: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 179: # ==== Parameters", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 85: end", "file": "spec/helper.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 81: #", "file": "lib/thor/invocation.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 266: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 266, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 30: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 197: end", "file": "spec/group_spec.rb", "symbol": "", "line": 197, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 14: def ok", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 252: Scripts::ChildDefault, Scripts::Arities, Apple, Pear, MyClassOptionScript, MyOptionScript", "file": "spec/base_spec.rb", "symbol": "", "line": 252, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 681: end", "file": "lib/thor.rb", "symbol": "", "line": 681, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 35: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 43: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 3: require \"thor/actions\"", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 22: desc \"four\", \"invoke four\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 274: class Apple < Thor", "file": "spec/fixtures/script.thor", "symbol": "Apple", "line": 274, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 96: end", "file": "lib/thor/error.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 47: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 114: expect(Thor::Util.find_class_and_command_by_namespace(\"fruits:apple\")).to eq([Apple, \"apple\"])", "file": "spec/util_spec.rb", "symbol": "", "line": 114, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 17: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 4: lib_path= \"#{gem_dir}/lib\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 75: it \"does not remove dot if required\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Hay un problema con la ejecución de comandos personalizados mediante alias en la interfaz de línea de comandos para la gestión de frutas; parece que no se están mapeando correctamente las abreviaciones.", "query": "fruits alias map", "file": "spec/fixtures/script.thor", "symbol": "Apple", "line": 274, "lang": "es", "candidates": [{"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines Apple", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Hay un problema con la ejecución de comandos personalizados mediante alias en la interfaz de línea de comandos para la gestión de frutas; parece que no se están mapeando correctamente las abreviaciones.", "query": "fruits alias map", "file": "spec/fixtures/script.thor", "symbol": "Apple", "line": 274, "lang": "es", "candidates": [{"text": "Next: read spec/parser/option_spec.rb lines=9-32\nread option for detail", "file": "spec/parser/option_spec.rb", "symbol": "option", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=399-422\nread set_eoutvar for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "set_eoutvar", "line": 399, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=3-26\nread ExitStatus for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ExitStatus", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=274-297\nread Apple for detail", "file": "spec/fixtures/script.thor", "symbol": "Apple", "line": 274, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=4-27\nread TreeApp for detail", "file": "spec/tree_spec.rb", "symbol": "TreeApp", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=73-96\nread on_conflict_behavior for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "on_conflict_behavior", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=700-723\nread build_options for detail", "file": "lib/thor/base.rb", "symbol": "build_options", "line": 700, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=73-96\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=322-345\nread quiet? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Où est définie la méthode qui délègue l'analyse des options à la classe de Thor ?", "query": "Thor::Option parse", "file": "spec/parser/option_spec.rb", "symbol": "parse", "line": 5, "lang": "fr", "candidates": [{"text": "File: spec/parser/option_spec.rb\nLine 5: def parse(key, value)", "file": "spec/parser/option_spec.rb", "symbol": "parse", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 20: stdout.puts value", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 71: # supplied to B. This allows lazy parse of options. Let's suppose you have", "file": "lib/thor/invocation.rb", "symbol": "", "line": 71, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 380: expect(revoke!(\"doc/README\", \"\\nmore content\", after: \"__start__\")).to eq(\" subtract doc/README\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 380, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 14: require \"thor\"", "file": "spec/helper.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 292: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 292, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 127: namespaces: %w(amazing)", "file": "spec/runner_spec.rb", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 27: arity = instance.method(name).arity", "file": "lib/thor/command.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 19: def self.parse(*args)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 35: # Check if Diff::LCS is loaded. If it is, use it to create pretty output", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 55: def self.inherited(base)", "file": "spec/fixtures/group.thor", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 166: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 15: def parse(*args)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 338: it \"subtracts the destination file after injection\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 338, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 44: if klass = Thor::RakeCompat.rake_classes.last # rubocop:disable Lint/AssignmentInCondition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 95: ARGV.replace %w(unknown)", "file": "spec/runner_spec.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 24: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 89: it \"colors are still used and NO_COLOR is ignored if the environment variable is nil\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 24: GREEN = \"\\e[32m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 16: # rdoc.rb.tt", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 6: options[key] = Thor::Option.parse(key, value)", "file": "spec/command_spec.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 28: @_source_root = path if path", "file": "lib/thor/actions.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 18: # This parse quick options given as method_options. It makes several", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 75: # Let Thor::Options parse the options first, so it can remove", "file": "lib/thor/base.rb", "symbol": "", "line": 75, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Où est définie la méthode qui délègue l'analyse des options à la classe de Thor ?", "query": "Thor::Option parse", "file": "spec/parser/option_spec.rb", "symbol": "parse", "line": 5, "lang": "fr", "candidates": [{"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nsibling in spec/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nsibling in spec/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\ndefines parse", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nsibling in spec/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Où est définie la méthode qui délègue l'analyse des options à la classe de Thor ?", "query": "Thor::Option parse", "file": "spec/parser/option_spec.rb", "symbol": "parse", "line": 5, "lang": "fr", "candidates": [{"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Où est définie la méthode qui délègue l'analyse des options à la classe de Thor ?", "query": "Thor::Option parse", "file": "spec/parser/option_spec.rb", "symbol": "parse", "line": 5, "lang": "fr", "candidates": [{"text": "Next: read spec/parser/option_spec.rb lines=5-28\nread parse for detail", "file": "spec/parser/option_spec.rb", "symbol": "parse", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=399-422\nread set_eoutvar for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "set_eoutvar", "line": 399, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=142-165\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=25-48\nread silence! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "silence!", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=32-55\nread completion_proc for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_proc", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=108-131\nread are_colors_supported? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=113-136\nread indentation for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=8-31\nread action for detail", "file": "spec/actions_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=57-80\nread AmbiguousCommandError for detail", "file": "lib/thor/error.rb", "symbol": "AmbiguousCommandError", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=313-336\nread show_diff for detail", "file": "lib/thor/shell/basic.rb", "symbol": "show_diff", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=77-100\nread _shared_configuration for detail", "file": "lib/thor/shell.rb", "symbol": "_shared_configuration", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=153-176\nread replace! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replace!", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=54-77\nread initialize for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=47-70\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=9-32\nread option for detail", "file": "spec/parser/option_spec.rb", "symbol": "option", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/command.thor lines=10-33\nread describe for detail", "file": "spec/fixtures/command.thor", "symbol": "describe", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=44-67\nread initialize for detail", "file": "lib/thor/shell.rb", "symbol": "initialize", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=70-93\nread method_at_least_one_option_names for detail", "file": "lib/thor/command.rb", "symbol": "method_at_least_one_option_names", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=145-168\nread chmod for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "chmod", "line": 145, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "muestra un aviso de color rojo cuando hay un conflicto de archivos", "query": "file clash status", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_file_clash_behavior", "line": 126, "lang": "es", "candidates": [{"text": "File: lib/thor/shell/column_printer.rb\nLine 8: def initialize(stdout, options = {})", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 83: # skipped. If both are false, show the file_collision menu, if the menu", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 139: with_padding { invoke(*args) }", "file": "lib/thor/invocation.rb", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 10: # the % signs will be executed as a method and replaced with the returned", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 9: true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 36: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 163: # Array[String, String, ...]", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 39: # argument :first, :type => :numeric", "file": "lib/thor/shell.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 180: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 255: Thor::DynamicCommand.new(namespace, class_options)", "file": "lib/thor/group.rb", "symbol": "", "line": 255, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 30: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 9: add_filter \"/spec\"", "file": "spec/helper.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 19: return if array.empty?", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 100: out = capture(:stdout) do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 155: @temp_dir = Dir.mktmpdir(\"thor\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 92: base.template(file_source, file_destination[0..-4], config, &@block)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 41: #", "file": "lib/thor/shell.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 11: def a; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 126: def on_file_clash_behavior", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_file_clash_behavior", "line": 126, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions.rb\nLine 298: #", "file": "lib/thor/actions.rb", "symbol": "", "line": 298, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 141: create foo_bar: :boolean", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 292: [[\"foo\", \"bar\"], [\"baz\",\"qux\"]])", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 292, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 52: def render", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "muestra un aviso de color rojo cuando hay un conflicto de archivos", "query": "file clash status", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_file_clash_behavior", "line": 126, "lang": "es", "candidates": [{"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "muestra un aviso de color rojo cuando hay un conflicto de archivos", "query": "file clash status", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_file_clash_behavior", "line": 126, "lang": "es", "candidates": [{"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "muestra un aviso de color rojo cuando hay un conflicto de archivos", "query": "file clash status", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_file_clash_behavior", "line": 126, "lang": "es", "candidates": [{"text": "Next: read spec/actions/file_manipulation_spec.rb lines=12-35\nread exists_and_identical? for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=105-128\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=43-66\nread ClassOptionGroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "ClassOptionGroupPlugin", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=48-71\nread add_runtime_options! for detail", "file": "lib/thor/actions.rb", "symbol": "add_runtime_options!", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=424-447\nread stop_on_unknown_option? for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=110-133\nread G for detail", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=126-149\nread on_file_clash_behavior for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_file_clash_behavior", "line": 126, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=368-391\nread merge for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge", "line": 368, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=289-312\nread display_klasses for detail", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=216-239\nread apply for detail", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=320-343\nread exclusive for detail", "file": "spec/fixtures/script.thor", "symbol": "exclusive", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=11-34\nread build for detail", "file": "Thorfile", "symbol": "build", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=89-112\nread default for detail", "file": "spec/register_spec.rb", "symbol": "default", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoker", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=109-132\nread CommandConflict for detail", "file": "spec/fixtures/group.thor", "symbol": "CommandConflict", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "这个用于确保只允许单个项的方法是怎么定义的?", "query": "only one", "file": "spec/fixtures/script.thor", "symbol": "only_one", "line": 345, "lang": "zh", "candidates": [{"text": "File: spec/parser/arguments_spec.rb\nLine 4: describe Thor::Arguments do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 261: return if options[:pretend]", "file": "lib/thor/actions.rb", "symbol": "", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 79: expect(invoke!).to eq(\" create doc/config.rb\\n\")", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 14: ].detect(&:available?)", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 8: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 122: not_debugging?(instance) &&", "file": "lib/thor/command.rb", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 2: require_relative \"line_editor/readline\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 24: else", "file": "lib/thor.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 11: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 73: invoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 36: #", "file": "lib/thor/util.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 12: words = unwrapped.split(\" \")", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 278: # String", "file": "lib/thor/util.rb", "symbol": "", "line": 278, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 8: puts \"Invoked!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 78: end", "file": "spec/helper.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 345: def only_one", "file": "spec/fixtures/script.thor", "symbol": "only_one", "line": 345, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell.rb\nLine 56: # Common methods that are delegated to the shell.", "file": "lib/thor/shell.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 13: w.close", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 294: expect(File.exist?(\"idontexist\")).to be_falsey", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 294, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 3: class EncodingImplicit < Thor", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 15: end", "file": "lib/thor/actions.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 2: # frozen_string_literal: true", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 18: expect(parse(:foo, :numeric).type).to eq(:numeric)", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 4: require \"thor/rake_compat\"", "file": "Thorfile", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "这个用于确保只允许单个项的方法是怎么定义的?", "query": "only one", "file": "spec/fixtures/script.thor", "symbol": "only_one", "line": 345, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines only_one", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "这个用于确保只允许单个项的方法是怎么定义的?", "query": "only one", "file": "spec/fixtures/script.thor", "symbol": "only_one", "line": 345, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/actions/file_manipulation.rb lines=399-422\nread set_eoutvar for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "set_eoutvar", "line": 399, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/base_spec.rb lines=4-27\nread Amazing for detail", "file": "spec/base_spec.rb", "symbol": "Amazing", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=263-286\nread create_command for detail", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=121-144\nread handle_no_method_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_no_method_error?", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=345-368\nread only_one for detail", "file": "spec/fixtures/script.thor", "symbol": "only_one", "line": 345, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/rake_compat_spec.rb lines=28-51\nread ThorTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "ThorTask", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=21-44\nread revoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=66-89\nread method_exclusive_option_names for detail", "file": "lib/thor/command.rb", "symbol": "method_exclusive_option_names", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=144-167\nread check_exclusive! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=2-25\nread Argument for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=880-903\nread no_arg for detail", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "查找处理未定义命令错误并抛出异常的逻辑", "query": "undefined command error", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lang": "zh", "candidates": [{"text": "File: lib/thor/shell/lcs_diff.rb\nLine 26: say \"+ #{diff.new_element.chomp}\", :green, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 53: given_destination", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 129: def method_options(options = nil)", "file": "lib/thor.rb", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 1: #!/usr/bin/ruby", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 54: expect(list).to include(\"foo:bar\")", "file": "spec/util_spec.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 118: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 25: instance.class.handle_no_command_error(name)", "file": "lib/thor/command.rb", "symbol": "", "line": 25, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 19: if ((((index + 1) % (Terminal.terminal_width / colwidth))).zero? && !index.zero?) || index + 1 == array.length", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 1: #!/usr/bin/ruby", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 11: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 2: class Arguments #:nodoc:", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 614: def handle_no_command_error(command, has_namespace = $thor_runner) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/verbose.thor\nLine 1: #!/usr/bin/ruby", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 17: if (counter + word.length + 1) < width", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 50: expect(dub.class).to receive(:handle_no_command_error).with(\"to_s\")", "file": "spec/command_spec.rb", "symbol": "", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nLine 21: def push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 47: expect(@content).to match(/:z.+:help.+:a/m)", "file": "spec/sort_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 17: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 15: out = capture(:stdout) { shell.say \"Wow! Now we have colors *and* bold!\", [:green, :bold] }", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 48: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 116: desc \"with_optional NAME\", \"invoke with optional name\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 261: handle_no_command_error(meth) unless command", "file": "lib/thor.rb", "symbol": "", "line": 261, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nLine 24: self.class.handle_no_command_error(command, false) if klass.nil?", "file": "lib/thor/runner.rb", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "查找处理未定义命令错误并抛出异常的逻辑", "query": "undefined command error", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lang": "zh", "candidates": [{"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "查找处理未定义命令错误并抛出异常的逻辑", "query": "undefined command error", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "查找处理未定义命令错误并抛出异常的逻辑", "query": "undefined command error", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=129-152\nread method_options for detail", "file": "lib/thor.rb", "symbol": "method_options", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=276-299\nread apple for detail", "file": "spec/fixtures/script.thor", "symbol": "apple", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=126-149\nread on_file_clash_behavior for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_file_clash_behavior", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=28-51\nread add_to_history? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "add_to_history?", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=55-78\nread Parent for detail", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=288-311\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=6-29\nread Default for detail", "file": "Thorfile", "symbol": "Default", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=22-45\nread SuperSecretPlugin for detail", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=133-156\nread potentially_ambiguous for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=34-57\nread invoker for detail", "file": "spec/fixtures/invoke.thor", "symbol": "invoker", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=112-135\nread private_file_name for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=72-95\nread initialize for detail", "file": "lib/thor/actions.rb", "symbol": "initialize", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=186-209\nread check_requirement! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "check_requirement!", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "我想看看在执行命令行脚本时,如果没有传入任何参数,系统会返回什么默认值。帮我找一下那个处理默认指令逻辑的方法。", "query": "default command options", "file": "spec/fixtures/script.thor", "symbol": "example_default_command", "line": 71, "lang": "zh", "candidates": [{"text": "File: lib/thor/parser/argument.rb\nLine 85: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 52: end", "file": "spec/command_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 9: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 58: args = %w(example_default_command my_param --new-option=verified)", "file": "spec/thor_spec.rb", "symbol": "", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 126: @extra << shift while peek && peek !~ /^-/", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 105: #", "file": "lib/thor/actions.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 13: arguments << item", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 71: def example_default_command", "file": "spec/fixtures/script.thor", "symbol": "example_default_command", "line": 71, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 70: super(base, destination, {verbose: true}.merge(config))", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 230: def switch?(arg)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 128: :append", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 178: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 284: return option.lazy_default", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 284, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 25: it \"uses $THOR_SHELL\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 171: expect(output).to include(\"hello\")", "file": "spec/register_spec.rb", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 16: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 19: counter += (word.length + 1)", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 7: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 11: # :: give :symbolic => false for hard link.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 45: expect(argument(:foo, type: :array).usage).to eq(\"one two three\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 175: initialize_thorfiles", "file": "lib/thor/runner.rb", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 3: class Thor", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 11: def a; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "我想看看在执行命令行脚本时,如果没有传入任何参数,系统会返回什么默认值。帮我找一下那个处理默认指令逻辑的方法。", "query": "default command options", "file": "spec/fixtures/script.thor", "symbol": "example_default_command", "line": 71, "lang": "zh", "candidates": [{"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines example_default_command", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "我想看看在执行命令行脚本时,如果没有传入任何参数,系统会返回什么默认值。帮我找一下那个处理默认指令逻辑的方法。", "query": "default command options", "file": "spec/fixtures/script.thor", "symbol": "example_default_command", "line": 71, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=59-82\nread no_or_skip? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=192-215\nread append_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "append_to_file", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=57-80\nread merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=100-123\nread force_on_collision? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_on_collision?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=225-248\nread current_is_value? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_value?", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=69-92\nread revoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "revoke!", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=45-68\nread identical? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "identical?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=657-680\nread print_options for detail", "file": "lib/thor/base.rb", "symbol": "print_options", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=126-149\nread validate! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate!", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/util_spec.rb lines=4-27\nread clear_user_home! for detail", "file": "spec/util_spec.rb", "symbol": "clear_user_home!", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=104-127\nread AtLeastOneRequiredArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "AtLeastOneRequiredArgumentError", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=71-94\nread example_default_command for detail", "file": "spec/fixtures/script.thor", "symbol": "example_default_command", "line": 71, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=649-672\nread subcommand_help for detail", "file": "lib/thor.rb", "symbol": "subcommand_help", "line": 649, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=41-64\nread slice for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "slice", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=325-348\nread subcommand_classes for detail", "file": "lib/thor.rb", "symbol": "subcommand_classes", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "How does this class handle calls to commands that aren't defined directly on itself?", "query": "handle no command", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lang": "en", "candidates": [{"text": "File: lib/thor.rb\nLine 575: elsif all_commands[meth] || meth == \"method_missing\"", "file": "lib/thor.rb", "symbol": "", "line": 575, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nLine 331: expect(parse(\"--foo=bar=baz\")[\"foo\"]).to eq(\"bar=baz\")", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 331, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 248: end", "file": "lib/thor/util.rb", "symbol": "", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 22: RED = \"\\e[31m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 75: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 45: expect(parse(\"-\")[\"array\"]).to eq(%w(-))", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 29: elsif local_method?(instance, :method_missing)", "file": "lib/thor/command.rb", "symbol": "", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nLine 34: def method_missing(meth, *args)", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/terminal.rb\nLine 13: unix? ? dynamic_width : DEFAULT_TERMINAL_WIDTH", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 8: describe \"#say\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 7: end", "file": "spec/register_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 30: it \"accepts hashes\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 59: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 22: desc \"four\", \"invoke four\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 144: def method_missing(meth, *args)", "file": "spec/fixtures/script.thor", "symbol": "", "line": 144, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nLine 37: describe \"and symbol is not a reserved key\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 30: stdout.puts line.insert(0, \" \" * @indent)", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 11: if SOME_STRING.encoding.name == \"UTF-8\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 32: #", "file": "lib/thor/shell.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 6: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 93: def method_missing(method, *args)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 93, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 149: if found", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 496: it \"calls method_missing if an unknown method is passed in\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 496, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 52: it \"returns an array of names of constants defined in the string\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "How does this class handle calls to commands that aren't defined directly on itself?", "query": "handle no command", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lang": "en", "candidates": [{"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "How does this class handle calls to commands that aren't defined directly on itself?", "query": "handle no command", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/runner.rb -> open-uri", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> group", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> ../thor", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "How does this class handle calls to commands that aren't defined directly on itself?", "query": "handle no command", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lang": "en", "candidates": [{"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=66-89\nread method_exclusive_option_names for detail", "file": "lib/thor/command.rb", "symbol": "method_exclusive_option_names", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=170-193\nread inside for detail", "file": "lib/thor/actions.rb", "symbol": "inside", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=326-349\nread unix? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "unix?", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Thorfile lines=21-44\nread release for detail", "file": "Thorfile", "symbol": "release", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/thor_spec.rb lines=293-316\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=113-136\nread indentation for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=194-217\nread check_default_type for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=53-76\nread remaining for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "remaining", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=6-29\nread show_diff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "show_diff", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=221-244\nread ruby_command for detail", "file": "lib/thor/util.rb", "symbol": "ruby_command", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=10-33\nread initialize for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "initialize", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=296-319\nread file_collision_help for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=191-214\nread open for detail", "file": "spec/fixtures/script.thor", "symbol": "open", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=170-193\nread prepend_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "prepend_to_file", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=123-146\nread version for detail", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=79-102\nread shift for detail", "file": "lib/thor/parser/options.rb", "symbol": "shift", "line": 79, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "查找一个接收数字参数并验证其值是否等于5的方法。", "query": "validate number equals five", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 29, "lang": "zh", "candidates": [{"text": "File: spec/shell/color_spec.rb\nLine 57: expect(Thor::LineEditor).to receive(:readline).with(\"\\e[1m\\e[34mIs this legacy blue? \\e[0m\", anything).and_return(\"yes\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 21: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 98: it \"colors are still used and NO_COLOR is ignored if the environment variable is an empty-string\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 686: message.to match(/Exclusive Options:\\n\\s+--five\\s+--six\\s+--seven\\n\\s+--one\\s+--two/)", "file": "spec/thor_spec.rb", "symbol": "", "line": 686, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nLine 178: it \"returns the value yielded by the block\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 16: expect(capture(:stdout) { Thor::Sandbox::EncodingOther.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 14: ].detect(&:available?)", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 25: else", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 209: end", "file": "lib/thor/util.rb", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 302: h - help, show this help", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 302, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 25: failing_lines << number + 1 if line =~ /\\s+\\n$/", "file": "spec/quality_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 11: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 69: desc \"example_default_command\", \"example!\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 302: option :five", "file": "spec/fixtures/script.thor", "symbol": "", "line": 302, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 21: def output_diff_line(diff) #:nodoc:", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 372: expect(File.binread(file)).to eq(\"__start__\\nREADME\\n__end__\\n\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 372, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 147: old_filename = thor_yaml[name][:filename]", "file": "lib/thor/runner.rb", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 47: def five", "file": "spec/fixtures/group.thor", "symbol": "", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nLine 29: def five(number)", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 29, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/options_spec.rb\nLine 315: expect{parse(%w[--foo --baz])}.not_to raise_error", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 315, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 296: shell.say \"#{@package_name} commands:\"", "file": "lib/thor.rb", "symbol": "", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 92: MyClassOptionScript.start %w[mix --one --two --three --five]", "file": "spec/base_spec.rb", "symbol": "", "line": 92, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 55: else", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 20: # create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "查找一个接收数字参数并验证其值是否等于5的方法。", "query": "validate number equals five", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 29, "lang": "zh", "candidates": [{"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\ndefines five", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "查找一个接收数字参数并验证其值是否等于5的方法。", "query": "validate number equals five", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 29, "lang": "zh", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=129-152\nread uninstall for detail", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=10-33\nread Parent for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=40-63\nread invoke! for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=11-34\nread build for detail", "file": "Thorfile", "symbol": "build", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=84-107\nread unshift for detail", "file": "lib/thor/parser/options.rb", "symbol": "unshift", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=263-286\nread gsub_file! for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=85-108\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=438-461\nread disable_required_check? for detail", "file": "lib/thor.rb", "symbol": "disable_required_check?", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=78-101\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=112-135\nread private_file_name for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=21-44\nread base for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "base", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=246-269\nread method_at_least_one for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=109-132\nread CommandConflict for detail", "file": "spec/fixtures/group.thor", "symbol": "CommandConflict", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=363-386\nread check_unknown_options? for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options?", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=29-52\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 29, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/group_spec.rb lines=206-229\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 206, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "The logic for wrapping lines in a grid of columns is incorrectly calculating when to insert a newline, causing columns to overflow the terminal width or wrap unpredictably based on element length.", "query": "column printing wrap", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lang": "en", "candidates": [{"text": "File: spec/rake_compat_spec.rb\nLine 44: expect(ThorTask.tasks[\"cool\"].description).to eq(\"Say it's cool\")", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 47: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 5: module Shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 48: default", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 15: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 3: class Subcommand < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 2: module Shell", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 18: _, options = MyScript.start(%w(with_optional --lazy))", "file": "spec/thor_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 4: module Shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nLine 7: module Shell", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 5: module Shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 78: # empty_directory \"baz\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 13: Thor::LineEditor::Basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 121: base.send :include, Shell", "file": "lib/thor/base.rb", "symbol": "", "line": 121, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 13: end", "file": "spec/util_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 36: load File.join(File.dirname(__FILE__), \"fixtures\", \"script.thor\")", "file": "spec/helper.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 2: require \"thor/actions\"", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 46: yield", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 77: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 3: describe Thor::Shell do", "file": "spec/shell_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 282: when 2", "file": "lib/thor/group.rb", "symbol": "", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 3: class Help < Thor", "file": "spec/fixtures/help.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 44: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 113: it \"returns correct Thor class and the command name when shared namespaces\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "The logic for wrapping lines in a grid of columns is incorrectly calculating when to insert a newline, causing columns to overflow the terminal width or wrap unpredictably based on element length.", "query": "column printing wrap", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lang": "en", "candidates": [{"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\ndefines Shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "The logic for wrapping lines in a grid of columns is incorrectly calculating when to insert a newline, causing columns to overflow the terminal width or wrap unpredictably based on element length.", "query": "column printing wrap", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lang": "en", "candidates": [{"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "The logic for wrapping lines in a grid of columns is incorrectly calculating when to insert a newline, causing columns to overflow the terminal width or wrap unpredictably based on element length.", "query": "column printing wrap", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lang": "en", "candidates": [{"text": "Next: read spec/helper.rb lines=49-72\nread capture for detail", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=228-251\nread dispatch for detail", "file": "lib/thor/group.rb", "symbol": "dispatch", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=104-127\nread F for detail", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=322-345\nread quiet? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=223-246\nread strict_args_position? for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position?", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=12-35\nread initialize for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "initialize", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=40-63\nread animal for detail", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=14-37\nread print for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=567-590\nread namespace for detail", "file": "lib/thor/base.rb", "symbol": "namespace", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=115-138\nread say_error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_error", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=689-712\nread build_option for detail", "file": "lib/thor/base.rb", "symbol": "build_option", "line": 689, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=52-75\nread enum_to_s for detail", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=145-168\nread chmod for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "chmod", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=85-108\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=583-606\nread start for detail", "file": "lib/thor/base.rb", "symbol": "start", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=5-28\nread parse for detail", "file": "spec/parser/option_spec.rb", "symbol": "parse", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=4-27\nread Shell for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "我正在实现命令行补全功能,能不能帮我解释一下这个类是如何根据当前工作目录来处理文件路径匹配并返回相对路径结果的?", "query": "path completion matches", "file": "lib/thor/line_editor/readline.rb", "symbol": "PathCompletion", "line": 50, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/group.thor\nLine 49: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 111: describe \"#revoke!\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 54: # option is ignored when limited answers are supplied.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 18: # Don't output trailing spaces when printing the last column", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 35: load File.join(File.dirname(__FILE__), \"fixtures\", \"invoke.thor\")", "file": "spec/helper.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 13: desc \"sub\", \"My subcommand\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 131: def validate_default_type!", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 177: create(foo: :string)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 1: class Thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 45: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 89: exists_and_identical?(\"doc\", \"doc\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 115: end", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 33: actual.join(\"\\n\")", "file": "spec/quality_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 50: class PathCompletion", "file": "lib/thor/line_editor/readline.rb", "symbol": "PathCompletion", "line": 50, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 15: def revoker", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 32: ENV[\"THOR_SHELL\"] = \"\"", "file": "spec/shell_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 251: it \"checks when banner is an empty string\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 35: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 16: #", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 117: shell.say \"Wow! Now we have colors *and* background colors\", [:green, :on_red, :bold]", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 60: html_color = self.class.const_get(color.to_s.upcase) if color.is_a?(Symbol)", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 9: method_options :forcefully => :boolean", "file": "spec/fixtures/command.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "我正在实现命令行补全功能,能不能帮我解释一下这个类是如何根据当前工作目录来处理文件路径匹配并返回相对路径结果的?", "query": "path completion matches", "file": "lib/thor/line_editor/readline.rb", "symbol": "PathCompletion", "line": 50, "lang": "zh", "candidates": [{"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\ndefines PathCompletion", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nsibling in lib/thor/line_editor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "我正在实现命令行补全功能,能不能帮我解释一下这个类是如何根据当前工作目录来处理文件路径匹配并返回相对路径结果的?", "query": "path completion matches", "file": "lib/thor/line_editor/readline.rb", "symbol": "PathCompletion", "line": 50, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "我正在实现命令行补全功能,能不能帮我解释一下这个类是如何根据当前工作目录来处理文件路径匹配并返回相对路径结果的?", "query": "path completion matches", "file": "lib/thor/line_editor/readline.rb", "symbol": "PathCompletion", "line": 50, "lang": "zh", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=629-652\nread exit_on_failure? for detail", "file": "lib/thor/base.rb", "symbol": "exit_on_failure?", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=28-51\nread ThorTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "ThorTask", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=123-146\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=14-37\nread print for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=493-516\nread print_at_least_one_required_options for detail", "file": "lib/thor.rb", "symbol": "print_at_least_one_required_options", "line": 493, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=95-118\nread RequiredArgumentMissingError for detail", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=778-801\nread baseclass for detail", "file": "lib/thor/base.rb", "symbol": "baseclass", "line": 778, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=76-99\nread call_myself_with_wrong_arity for detail", "file": "spec/fixtures/script.thor", "symbol": "call_myself_with_wrong_arity", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=600-623\nread retrieve_command_name for detail", "file": "lib/thor.rb", "symbol": "retrieve_command_name", "line": 600, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=23-46\nread revoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoke!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=261-284\nread two_args for detail", "file": "spec/fixtures/script.thor", "symbol": "two_args", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=99-122\nread destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "destination_root", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=50-73\nread PathCompletion for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "PathCompletion", "line": 50, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/option.rb lines=168-191\nread dasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherize", "line": 168, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Al recibir un alias de opción corto (por ejemplo, ':n'), me asegura que siempre empiece con un guion. Si el alias ya tiene guion, no lo modifica; si no, le añade uno delante. También normaliza los valores a un array para manejar casos donde se pase un solo valor o varios.", "query": "normalize option aliases", "file": "lib/thor/parser/option.rb", "symbol": "normalize_aliases", "line": 174, "lang": "es", "candidates": [{"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 19: counter += (word.length + 1)", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 59: @formats << if options[:borders]", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 83: file_destination = File.join(given_destination, file_source.gsub(source, \".\"))", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 12: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 40: @invocations ||= from_superclass(:invocations, {})", "file": "lib/thor/group.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 40: shell.indent do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 249: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 147: content = invoke!(\"app{1}\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 15: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 9: it \"sets the color if specified\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 88: dirname = File.dirname(file_destination).gsub(%r{/\\.$}, \"\")", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 132: end", "file": "lib/thor/command.rb", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 24: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 292: /\\A(#{value}|#{value[0, 1]})\\z/i", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 292, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 17: def invoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 396: xyz #786 last three", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 396, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 119: end", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 3: describe Thor do", "file": "spec/sort_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 16: def install", "file": "Thorfile", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 17: before do", "file": "spec/sort_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 174: def normalize_aliases(aliases)", "file": "lib/thor/parser/option.rb", "symbol": "normalize_aliases", "line": 174, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/terminal.rb\nLine 36: `tput cols 2>/dev/null`.to_i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Al recibir un alias de opción corto (por ejemplo, ':n'), me asegura que siempre empiece con un guion. Si el alias ya tiene guion, no lo modifica; si no, le añade uno delante. También normaliza los valores a un array para manejar casos donde se pase un solo valor o varios.", "query": "normalize option aliases", "file": "lib/thor/parser/option.rb", "symbol": "normalize_aliases", "line": 174, "lang": "es", "candidates": [{"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Al recibir un alias de opción corto (por ejemplo, ':n'), me asegura que siempre empiece con un guion. Si el alias ya tiene guion, no lo modifica; si no, le añade uno delante. También normaliza los valores a un array para manejar casos donde se pase un solo valor o varios.", "query": "normalize option aliases", "file": "lib/thor/parser/option.rb", "symbol": "normalize_aliases", "line": 174, "lang": "es", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=117-140\nread with_optional for detail", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/shell/html_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/html_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=144-167\nread method_missing for detail", "file": "spec/fixtures/script.thor", "symbol": "method_missing", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=4-27\nread command for detail", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=174-197\nread normalize_aliases for detail", "file": "lib/thor/parser/option.rb", "symbol": "normalize_aliases", "line": 174, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/verbose.thor lines=7-30\nread Test for detail", "file": "spec/fixtures/verbose.thor", "symbol": "Test", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/group_spec.rb lines=206-229\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=98-121\nread WhinyGenerator for detail", "file": "spec/fixtures/group.thor", "symbol": "WhinyGenerator", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=12-35\nread exists_and_identical? for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=69-92\nread revoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "revoke!", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=133-156\nread potentially_ambiguous for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=730-753\nread method_added for detail", "file": "lib/thor/base.rb", "symbol": "method_added", "line": 730, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=326-349\nread unix? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "unix?", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Como o Thor processa a lista de argumentos para atribuir valores às switches e verificar os requisitos obrigatórios?", "query": "argument parsing thor", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 40, "lang": "pt", "candidates": [{"text": "File: lib/thor/invocation.rb\nLine 71: # supplied to B. This allows lazy parse of options. Let's suppose you have", "file": "lib/thor/invocation.rb", "symbol": "", "line": 71, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 40: def parse(args)", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 40, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/tree_spec.rb\nLine 19: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 21: def push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 34: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub print_opt -h)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 255: expect(remaining).to eq(%w(--verbose))", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 255, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 21: prepare(array)", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 18: # This parse quick options given as method_options. It makes several", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nLine 5: def parse(key, value)", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nLine 15: def parse(*args)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nLine 11: opts[key] = Thor::Option.parse(key, value) unless value.is_a?(Thor::Option)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 42: def formatted_usage(klass, namespace = true, subcommand = false)", "file": "lib/thor/command.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 75: # Let Thor::Options parse the options first, so it can remove", "file": "lib/thor/base.rb", "symbol": "", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 104: Dir.glob(lookup, File::FNM_DOTMATCH)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 13: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 8: # ==== Parameters", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 23: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 309: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 309, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 2: require \"thor/actions\"", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 337: content = capture(:stdout) { shell.print_in_columns(@array) }", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 36: rescue NoMethodError => e", "file": "lib/thor/command.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 53: # Set color by using a string or one of the defined constants. If a third", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 30: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 37: it \"accepts arrays\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Como o Thor processa a lista de argumentos para atribuir valores às switches e verificar os requisitos obrigatórios?", "query": "argument parsing thor", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 40, "lang": "pt", "candidates": [{"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Como o Thor processa a lista de argumentos para atribuir valores às switches e verificar os requisitos obrigatórios?", "query": "argument parsing thor", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 40, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/util.rb lines=58-81\nread namespaces_in_content for detail", "file": "lib/thor/util.rb", "symbol": "namespaces_in_content", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/application_helper.rb lines=1-24\nread ApplicationHelper for detail", "file": "spec/fixtures/application_helper.rb", "symbol": "ApplicationHelper", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=259-282\nread baseclass for detail", "file": "lib/thor/group.rb", "symbol": "baseclass", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=108-131\nread long_description_unwrapped for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description_unwrapped", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=40-63\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 40, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=117-140\nread template for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=827-850\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 827, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=42-65\nread formatted_usage for detail", "file": "lib/thor/command.rb", "symbol": "formatted_usage", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=131-154\nread find_class_and_command_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_class_and_command_by_namespace", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=104-127\nread local_method? for detail", "file": "lib/thor/command.rb", "symbol": "local_method?", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Je dois implémenter un gestionnaire de contexte imbriqué pour suivre le niveau d'imbrication actuel. L'objet doit permettre d'empiler et de dépiler des contextes tout en maintenant une profondeur exacte. Il faut aussi fournir une méthode pour vérifier si l'on est actuellement dans un contexte actif.", "query": "nested context depth", "file": "lib/thor/nested_context.rb", "symbol": "NestedContext", "line": 2, "lang": "fr", "candidates": [{"text": "File: spec/shell/basic_spec.rb\nLine 512: expect(Thor::LineEditor).to receive(:readline).and_return(\"y\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 512, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 266: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 266, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 148: expect(capture(:stdout) { Thor::Runner.start }).to match(/my_counter N/)", "file": "spec/runner_spec.rb", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 41: defaults.each do |key, value|", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 93: else", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 11: expect(base.shell).to eq(shell)", "file": "spec/shell_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 11: class_option \"opt\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 16: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 176: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 176, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 208: end", "file": "spec/util_spec.rb", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 2: class NestedContext", "file": "lib/thor/nested_context.rb", "symbol": "NestedContext", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/group_spec.rb\nLine 218: klass = Class.new(Thor::Group) do", "file": "spec/group_spec.rb", "symbol": "", "line": 218, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 57: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 538: @no_commands_context ||= NestedContext.new", "file": "lib/thor/base.rb", "symbol": "", "line": 538, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 219: describe \"#template\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 385: def actually_gsub_file(path, flag, args, error_on_no_change, &block)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 385, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 22: end", "file": "lib/thor/group.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 42: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 1: $LOAD_PATH.unshift File.expand_path(\"../lib\", __FILE__)", "file": "Thorfile", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 245: end", "file": "lib/thor/group.rb", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 12: puts \"ok\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 38: def part_two", "file": "spec/register_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 50: config = args.last.is_a?(Hash) ? args.pop : {}", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 5: describe Thor::Actions::CreateLink, unless: windows? do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je dois implémenter un gestionnaire de contexte imbriqué pour suivre le niveau d'imbrication actuel. L'objet doit permettre d'empiler et de dépiler des contextes tout en maintenant une profondeur exacte. Il faut aussi fournir une méthode pour vérifier si l'on est actuellement dans un contexte actif.", "query": "nested context depth", "file": "lib/thor/nested_context.rb", "symbol": "NestedContext", "line": 2, "lang": "fr", "candidates": [{"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\ndefines NestedContext", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je dois implémenter un gestionnaire de contexte imbriqué pour suivre le niveau d'imbrication actuel. L'objet doit permettre d'empiler et de dépiler des contextes tout en maintenant une profondeur exacte. Il faut aussi fournir une méthode pour vérifier si l'on est actuellement dans un contexte actif.", "query": "nested context depth", "file": "lib/thor/nested_context.rb", "symbol": "NestedContext", "line": 2, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=15-38\nread entered? for detail", "file": "lib/thor/nested_context.rb", "symbol": "entered?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=505-528\nread dispatch for detail", "file": "lib/thor.rb", "symbol": "dispatch", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=103-126\nread convert_encoded_instructions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "convert_encoded_instructions", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=789-812\nread initialize_added for detail", "file": "lib/thor/base.rb", "symbol": "initialize_added", "line": 789, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=40-63\nread invoke! for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=321-344\nread show_modules for detail", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=2-25\nread NestedContext for detail", "file": "lib/thor/nested_context.rb", "symbol": "NestedContext", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=194-217\nread print_wrapped for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_wrapped", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=7-30\nread enter for detail", "file": "lib/thor/nested_context.rb", "symbol": "enter", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=304-327\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=117-140\nread with_optional for detail", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=329-352\nread _cleanup_options_and_set for detail", "file": "lib/thor/actions.rb", "symbol": "_cleanup_options_and_set", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=126-149\nread validate! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate!", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions_spec.rb lines=8-31\nread action for detail", "file": "spec/actions_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/tree_spec.rb lines=18-41\nread subcommand1 for detail", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Wie wird festgelegt, ob das Programm bei einem Fehler sofort abbricht?", "query": "exit on failure", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lang": "de", "candidates": [{"text": "File: lib/thor/invocation.rb\nLine 27: end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 50: File.link(render, destination)", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 58: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 3: $VERBOSE = true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 58: expect(File.exist?(destination_path)).to be true", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 25: when \"+\"", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 55: Dir.chdir(File.expand_path(\"../\", __FILE__)) do", "file": "spec/quality_spec.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 3: require \"thor/actions\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 21: else", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 14: def self.exit_on_failure?", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/util_spec.rb\nLine 97: end", "file": "spec/util_spec.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 50: # Holds the shell for the given Thor instance. If no shell is given,", "file": "lib/thor/shell.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 23: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 197: ])", "file": "spec/util_spec.rb", "symbol": "", "line": 197, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 54: error_messages = []", "file": "spec/quality_spec.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 1: require_relative \"terminal\"", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 13: Thor::LineEditor::Basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 29: @default.map(&:dump).join(\" \")", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 70: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 17: get_input", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 18: argument(:command, type: :unknown)", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 16: @depth.positive?", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Wie wird festgelegt, ob das Programm bei einem Fehler sofort abbricht?", "query": "exit on failure", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lang": "de", "candidates": [{"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Wie wird festgelegt, ob das Programm bei einem Fehler sofort abbricht?", "query": "exit on failure", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lang": "de", "candidates": [{"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> group", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> open-uri", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> ../thor", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Wie wird festgelegt, ob das Programm bei einem Fehler sofort abbricht?", "query": "exit on failure", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lang": "de", "candidates": [{"text": "Next: read spec/actions/empty_directory_spec.rb lines=17-40\nread revoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "revoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=115-138\nread say_error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_error", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=123-146\nread version for detail", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=126-149\nread validate! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate!", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=304-327\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=69-92\nread initialize for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=345-368\nread only_one for detail", "file": "spec/fixtures/script.thor", "symbol": "only_one", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=172-195\nread validate_enum_value! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "validate_enum_value!", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=207-230\nread file_collision for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=179-202\nread names_to_switch_names for detail", "file": "lib/thor/parser/options.rb", "symbol": "names_to_switch_names", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=179-202\nread boom for detail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=235-258\nread command_conflict for detail", "file": "spec/fixtures/script.thor", "symbol": "command_conflict", "line": 235, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "¿Cómo se llama el método que se invoca a sí mismo pero con un argumento incorrecto?", "query": "self recursion wrong arity", "file": "spec/fixtures/script.thor", "symbol": "call_myself_with_wrong_arity", "line": 76, "lang": "es", "candidates": [{"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 16: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 242: else", "file": "lib/thor/group.rb", "symbol": "", "line": 242, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 160: after(:each) { FileUtils.rm_rf(@temp_dir) }", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 21: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 239: \"more content\\n\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 510: expect { MyScript.start(%w(call_myself_with_wrong_arity)) }.to raise_error(ArgumentError)", "file": "spec/thor_spec.rb", "symbol": "", "line": 510, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nLine 83: expect(invoke!).to eq(\" identical doc/config.rb\\n\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 76: def call_myself_with_wrong_arity", "file": "spec/fixtures/script.thor", "symbol": "call_myself_with_wrong_arity", "line": 76, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/command_spec.rb\nLine 20: expect(command(bar: :required).formatted_usage(object, false, true)).to eq(\"foo can_has --bar=BAR\")", "file": "spec/command_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 3: class Thor", "file": "lib/thor/shell.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 8: puts \"Invoked!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 11: if SOME_STRING.encoding.name == \"UTF-8\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 83: attr_reader :switches, :unknown", "file": "lib/thor/error.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 8: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 156: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 75: error.unknown.flat_map { |unknown| spell_checker.correct(unknown) }.uniq.map(&:inspect)", "file": "lib/thor/error.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 18: it \"has implicit UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 72: it \"ignores files within excluding/ directories when exclude_pattern is provided\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 59: def self.exit_on_failure?", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 73: describe \"#class_exclusive_option_names\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 76: # options", "file": "lib/thor.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 191: it \"escapes globs in path\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 71: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 14: it \"respects explicit non-UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "¿Cómo se llama el método que se invoca a sí mismo pero con un argumento incorrecto?", "query": "self recursion wrong arity", "file": "spec/fixtures/script.thor", "symbol": "call_myself_with_wrong_arity", "line": 76, "lang": "es", "candidates": [{"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines call_myself_with_wrong_arity", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "¿Cómo se llama el método que se invoca a sí mismo pero con un argumento incorrecto?", "query": "self recursion wrong arity", "file": "spec/fixtures/script.thor", "symbol": "call_myself_with_wrong_arity", "line": 76, "lang": "es", "candidates": [{"text": "Next: read spec/sort_spec.rb lines=35-58\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=76-99\nread call_myself_with_wrong_arity for detail", "file": "spec/fixtures/script.thor", "symbol": "call_myself_with_wrong_arity", "line": 76, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=251-274\nread error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "error", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=56-79\nread exists? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=434-457\nread disable_required_check! for detail", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=21-44\nread release for detail", "file": "Thorfile", "symbol": "release", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=259-282\nread baseclass for detail", "file": "lib/thor/group.rb", "symbol": "baseclass", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/rake_compat_spec.rb lines=8-31\nread initialize for detail", "file": "spec/rake_compat_spec.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=537-560\nread no_commands_context for detail", "file": "lib/thor/base.rb", "symbol": "no_commands_context", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=177-200\nread check_unknown_options? for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/html.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/basic_spec.rb lines=5-28\nread shell for detail", "file": "spec/shell/basic_spec.rb", "symbol": "shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=6-29\nread Thor for detail", "file": "lib/thor/shell/color.rb", "symbol": "Thor", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=4-27\nread Sandbox for detail", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=384-407\nread diff_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "diff_tool", "line": 384, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=14-37\nread ok for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "El contexto anidado no está restaurando correctamente el estado anterior después de ejecutar un bloque si ocurre un error durante la ejecución.", "query": "nested context yield", "file": "lib/thor/nested_context.rb", "symbol": "enter", "line": 7, "lang": "es", "candidates": [{"text": "File: lib/thor/actions/empty_directory.rb\nLine 40: # Checks if the destination file already exists.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 77: # :on_red", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 203: [item]", "file": "lib/thor/group.rb", "symbol": "", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 532: no_commands_context.enter(&block)", "file": "lib/thor/base.rb", "symbol": "", "line": 532, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 5: class ColumnPrinter", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 14: subcommand \"sub\", Subcommand", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 17: r.close", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 72: # It also stores the given and relative destination. Let's suppose our", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 29: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 16: else", "file": "lib/thor/shell.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 69: protected", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 115: expect(Thor::LineEditor).to receive(:readline).with(\"Overwrite #{file}? (enter \\\"h\\\" for help) [Ynaqdhm] \", anything).and_return(\"s\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 115, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 1: require \"helper\"", "file": "spec/encoding_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 213: %[Overwrite #{destination}? (enter \"h\" for help) #{options}],", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 213, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nLine 7: def enter", "file": "lib/thor/nested_context.rb", "symbol": "enter", "line": 7, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 15: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 666: include Thor::Base", "file": "lib/thor.rb", "symbol": "", "line": 666, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 43: allow(ENV).to receive(:[]).with(\"NO_COLOR\").and_return(\"\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 286: end", "file": "lib/thor/group.rb", "symbol": "", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 7: def command1", "file": "spec/tree_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 6: require \"readline\"", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 104: it \"prints a message to the user containing a default and sets the default if only enter is pressed\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 104, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 88: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 30: stdout.puts line.insert(0, \" \" * @indent)", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "El contexto anidado no está restaurando correctamente el estado anterior después de ejecutar un bloque si ocurre un error durante la ejecución.", "query": "nested context yield", "file": "lib/thor/nested_context.rb", "symbol": "enter", "line": 7, "lang": "es", "candidates": [{"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\ndefines enter", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "El contexto anidado no está restaurando correctamente el estado anterior después de ejecutar un bloque si ocurre un error durante la ejecución.", "query": "nested context yield", "file": "lib/thor/nested_context.rb", "symbol": "enter", "line": 7, "lang": "es", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=330-353\nread ask_simply for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_simply", "line": 330, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=91-114\nread required_options for detail", "file": "lib/thor/command.rb", "symbol": "required_options", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=225-248\nread initialize_thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "initialize_thorfiles", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=3-26\nread Terminal for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Terminal", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=49-72\nread capture for detail", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=7-30\nread enter for detail", "file": "lib/thor/nested_context.rb", "symbol": "enter", "line": 7, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/option.rb lines=99-122\nread aliases_for_usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "aliases_for_usage", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=213-236\nread globs_for for detail", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=2-25\nread NestedContext for detail", "file": "lib/thor/nested_context.rb", "symbol": "NestedContext", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/command.thor lines=3-26\nread Amazing for detail", "file": "spec/fixtures/command.thor", "symbol": "Amazing", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=424-447\nread stop_on_unknown_option? for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=72-95\nread replace for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "replace", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=67-90\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=79-102\nread shift for detail", "file": "lib/thor/parser/options.rb", "symbol": "shift", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=67-90\nread pretend? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "pretend?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=15-38\nread entered? for detail", "file": "lib/thor/nested_context.rb", "symbol": "entered?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/runner_spec.rb lines=5-28\nread when_no_thorfiles_exist for detail", "file": "spec/runner_spec.rb", "symbol": "when_no_thorfiles_exist", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "这段代码是如何处理命令执行中找不到对应方法的情况的?", "query": "handle no command error", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lang": "zh", "candidates": [{"text": "File: lib/thor/actions.rb\nLine 245: # run('ln -s ~/edge rails')", "file": "lib/thor/actions.rb", "symbol": "", "line": 245, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 22: action add_file create_file in_root inside run run_ruby_script)", "file": "lib/thor/base.rb", "symbol": "", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 78: @pile = arg + @pile", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 20: require \"diff/lcs\" # You need diff/lcs installed to run specs (but not to run Thor).", "file": "spec/helper.rb", "symbol": "", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nLine 554: create run: Thor::Option.new(\"run\", type: :numeric, repeatable: true)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 554, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nLine 70: @error = error", "file": "lib/thor/error.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 20: def unix?", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 307: m - merge, run merge tool", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 307, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nLine 23: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 62: # Don't output 2 trailing spaces when printing the last column", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 301: expect(shell).to receive(:mute?).and_return(true)", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 301, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 114: end", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 22: RED = \"\\e[31m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 82: # If force is true, run the action, otherwise check if it's not being", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 82, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 52: # of the returned String.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 5: module LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 142: def run(instance, args = [])", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nLine 8: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 99: #", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 288: lines = [\"first line\", \"second line\", \" third line\", \" fourth line\"]", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 23: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 2: require_relative \"terminal\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 466: # Returns the commands for this Thor class.", "file": "lib/thor/base.rb", "symbol": "", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 268: expect(action(:apply, @file)).to match(/cool padding/)", "file": "spec/actions_spec.rb", "symbol": "", "line": 268, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "这段代码是如何处理命令执行中找不到对应方法的情况的?", "query": "handle no command error", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lang": "zh", "candidates": [{"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "这段代码是如何处理命令执行中找不到对应方法的情况的?", "query": "handle no command error", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=12-35\nread initialize for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "initialize", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=62-85\nread validate! for detail", "file": "lib/thor/parser/argument.rb", "symbol": "validate!", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=79-102\nread can_display_colors? for detail", "file": "lib/thor/shell/html.rb", "symbol": "can_display_colors?", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=118-141\nread parse_array for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_array", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=142-165\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=163-186\nread attr_accessor for detail", "file": "lib/thor/base.rb", "symbol": "attr_accessor", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=225-248\nread current_is_value? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_value?", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=117-140\nread with_optional for detail", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=174-197\nread normalize_aliases for detail", "file": "lib/thor/parser/option.rb", "symbol": "normalize_aliases", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=104-127\nread camel_case for detail", "file": "lib/thor/util.rb", "symbol": "camel_case", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=110-133\nread G for detail", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=96-119\nread print_border_separator for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print_border_separator", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=139-162\nread parse_numeric for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_numeric", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=83-106\nread invoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "invoke!", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=128-151\nread bar for detail", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=24-47\nread find_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_by_namespace", "line": 24, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "액션 실행 시 표준 출력을 캡처해서 취소 동작을 수행하는 테스트 메서드가 어디 있지?", "query": "capture stdout revoke", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lang": "ko", "candidates": [{"text": "File: spec/script_exit_status_spec.rb\nLine 9: r,w= IO.pipe", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 103: def convert_encoded_instructions(filename)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 190: it \"returns true for a command that is defined in the class\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 22: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 171: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 47: exists? && File.binread(destination) == String.new(render).force_encoding(\"ASCII-8BIT\")", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 13: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 33: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 43: it \"creates a symbolic link\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 114: describe \"with default type\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 3: module Terminal", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 39: it \"the help command on the subcommand and after it should result in the same output\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 15: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 216: describe \"install/update\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 16: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 74: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 36: it \"returns usage for string types\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 1: require_relative \"column_printer\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 21: def revoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/rake_compat.rb\nLine 69: super", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 53: given_destination", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 39: # argument :first, :type => :numeric", "file": "lib/thor/shell.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "액션 실행 시 표준 출력을 캡처해서 취소 동작을 수행하는 테스트 메서드가 어디 있지?", "query": "capture stdout revoke", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lang": "ko", "candidates": [{"text": "File: spec/actions/empty_directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\ndefines revoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nsibling in spec/actions", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "액션 실행 시 표준 출력을 캡처해서 취소 동작을 수행하는 테스트 메서드가 어디 있지?", "query": "capture stdout revoke", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "액션 실행 시 표준 출력을 캡처해서 취소 동작을 수행하는 테스트 메서드가 어디 있지?", "query": "capture stdout revoke", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/base.rb lines=750-773\nread from_superclass for detail", "file": "lib/thor/base.rb", "symbol": "from_superclass", "line": 750, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=592-615\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=203-226\nread current_is_switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch?", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=8-31\nread encoding for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=17-40\nread invoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=84-107\nread current_is_value? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=446-469\nread remove_class_option for detail", "file": "lib/thor/base.rb", "symbol": "remove_class_option", "line": 446, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=6-29\nread readline for detail", "file": "lib/thor/line_editor.rb", "symbol": "readline", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=20-43\nread RakeCompat for detail", "file": "lib/thor/rake_compat.rb", "symbol": "RakeCompat", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=194-217\nread thor_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "thor_yaml", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=110-133\nread G for detail", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=31-54\nread file for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=10-33\nread create_file for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=330-353\nread ask_simply for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_simply", "line": 330, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=142-165\nread update for detail", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=21-44\nread revoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/actions/create_file_spec.rb lines=25-48\nread silence! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "silence!", "line": 25, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=49-72\nread invoke! for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke!", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=167-190\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=28-51\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=313-336\nread show_diff for detail", "file": "lib/thor/shell/basic.rb", "symbol": "show_diff", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=230-253\nread cow for detail", "file": "spec/fixtures/script.thor", "symbol": "cow", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=102-125\nread invoke for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=248-271\nread parsing_options? for detail", "file": "lib/thor/parser/options.rb", "symbol": "parsing_options?", "line": 248, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "thor 하위 클래스에서 옵션 처리와 메서드 구현 확인", "query": "thor subcommand options", "file": "spec/fixtures/invoke.thor", "symbol": "B", "line": 39, "lang": "ko", "candidates": [{"text": "File: lib/thor/util.rb\nLine 92: str.gsub(/\\B[A-Z]/, '_\\&').squeeze(\"_\") =~ /_*(.*)/", "file": "lib/thor/util.rb", "symbol": "", "line": 92, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nLine 11: full_command,", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 40: def invoke!", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 53: describe \"#print_default\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 250: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 250, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 148: err = \"Expected #{expected_type} default value for '#{switch_name}'; got #{@default.inspect} (#{default_type})\"", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 36: capture(:stdout) { action.revoke! }", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 146: # When option A and B are exclusive, if A and B are given at the same time,", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 146, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 86: @formats[index]", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 201: hash = {\"Foo\" => B.class_options.values}", "file": "spec/base_spec.rb", "symbol": "", "line": 201, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 41: def task(*)", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 8: desc \"describe NAME\", \"say that someone is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 13: w.close", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 39: class B < Thor", "file": "spec/fixtures/invoke.thor", "symbol": "B", "line": 39, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 58: def namespaces_in_content(contents, file = __FILE__)", "file": "lib/thor/util.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 57: # class B < Thor", "file": "lib/thor/invocation.rb", "symbol": "", "line": 57, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nLine 90: describe \"#identical?\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 142: if !klass && fallback # try a command in the default namespace", "file": "lib/thor/util.rb", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 113: \"expected\"", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 49: name = key", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 143: PluginWithDefaultcommandAndDeclaredArgument,", "file": "spec/register_spec.rb", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 155: success = content.gsub!(regexp, string)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 24: say \"- #{diff.old_element.chomp}\", :red, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "thor 하위 클래스에서 옵션 처리와 메서드 구현 확인", "query": "thor subcommand options", "file": "spec/fixtures/invoke.thor", "symbol": "B", "line": 39, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\ndefines B", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "thor 하위 클래스에서 옵션 처리와 메서드 구현 확인", "query": "thor subcommand options", "file": "spec/fixtures/invoke.thor", "symbol": "B", "line": 39, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/group.rb lines=110-133\nread invoke_from_option for detail", "file": "lib/thor/group.rb", "symbol": "invoke_from_option", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=288-311\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=145-168\nread _shared_configuration for detail", "file": "lib/thor/invocation.rb", "symbol": "_shared_configuration", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=84-107\nread current_is_value? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=39-62\nread B for detail", "file": "spec/fixtures/invoke.thor", "symbol": "B", "line": 39, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=274-297\nread parse_peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_peek", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=325-348\nread _shared_configuration for detail", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=186-209\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=358-381\nread class_exclusive for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=43-66\nread ClassOptionGroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "ClassOptionGroupPlugin", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=501-524\nread remove_command for detail", "file": "lib/thor/base.rb", "symbol": "remove_command", "line": 501, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=23-46\nread rake_classes for detail", "file": "lib/thor/rake_compat.rb", "symbol": "rake_classes", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=56-79\nread exists? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=99-122\nread file_level_lookup for detail", "file": "lib/thor/actions/directory.rb", "symbol": "file_level_lookup", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Necesito ver cómo se configuran la ruta de destino y las opciones de verbosidad al inicializar esta acción de directorio vacío. Busco entender la lógica de fusión de las opciones por defecto con las proporcionadas.", "query": "thor empty directory init", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lang": "es", "candidates": [{"text": "File: lib/thor/actions/empty_directory.rb\nLine 34: def initialize(base, destination, config = {})", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell_spec.rb\nLine 25: it \"uses $THOR_SHELL\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 40: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub help)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 26: def initialize(arguments = [])", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 11: puts \"ok\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 168: def dasherize(str)", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 140: expect(error).to match(/ERROR: \"thor two\" was called with arguments/)", "file": "spec/group_spec.rb", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 245: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 14: # Thor::Error is raised when it's caused by wrong usage of thor classes. Those", "file": "lib/thor/error.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 195: @thor_yaml ||= begin", "file": "lib/thor/runner.rb", "symbol": "", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 52: def enum_to_s", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 113: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 100: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 111: hide: true", "file": "spec/register_spec.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 255: describe \"with required values\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 255, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 12: def initialize(hash = {})", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 54: def initialize(args = [], local_options = {}, config = {})", "file": "lib/thor/base.rb", "symbol": "", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nLine 25: describe \"#initialize\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 25, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 195: puts \"Open sesame!\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 23: File.readlines(filename).each_with_index do |line, number|", "file": "spec/quality_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 7: def initialize(name, options = {})", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 32: def initialize(hash_options = {}, defaults = {}, stop_on_unknown = false, disable_required_check = false, relations = {})", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 32, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Necesito ver cómo se configuran la ruta de destino y las opciones de verbosidad al inicializar esta acción de directorio vacío. Busco entender la lógica de fusión de las opciones por defecto con las proporcionadas.", "query": "thor empty directory init", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lang": "es", "candidates": [{"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Necesito ver cómo se configuran la ruta de destino y las opciones de verbosidad al inicializar esta acción de directorio vacío. Busco entender la lógica de fusión de las opciones por defecto con las proporcionadas.", "query": "thor empty directory init", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lang": "es", "candidates": [{"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Necesito ver cómo se configuran la ruta de destino y las opciones de verbosidad al inicializar esta acción de directorio vacío. Busco entender la lógica de fusión de las opciones por defecto con las proporcionadas.", "query": "thor empty directory init", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lang": "es", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=221-244\nread MyDefaults for detail", "file": "spec/fixtures/script.thor", "symbol": "MyDefaults", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions.rb lines=133-156\nread find_in_source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "find_in_source_paths", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=71-94\nread example_default_command for detail", "file": "spec/fixtures/script.thor", "symbol": "example_default_command", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=57-80\nread PluginWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefault", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=130-153\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=48-71\nread Child1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "Child1", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=158-181\nread parse_string for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_string", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=99-122\nread file_level_lookup for detail", "file": "lib/thor/actions/directory.rb", "symbol": "file_level_lookup", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=483-506\nread all_commands for detail", "file": "lib/thor/base.rb", "symbol": "all_commands", "line": 483, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=40-63\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=74-97\nread thor_classes_in for detail", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=120-143\nread I for detail", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=4-27\nread EncodingOther for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "EncodingOther", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "l'initialisation du terminal n'applique pas la largeur de colonne spécifiée dans les options, ce qui provoque un débordement du contenu dans la console.", "query": "table printer width", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/enum.thor\nLine 8: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 21: else", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 5: def initialize(name, description, long_description, wrap_long_description, usage, options = nil, options_relation = nil)", "file": "lib/thor/command.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 21: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 5: module LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 141: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 3: class Amazing < Thor", "file": "spec/fixtures/command.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 110: mappings.each do |key, value|", "file": "lib/thor.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 1: class Thor", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 13: def initialize #:nodoc:", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 49: it \"copies the whole directory recursively to the default destination\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 7: module Shell", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 71: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 54: def initialize(text)", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 165: expect(File.directory?(file)).to be true", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 8: def initialize(name, options = {})", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nLine 5: desc \"command1\", \"A top level command\"", "file": "spec/tree_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 43: FileUtils.mkdir_p(File.dirname(destination))", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 9: def initialize(stdout, options = {})", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell.rb\nLine 31: # Add shell to initialize config values.", "file": "lib/thor/shell.rb", "symbol": "", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nLine 33: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 25: describe \"#initialize\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 25, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nLine 1: require \"helper\"", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 23: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "l'initialisation du terminal n'applique pas la largeur de colonne spécifiée dans les options, ce qui provoque un débordement du contenu dans la console.", "query": "table printer width", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lang": "fr", "candidates": [{"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\ndefines initialize", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "l'initialisation du terminal n'applique pas la largeur de colonne spécifiée dans les options, ce qui provoque un débordement du contenu dans la console.", "query": "table printer width", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "l'initialisation du terminal n'applique pas la largeur de colonne spécifiée dans les options, ce qui provoque un débordement du contenu dans la console.", "query": "table printer width", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=253-276\nread zero_args for detail", "file": "spec/fixtures/script.thor", "symbol": "zero_args", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=541-564\nread no_commands? for detail", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=168-191\nread user_home for detail", "file": "lib/thor/util.rb", "symbol": "user_home", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=31-54\nread file for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=329-352\nread _cleanup_options_and_set for detail", "file": "lib/thor/actions.rb", "symbol": "_cleanup_options_and_set", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=208-231\nread disable_required_check? for detail", "file": "lib/thor/base.rb", "symbol": "disable_required_check?", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=143-166\nread content for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=112-135\nread private_file_name for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=552-575\nread baseclass for detail", "file": "lib/thor.rb", "symbol": "baseclass", "line": 552, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=320-343\nread subcommands for detail", "file": "lib/thor.rb", "symbol": "subcommands", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=126-149\nread validate! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate!", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=248-271\nread parsing_options? for detail", "file": "lib/thor/parser/options.rb", "symbol": "parsing_options?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=64-87\nread invoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=722-745\nread inherited for detail", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "como esse método gera os padrões de busca para encontrar arquivos de tarefas?", "query": "Thorfile globs path", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lang": "pt", "candidates": [{"text": "File: spec/tree_spec.rb\nLine 27: let(:shell) { Thor::Shell::Basic.new }", "file": "spec/tree_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 130: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 8: desc \"describe NAME\", \"say that someone is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 258: thorfiles = Thor::Util.globs_for(path).map { |g| Dir[g] }.flatten", "file": "lib/thor/runner.rb", "symbol": "", "line": 258, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 526: opts = nil", "file": "lib/thor.rb", "symbol": "", "line": 526, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 29: say \"+ #{diff.new_element.chomp}\", :green, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 10: def describe(name, opts)", "file": "spec/fixtures/command.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 13: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 1: require \"helper\"", "file": "spec/tree_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 52: let(:config) { {symbolic: false} }", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 79: else", "file": "lib/thor/actions.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 333: def at_least_one", "file": "spec/fixtures/script.thor", "symbol": "", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 17: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 25: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 213: def globs_for(path)", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 75: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 55: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 36: # ==== Examples", "file": "lib/thor/shell.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 8: desc \"describe NAME\", \"say that someone is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 321: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 519: expect(help).to match(/h \\- help, show this help/)", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 519, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 38: return true if defined?(Diff::LCS)", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 33: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 190: describe \"#globs_for\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 190, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "como esse método gera os padrões de busca para encontrar arquivos de tarefas?", "query": "Thorfile globs path", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lang": "pt", "candidates": [{"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "thor", "task": "como esse método gera os padrões de busca para encontrar arquivos de tarefas?", "query": "Thorfile globs path", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "como esse método gera os padrões de busca para encontrar arquivos de tarefas?", "query": "Thorfile globs path", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lang": "pt", "candidates": [{"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=634-657\nread find_command_possibilities for detail", "file": "lib/thor.rb", "symbol": "find_command_possibilities", "line": 634, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=589-612\nread defined_in_gem? for detail", "file": "lib/thor.rb", "symbol": "defined_in_gem?", "line": 589, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=179-202\nread boom for detail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=17-40\nread Util for detail", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=142-165\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=24-47\nread find_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_by_namespace", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=213-236\nread globs_for for detail", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/command.rb lines=42-65\nread formatted_usage for detail", "file": "lib/thor/command.rb", "symbol": "formatted_usage", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=60-83\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=4-27\nread Sandbox for detail", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=113-136\nread indentation for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=288-311\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=767-790\nread hi for detail", "file": "spec/thor_spec.rb", "symbol": "hi", "line": 767, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=128-151\nread bar for detail", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=47-70\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=108-131\nread are_colors_supported? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Comment convertir une clé en chaîne de caractères uniquement si c'est un symbole ?", "query": "convert key string", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "convert_key", "line": 83, "lang": "fr", "candidates": [{"text": "File: lib/thor/shell/html.rb\nLine 32: # Set the terminal's background HTML color to black.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 16: # rdoc.rb.tt", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 28: end", "file": "Thorfile", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 11: ret = \"#{name} is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 104: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 15: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 17: # Class which holds create directory logic. This is the base class for", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 37: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 139: base.shell.say_status status, relative_destination, color if config[:verbose]", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 73: expect(Thor::Util.snake_case(\"FOO_BAR\")).to eq(\"foo_bar\")", "file": "spec/util_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 133: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 872: it \"send as a command name\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 872, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 56: def exists?", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 26: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 1: #!/usr/bin/ruby", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 1: # frozen_string_literal: true", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 4: module Actions", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 22: it \"raises an error if argument is required and has default values\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 37: end", "file": "spec/command_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 110: destination = File.join(thor_root, thor_yaml[as][:filename])", "file": "lib/thor/runner.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 22: desc \"sub\", \"Subcommands\"", "file": "spec/tree_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 32: def corrections", "file": "lib/thor/error.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 83: def convert_key(key)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "convert_key", "line": 83, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Comment convertir une clé en chaîne de caractères uniquement si c'est un symbole ?", "query": "convert key string", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "convert_key", "line": 83, "lang": "fr", "candidates": [{"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Comment convertir une clé en chaîne de caractères uniquement si c'est un symbole ?", "query": "convert key string", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "convert_key", "line": 83, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=11-34\nread HashWithIndifferentAccess for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=71-94\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=85-108\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=375-398\nread with_output_buffer for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "with_output_buffer", "line": 375, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=722-745\nread inherited for detail", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoker", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=43-66\nread indent for detail", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=12-35\nread check_for_tab_characters for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=27-50\nread delete for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "delete", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=83-106\nread convert_key for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "convert_key", "line": 83, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=329-352\nread class_option for detail", "file": "lib/thor/base.rb", "symbol": "class_option", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=117-140\nread with_optional for detail", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=325-348\nread _shared_configuration for detail", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=112-135\nread are_colors_disabled? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_disabled?", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=1-24\nread Enum for detail", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=692-715\nread build_command_tree for detail", "file": "lib/thor.rb", "symbol": "build_command_tree", "line": 692, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=12-35\nread initialize for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "initialize", "line": 12, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "There is a method that takes a string and returns an escaped version using the CGI library, but it lacks explicit documentation regarding the characters being handled.", "query": "CGI escape HTML", "file": "lib/thor/util.rb", "symbol": "escape_html", "line": 280, "lang": "en", "candidates": [{"text": "File: lib/thor/util.rb\nLine 280: def escape_html(string)", "file": "lib/thor/util.rb", "symbol": "escape_html", "line": 280, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/basic.rb\nLine 306: d - diff, show the differences between the old and the new", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 306, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 50: File.link(render, destination)", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 1: #!/usr/bin/ruby", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 57: \"#{Thor::Util.escape_html(string)}\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 57, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nLine 7: include Thor::RakeCompat", "file": "Thorfile", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 47: exists? && File.binread(destination) == String.new(render).force_encoding(\"ASCII-8BIT\")", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 137: # Adds an option to the set of method options. If :for is given as option,", "file": "lib/thor.rb", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 62: a[0] == :help ? -1 : a[0] <=> b[0]", "file": "spec/sort_spec.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 67: end", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 109: end", "file": "lib/thor/actions.rb", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 7: def initialize(name, options = {})", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 65: # The available colors are:", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 39: expect { WhinyGenerator.start }.to raise_error(ArgumentError, /thor wrong_arity takes 1 argument, but it should not/)", "file": "spec/group_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 16: counter = 0 if word.include? \"\\n\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 91: # The old API was `set_color(color, bold=boolean)`. We", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 25: expect do", "file": "spec/group_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 74: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 134: allow(YAML).to receive(:load_file).and_return(@original_yaml)", "file": "spec/runner_spec.rb", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 393: expect(runner).to receive(:system).with(\"thor list --foo 1 2 3\")", "file": "spec/actions_spec.rb", "symbol": "", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 76: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 95: end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 85: if colors.compact.empty? || !can_display_colors?", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 94: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "There is a method that takes a string and returns an escaped version using the CGI library, but it lacks explicit documentation regarding the characters being handled.", "query": "CGI escape HTML", "file": "lib/thor/util.rb", "symbol": "escape_html", "line": 280, "lang": "en", "candidates": [{"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "There is a method that takes a string and returns an escaped version using the CGI library, but it lacks explicit documentation regarding the characters being handled.", "query": "CGI escape HTML", "file": "lib/thor/util.rb", "symbol": "escape_html", "line": 280, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "There is a method that takes a string and returns an escaped version using the CGI library, but it lacks explicit documentation regarding the characters being handled.", "query": "CGI escape HTML", "file": "lib/thor/util.rb", "symbol": "escape_html", "line": 280, "lang": "en", "candidates": [{"text": "Next: read lib/thor/util.rb lines=280-303\nread escape_html for detail", "file": "lib/thor/util.rb", "symbol": "escape_html", "line": 280, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/util.rb lines=17-40\nread Util for detail", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=73-96\nread ask for detail", "file": "lib/thor/shell/html.rb", "symbol": "ask", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=80-103\nread ask for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=109-132\nread CommandConflict for detail", "file": "spec/fixtures/group.thor", "symbol": "CommandConflict", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=274-297\nread Apple for detail", "file": "spec/fixtures/script.thor", "symbol": "Apple", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=167-190\nread installed for detail", "file": "lib/thor/runner.rb", "symbol": "installed", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=547-570\nread shell for detail", "file": "spec/thor_spec.rb", "symbol": "shell", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=4-27\nread Sandbox for detail", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=24-47\nread find_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_by_namespace", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=126-149\nread on_file_clash_behavior for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_file_clash_behavior", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=86-109\nread force_or_skip_or_conflict for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_or_skip_or_conflict", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=203-226\nread method_exclusive for detail", "file": "lib/thor.rb", "symbol": "method_exclusive", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=7-30\nread bugs for detail", "file": "spec/fixtures/help.thor", "symbol": "bugs", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=96-119\nread public_method? for detail", "file": "lib/thor/command.rb", "symbol": "public_method?", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=446-469\nread remove_class_option for detail", "file": "lib/thor/base.rb", "symbol": "remove_class_option", "line": 446, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=190-213\nread thor_root for detail", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=592-615\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "コマンドが見つからない時のエラーハンドリングで、引数をそのまま返す処理はどこにありますか?", "query": "handle no command", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lang": "ja", "candidates": [{"text": "File: lib/thor/actions.rb\nLine 13: super(base)", "file": "lib/thor/actions.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 21: end", "file": "lib/thor/error.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 39: task = ThorTask.tasks[\"cool\"]", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 24: self.class.handle_no_command_error(command, false) if klass.nil?", "file": "lib/thor/runner.rb", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 614: def handle_no_command_error(command, has_namespace = $thor_runner) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "", "line": 614, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nLine 7: module Shell", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 150: message << if source_paths.empty?", "file": "lib/thor/actions.rb", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 261: handle_no_command_error(meth) unless command", "file": "lib/thor.rb", "symbol": "", "line": 261, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 41: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 2: require \"thor/actions\"", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 45: config[:symbolic] = true if config[:symbolic].nil?", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 71: #", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 25: instance.class.handle_no_command_error(name)", "file": "lib/thor/command.rb", "symbol": "", "line": 25, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 88: # String", "file": "lib/thor/util.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 62: def validate!", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 16: @depth.positive?", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 3: class Amazing < Thor", "file": "spec/fixtures/command.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 72: def self.handle_no_command_error(name)", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/html.rb\nLine 16: BLACK = \"color: black\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 402: # puts \"diagnostic output\" if options[:verbose]", "file": "lib/thor.rb", "symbol": "", "line": 402, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 19: def self.parse(*args)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 222: commands.keys.include?(command_name)", "file": "lib/thor/group.rb", "symbol": "", "line": 222, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 250: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 250, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "コマンドが見つからない時のエラーハンドリングで、引数をそのまま返す処理はどこにありますか?", "query": "handle no command", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lang": "ja", "candidates": [{"text": "File: spec/subcommand_spec.rb\nsibling in spec", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nsibling in spec", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\ndefines handle_no_command_error", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "thor", "task": "コマンドが見つからない時のエラーハンドリングで、引数をそのまま返す処理はどこにありますか?", "query": "handle no command", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "コマンドが見つからない時のエラーハンドリングで、引数をそのまま返す処理はどこにありますか?", "query": "handle no command", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=64-87\nread relative_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "relative_matches", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/command_spec.rb lines=4-27\nread command for detail", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/quality_spec.rb lines=12-35\nread check_for_tab_characters for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=55-78\nread Parent for detail", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=72-95\nread handle_no_command_error for detail", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/application.rb lines=1-24\nread Application for detail", "file": "spec/fixtures/application.rb", "symbol": "Application", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=80-103\nread ask for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=65-88\nread peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=172-195\nread validate_enum_value! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "validate_enum_value!", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=4-27\nread Base for detail", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=358-381\nread class_exclusive for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=145-168\nread _shared_configuration for detail", "file": "lib/thor/invocation.rb", "symbol": "_shared_configuration", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=78-101\nread long_desc for detail", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=385-408\nread actually_gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "actually_gsub_file", "line": 385, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=767-790\nread hi for detail", "file": "spec/thor_spec.rb", "symbol": "hi", "line": 767, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=68-91\nread peek for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "peek", "line": 68, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "查找用于初始化命令行参数集合并处理互斥与必选逻辑的方法", "query": "thor options create", "file": "spec/parser/options_spec.rb", "symbol": "create", "line": 5, "lang": "zh", "candidates": [{"text": "File: spec/encoding_spec.rb\nLine 7: Thor::Util.load_thorfile(File.expand_path(\"./fixtures/#{filename}\", __dir__))", "file": "spec/encoding_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 44: it \"does not create a file if pretending\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 89: next if dirname == given_destination", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 5: def create(opts, defaults = {}, stop_on_unknown = false, exclusives = [], at_least_ones = [])", "file": "spec/parser/options_spec.rb", "symbol": "create", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 86: expect(File.exist?(@action.destination)).to be false", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 110: def invoke_from_option(*names, &block)", "file": "lib/thor/group.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 13: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 23: # It will create a doc directory in the destination with the following", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 44: it \"does not create a directory in pretend mode\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nLine 40: expect(task).to be", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 6: print options[\"opt\"]", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 12: describe \"#formatted_usage\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 58: else", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 138: it \"does not create an accessor for it\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 138, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 64: end", "file": "lib/thor.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 99: self[$1] == args.first", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 24: next if line =~ /^\\s+#.*\\s+\\n$/", "file": "spec/quality_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 10: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 8: puts \"Invoked!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 35: # Check if Diff::LCS is loaded. If it is, use it to create pretty output", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 200: item = []", "file": "lib/thor/group.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 21: def push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 17: # Class which holds create directory logic. This is the base class for", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 99: # user.rb", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "查找用于初始化命令行参数集合并处理互斥与必选逻辑的方法", "query": "thor options create", "file": "spec/parser/options_spec.rb", "symbol": "create", "line": 5, "lang": "zh", "candidates": [{"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nsibling in spec/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\ndefines create", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nsibling in spec/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nsibling in spec/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "查找用于初始化命令行参数集合并处理互斥与必选逻辑的方法", "query": "thor options create", "file": "spec/parser/options_spec.rb", "symbol": "create", "line": 5, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "查找用于初始化命令行参数集合并处理互斥与必选逻辑的方法", "query": "thor options create", "file": "spec/parser/options_spec.rb", "symbol": "create", "line": 5, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/shell/table_printer.rb lines=96-119\nread print_border_separator for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print_border_separator", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=24-47\nread remaining for detail", "file": "spec/parser/options_spec.rb", "symbol": "remaining", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/parser/options_spec.rb lines=16-39\nread parse for detail", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=64-87\nread C for detail", "file": "spec/fixtures/invoke.thor", "symbol": "C", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=629-652\nread exit_on_failure? for detail", "file": "lib/thor/base.rb", "symbol": "exit_on_failure?", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/options_spec.rb", "symbol": "create", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions.rb lines=329-352\nread _cleanup_options_and_set for detail", "file": "lib/thor/actions.rb", "symbol": "_cleanup_options_and_set", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=277-300\nread rotten_apple for detail", "file": "spec/fixtures/script.thor", "symbol": "rotten_apple", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=216-239\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=95-118\nread print_status for detail", "file": "spec/fixtures/invoke.thor", "symbol": "print_status", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=165-188\nread print_in_columns for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_in_columns", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=79-102\nread can_display_colors? for detail", "file": "lib/thor/shell/html.rb", "symbol": "can_display_colors?", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=130-153\nread say_status for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_status", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=21-44\nread revoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/html.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=23-46\nread rake_classes for detail", "file": "lib/thor/rake_compat.rb", "symbol": "rake_classes", "line": 23, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "터미널 창 너비에 맞춰서 텍스트 줄바꿈을 해주는 로직을 찾고 있어요. 들여쓰기랑 단락 구분까지 고려해서 출력하는 코드가 어디에 있나요?", "query": "terminal text wrap", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "WrappedPrinter", "line": 6, "lang": "ko", "candidates": [{"text": "File: lib/thor/invocation.rb\nLine 104: warn \"[Thor] Calling invoke() without argument is deprecated. Please use invoke_all instead.\\n#{caller.join(\"\\n\")}\"", "file": "lib/thor/invocation.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 17: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 10: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 152: #", "file": "lib/thor/util.rb", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 174: def normalize_aliases(aliases)", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 117: \"Do a bunch of things in a row\",", "file": "spec/register_spec.rb", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 2: # frozen_string_literal: true", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 18: ExitStatus.start(ARGV)", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 4: class Thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 43: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 3: gem_dir= File.expand_path(\"#{File.dirname(__FILE__)}/..\")", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 151: # use the given name and return self as class. Otherwise, call", "file": "lib/thor/invocation.rb", "symbol": "", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 19: def [](key)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 195: printer = WrappedPrinter.new(stdout, options)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 195, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nLine 15: task :cool do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 46: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 23: expect(thor_command(\"error\")).to eq(1)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 46: expect(File.exist?(\"ghost\")).to be false", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 17: get_input", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 231: show_diff(destination, yield) if block_given?", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 276: def thorfiles_relevant_to(meth)", "file": "lib/thor/runner.rb", "symbol": "", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 6: class WrappedPrinter < ColumnPrinter", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "WrappedPrinter", "line": 6, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/directory_spec.rb\nLine 74: file = File.join(destination_root, \"docs\", \"excluding\", \"rdoc.rb\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "터미널 창 너비에 맞춰서 텍스트 줄바꿈을 해주는 로직을 찾고 있어요. 들여쓰기랑 단락 구분까지 고려해서 출력하는 코드가 어디에 있나요?", "query": "terminal text wrap", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "WrappedPrinter", "line": 6, "lang": "ko", "candidates": [{"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\ndefines WrappedPrinter", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "터미널 창 너비에 맞춰서 텍스트 줄바꿈을 해주는 로직을 찾고 있어요. 들여쓰기랑 단락 구분까지 고려해서 출력하는 코드가 어디에 있나요?", "query": "terminal text wrap", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "WrappedPrinter", "line": 6, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "터미널 창 너비에 맞춰서 텍스트 줄바꿈을 해주는 로직을 찾고 있어요. 들여쓰기랑 단락 구분까지 고려해서 출력하는 코드가 어디에 있나요?", "query": "terminal text wrap", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "WrappedPrinter", "line": 6, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/shell/html.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/html.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=15-38\nread SubApp for detail", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=145-168\nread register_klass_file for detail", "file": "lib/thor/base.rb", "symbol": "register_klass_file", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=273-296\nread lookup_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "lookup_color", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=7-30\nread print for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=142-165\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=69-92\nread initialize for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Shell", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=216-239\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=6-29\nread WrappedPrinter for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "WrappedPrinter", "line": 6, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=67-90\nread valid_type? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=153-176\nread load_thorfile for detail", "file": "lib/thor/util.rb", "symbol": "load_thorfile", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=60-83\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=105-128\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=164-187\nread undasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "在执行模拟脚本时,原本应该输出特定动物叫声的方法现在只返回固定的牛叫声,请检查这个硬编码的输出逻辑是否符合预期。", "query": "puts moo", "file": "spec/fixtures/script.thor", "symbol": "cow", "line": 230, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/command.thor\nLine 11: ret = \"#{name} is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 5: @shell ||= Thor::Base.shell.new", "file": "spec/shell_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 3: class Thor", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 21: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 163: runner.inside(\"foo\") do", "file": "spec/actions_spec.rb", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 8: # Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 63: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 5: require 'thor'", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 31: create_file(\"doc/config.rb\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 227: peek && (!parsing_options? || super)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 73: def on_conflict_behavior(&block)", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 188: it \"and several switches returns an empty hash\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 174: expect(capture(:stdout) { Thor::Runner.start }).to match(/^thor :cow\\s+# prints 'moo'/m)", "file": "spec/runner_spec.rb", "symbol": "", "line": 174, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 230: def cow", "file": "spec/fixtures/script.thor", "symbol": "cow", "line": 230, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/script_exit_status_spec.rb\nLine 8: full_command= \"ruby #{script_path} #{command}\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 5: module Shell", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 5: @runner ||= MyCounter.new([1], options, destination_root: destination_root)", "file": "spec/actions_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 65: ThorTask.start %w(cool)", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 572: action :inject_into_class, \"application.rb\", \"Application\", \" filter_parameters :password\\n\"", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 572, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 155: @temp_dir = Dir.mktmpdir(\"thor\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 17: if (counter + word.length + 1) < width", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 8: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "在执行模拟脚本时,原本应该输出特定动物叫声的方法现在只返回固定的牛叫声,请检查这个硬编码的输出逻辑是否符合预期。", "query": "puts moo", "file": "spec/fixtures/script.thor", "symbol": "cow", "line": 230, "lang": "zh", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines cow", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "在执行模拟脚本时,原本应该输出特定动物叫声的方法现在只返回固定的牛叫声,请检查这个硬编码的输出逻辑是否符合预期。", "query": "puts moo", "file": "spec/fixtures/script.thor", "symbol": "cow", "line": 230, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/group.rb lines=259-282\nread baseclass for detail", "file": "lib/thor/group.rb", "symbol": "baseclass", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=133-156\nread find_in_source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "find_in_source_paths", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=56-79\nread revoke! for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "revoke!", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=99-122\nread destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "destination_root", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=12-35\nread initialize for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "initialize", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/base_spec.rb lines=4-27\nread Amazing for detail", "file": "spec/base_spec.rb", "symbol": "Amazing", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=230-253\nread cow for detail", "file": "spec/fixtures/script.thor", "symbol": "cow", "line": 230, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/thor_spec.rb lines=811-834\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 811, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=69-92\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=350-373\nread remove_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "remove_file", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=144-167\nread check_exclusive! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=427-450\nread remove_argument for detail", "file": "lib/thor/base.rb", "symbol": "remove_argument", "line": 427, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "디렉토리를 빈 상태로 만들고 작업을 실행해줘", "query": "invoke directory action", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lang": "ko", "candidates": [{"text": "File: spec/base_spec.rb\nLine 263: describe \"#commands\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 6: option \"--not_help\", :type => :boolean", "file": "spec/fixtures/help.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 15: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 33: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 35: describe \"#invoke!\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 64: def invoke!", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/color_spec.rb\nLine 124: out = capture(:stdout) do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 60: expect(ThorTask.tasks[\"super\"]).not_to be", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 333: expect(action(:remove_file, \"doc/README\")).to eq(\" remove doc/README\\n\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 43: it \"accepts - as an array argument\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 5: class ColumnPrinter", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 22: # namespace:: The namespace to search for.", "file": "lib/thor/util.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 62: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 116: return if quiet?", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 64: out = capture(:stdout) do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 14: it \"respects explicit non-UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 33: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 38: # constant:: The constant to be converted to the thor path.", "file": "lib/thor/util.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 15: super", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 14: subcommand \"sub\", Subcommand", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 167: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 12: Thor::LineEditor::Readline,", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 458: expect(action(:gsub_file, \"doc/README\", \"__start__\", \"START\")).to eq(\" gsub doc/README\\n\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 458, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "디렉토리를 빈 상태로 만들고 작업을 실행해줘", "query": "invoke directory action", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "디렉토리를 빈 상태로 만들고 작업을 실행해줘", "query": "invoke directory action", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "디렉토리를 빈 상태로 만들고 작업을 실행해줘", "query": "invoke directory action", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=4-27\nread shell for detail", "file": "spec/sort_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=329-352\nread class_option for detail", "file": "lib/thor/base.rb", "symbol": "class_option", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=201-224\nread paint for detail", "file": "spec/fixtures/script.thor", "symbol": "paint", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=153-176\nread replace! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replace!", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=29-52\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=58-81\nread initialize for detail", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=83-106\nread convert_key for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "convert_key", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=62-85\nread source_root for detail", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=174-197\nread normalize_aliases for detail", "file": "lib/thor/parser/option.rb", "symbol": "normalize_aliases", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=30-53\nread current_command_chain for detail", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=288-311\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=424-447\nread stop_on_unknown_option? for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=263-286\nread create_command for detail", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=64-87\nread invoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/argument.rb lines=43-66\nread show_default? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "show_default?", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=427-450\nread remove_argument for detail", "file": "lib/thor/base.rb", "symbol": "remove_argument", "line": 427, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=75-98\nread PluginWithDefaultcommandAndDeclaredArgument for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefaultcommandAndDeclaredArgument", "line": 75, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "ファイルが既に存在する場合に、上書きするかどうかをユーザーに確認するダイアログを表示する処理に問題があります。", "query": "file collision menu", "file": "lib/thor/actions/create_file.rb", "symbol": "force_on_collision?", "line": 100, "lang": "ja", "candidates": [{"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 55: @text = text", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 139: checked = false", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 19: describe \"#parse\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 10: end", "file": "lib/thor/error.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 81: next if File.directory?(file_source)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 46: super(convert_key(key))", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 107: invoke! \"doc\", \"docs\"", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 208: \"Hi #{name}\"", "file": "spec/group_spec.rb", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 11: [", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 13: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 63: # You can notice that the method \"foo\" above invokes two commands: \"bar\",", "file": "lib/thor/invocation.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 7: true", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 94: expect(shell.ask(\"What's your favorite Neopolitan flavor?\", limited_to: flavors, case_insensitive: true)).to eq(\"chocolate\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 104: Dir.glob(lookup, File::FNM_DOTMATCH)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 164: expect(File.exist?(file)).to be true", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 108: else", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 9: define", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 100: def force_on_collision?", "file": "lib/thor/actions/create_file.rb", "symbol": "force_on_collision?", "line": 100, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/tree_spec.rb\nLine 24: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 13: desc \"ok\", \"exit with no error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 36: # Set the terminal's background ANSI color to black.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 121: BoringVendorProvidedCLI.register(", "file": "spec/register_spec.rb", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "ファイルが既に存在する場合に、上書きするかどうかをユーザーに確認するダイアログを表示する処理に問題があります。", "query": "file collision menu", "file": "lib/thor/actions/create_file.rb", "symbol": "force_on_collision?", "line": 100, "lang": "ja", "candidates": [{"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "ファイルが既に存在する場合に、上書きするかどうかをユーザーに確認するダイアログを表示する処理に問題があります。", "query": "file collision menu", "file": "lib/thor/actions/create_file.rb", "symbol": "force_on_collision?", "line": 100, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "ファイルが既に存在する場合に、上書きするかどうかをユーザーに確認するダイアログを表示する処理に問題があります。", "query": "file collision menu", "file": "lib/thor/actions/create_file.rb", "symbol": "force_on_collision?", "line": 100, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=165-188\nread print_in_columns for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_in_columns", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/quality_spec.rb lines=21-44\nread check_for_extra_spaces for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=278-301\nread stdout for detail", "file": "lib/thor/shell/basic.rb", "symbol": "stdout", "line": 278, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=76-99\nread call_myself_with_wrong_arity for detail", "file": "spec/fixtures/script.thor", "symbol": "call_myself_with_wrong_arity", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=7-30\nread command1 for detail", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=168-191\nread check_unknown! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=100-123\nread force_on_collision? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_on_collision?", "line": 100, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=27-50\nread delete for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "delete", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions_spec.rb lines=12-35\nread file for detail", "file": "spec/actions_spec.rb", "symbol": "file", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=109-132\nread CommandConflict for detail", "file": "spec/fixtures/group.thor", "symbol": "CommandConflict", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=358-381\nread class_exclusive for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=283-306\nread pear for detail", "file": "spec/fixtures/script.thor", "symbol": "pear", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=308-331\nread thor for detail", "file": "lib/thor/actions.rb", "symbol": "thor", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/application_helper.rb lines=1-24\nread ApplicationHelper for detail", "file": "spec/fixtures/application_helper.rb", "symbol": "ApplicationHelper", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=205-228\nread save_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "save_yaml", "line": 205, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=4-27\nread Shell for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "충돌 확인하며 블록을 실행하는 로직 찾아줘", "query": "conflict check block", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke_with_conflict_check", "line": 113, "lang": "ko", "candidates": [{"text": "File: lib/thor/shell/table_printer.rb\nLine 70: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 273: expect(File.read(File.join(destination_root, \"doc/config.rb\"))).to eq(\"class FooBar; end\\n\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 26: ENV[\"THOR_COLUMNS\"] = \"10000\"", "file": "spec/helper.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 175: end", "file": "spec/util_spec.rb", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 33: def z; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 3: class ExitStatus < Thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 61: invoke_with_conflict_check do", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 35: # Sets the output padding, not allowing less than zero values.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 41: invoke_with_conflict_check do", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 39: def three", "file": "spec/fixtures/group.thor", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 21: # directory \"doc\"", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 179: it \"changes the file adding content after the flag\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 64: end", "file": "lib/thor/command.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 35: expect(%w(rake_compat_spec.rb Thorfile)).to include(Rake.application.rakefile)", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 20: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 5: class_option \"fruit\", :aliases => \"-f\", :type => :string, :enum => %w(apple banana)", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 3: describe Thor::Shell do", "file": "spec/shell_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 131: # Receives a file or directory and search for it in the source paths.", "file": "lib/thor/actions.rb", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 45: end", "file": "spec/group_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 15: desc \"install\", \"Build and install thor-#{Thor::VERSION}.gem into system gems\"", "file": "Thorfile", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 5: before do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 113: def invoke_with_conflict_check(&block)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke_with_conflict_check", "line": 113, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 118: config = args.last.is_a?(Hash) ? args.pop : {}", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 31: #", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "충돌 확인하며 블록을 실행하는 로직 찾아줘", "query": "conflict check block", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke_with_conflict_check", "line": 113, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "충돌 확인하며 블록을 실행하는 로직 찾아줘", "query": "conflict check block", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke_with_conflict_check", "line": 113, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "충돌 확인하며 블록을 실행하는 로직 찾아줘", "query": "conflict check block", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke_with_conflict_check", "line": 113, "lang": "ko", "candidates": [{"text": "Next: read lib/thor.rb lines=686-709\nread tree for detail", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=274-297\nread parse_peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_peek", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=221-244\nread MyDefaults for detail", "file": "spec/fixtures/script.thor", "symbol": "MyDefaults", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=100-123\nread E for detail", "file": "spec/fixtures/invoke.thor", "symbol": "E", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=172-195\nread get_options_from_invocations for detail", "file": "lib/thor/group.rb", "symbol": "get_options_from_invocations", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=15-38\nread readline for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "readline", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=714-737\nread bar for detail", "file": "spec/thor_spec.rb", "symbol": "bar", "line": 714, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=11-34\nread build for detail", "file": "Thorfile", "symbol": "build", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=482-505\nread print_exclusive_options for detail", "file": "lib/thor.rb", "symbol": "print_exclusive_options", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=121-144\nread AnotherScript for detail", "file": "spec/fixtures/script.thor", "symbol": "AnotherScript", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=113-136\nread invoke_with_conflict_check for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke_with_conflict_check", "line": 113, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=261-284\nread two_args for detail", "file": "spec/fixtures/script.thor", "symbol": "two_args", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=65-88\nread UnknownArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=131-154\nread validate_default_type! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate_default_type!", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=177-200\nread check_unknown_options? for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "파일 경로 생성하는 로직 찾아줘", "query": "destination_root doc", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lang": "ko", "candidates": [{"text": "File: lib/thor.rb\nLine 390: #", "file": "lib/thor.rb", "symbol": "", "line": 390, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 622: def file", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/arguments_spec.rb\nLine 39: expect(parse(\"product\", \"title\", \"age\")[\"string\"]).to eq(\"product\")", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 661: padding = options.map { |o| o.aliases_for_usage.size }.max.to_i", "file": "lib/thor/base.rb", "symbol": "", "line": 661, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 30: it \"creates a file\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 66: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 5: # Copies the file from the relative source to the relative destination. If", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 809: def built_option_names(target, opt = {}, &block) # :nodoc:", "file": "lib/thor/base.rb", "symbol": "", "line": 809, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 54: it \"copies the file to the specified destination\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 82: else", "file": "lib/thor.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 56: invoke!", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 143: # class and the file on Thor::Base. This is the method responsible for it.", "file": "lib/thor/base.rb", "symbol": "", "line": 143, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 306: d - diff, show the differences between the old and the new", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 306, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 22: counter = word.length", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 216: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 5: # Create a new file relative to the destination root with the given data,", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 280: #", "file": "lib/thor/actions.rb", "symbol": "", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 6: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 17: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 95: # Given a target, checks if this class name is a public method.", "file": "lib/thor/command.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 5: describe \"file's encoding\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nLine 26: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 251: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 251, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "파일 경로 생성하는 로직 찾아줘", "query": "destination_root doc", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lang": "ko", "candidates": [{"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\ndefines file", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "파일 경로 생성하는 로직 찾아줘", "query": "destination_root doc", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "파일 경로 생성하는 로직 찾아줘", "query": "destination_root doc", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lang": "ko", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=123-146\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=880-903\nread no_arg for detail", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=304-327\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 304, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=223-246\nread strict_args_position? for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position?", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=8-31\nread action for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "action", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=58-81\nread namespaces_in_content for detail", "file": "lib/thor/util.rb", "symbol": "namespaces_in_content", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=27-50\nread source_root for detail", "file": "lib/thor/actions.rb", "symbol": "source_root", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=137-160\nread DynamicCommand for detail", "file": "lib/thor/command.rb", "symbol": "DynamicCommand", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=12-35\nread exists_and_identical? for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/util_spec.rb lines=4-27\nread clear_user_home! for detail", "file": "spec/util_spec.rb", "symbol": "clear_user_home!", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "runner", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=308-331\nread thor for detail", "file": "lib/thor/actions.rb", "symbol": "thor", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=28-51\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=32-55\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=622-645\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=368-391\nread merge for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge", "line": 368, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=253-276\nread thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=173-196\nread check_unknown_options for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=98-121\nread MalformattedArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "MalformattedArgumentError", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=200-223\nread in_root for detail", "file": "lib/thor/actions.rb", "symbol": "in_root", "line": 200, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Parece que la lógica que obtiene el contenido para escribir en un archivo no está distinguiendo correctamente si la entrada es un bloque ejecutable o un valor estático, lo que podría causar errores si se intenta procesar el contenido directamente.", "query": "file content proc", "file": "lib/thor/actions/create_file.rb", "symbol": "render", "line": 52, "lang": "es", "candidates": [{"text": "File: lib/thor/actions/create_link.rb\nLine 36: source = File.expand_path(render, File.dirname(destination))", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 78: def glob_pattern", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 83: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 23: if echo?", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 35: invoke :b, :one, [\"Jose\"]", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 248: def self.exit_on_failure?", "file": "spec/fixtures/script.thor", "symbol": "", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 40: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 57: desc \"four\", \"invoke four\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 80: \"key:value\"", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 129: #", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 122: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 231: end", "file": "spec/base_spec.rb", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 16: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 58: expect(File.exist?(destination_path)).to be true", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 85: render = if source =~ %r{^https?\\://}", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 85, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 14: puts \"expected #{SOME_STRING.encoding.name} to equal UTF-8\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 52: def render", "file": "lib/thor/actions/create_file.rb", "symbol": "render", "line": 52, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_link.rb\nLine 31: #", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 24: SHELL_DELEGATED_METHODS = [:ask, :error, :set_color, :yes?, :no?, :say, :say_error, :say_status, :print_in_columns, :print_table, :print_wrapped, :file_collision, :terminal_width]", "file": "lib/thor/shell.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 94: expect(action.identical?).to be true", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 196: expect(@content).to match(/^ \\[--fourth/)", "file": "spec/base_spec.rb", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Parece que la lógica que obtiene el contenido para escribir en un archivo no está distinguiendo correctamente si la entrada es un bloque ejecutable o un valor estático, lo que podría causar errores si se intenta procesar el contenido directamente.", "query": "file content proc", "file": "lib/thor/actions/create_file.rb", "symbol": "render", "line": 52, "lang": "es", "candidates": [{"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Parece que la lógica que obtiene el contenido para escribir en un archivo no está distinguiendo correctamente si la entrada es un bloque ejecutable o un valor estático, lo que podría causar errores si se intenta procesar el contenido directamente.", "query": "file content proc", "file": "lib/thor/actions/create_file.rb", "symbol": "render", "line": 52, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Parece que la lógica que obtiene el contenido para escribir en un archivo no está distinguiendo correctamente si la entrada es un bloque ejecutable o un valor estático, lo que podría causar errores si se intenta procesar el contenido directamente.", "query": "file content proc", "file": "lib/thor/actions/create_file.rb", "symbol": "render", "line": 52, "lang": "es", "candidates": [{"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=118-141\nread parse_array for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_array", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=235-258\nread command_conflict for detail", "file": "spec/fixtures/script.thor", "symbol": "command_conflict", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=556-579\nread dynamic_command_class for detail", "file": "lib/thor.rb", "symbol": "dynamic_command_class", "line": 556, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=59-82\nread no_or_skip? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=8-31\nread initialize for detail", "file": "spec/rake_compat_spec.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=797-820\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 797, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=160-183\nread dasherized? for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherized?", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=207-230\nread file_collision for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=15-38\nread parse for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "parse", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=692-715\nread build_command_tree for detail", "file": "lib/thor.rb", "symbol": "build_command_tree", "line": 692, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=33-56\nread part_one for detail", "file": "spec/register_spec.rb", "symbol": "part_one", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=52-75\nread render for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "render", "line": 52, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor.rb lines=6-29\nread readline for detail", "file": "lib/thor/line_editor.rb", "symbol": "readline", "line": 6, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "The mechanism responsible for making a new folder without any contents is not correctly handling the configuration options passed to it, specifically regarding silent execution.", "query": "mkdir without logging", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lang": "en", "candidates": [{"text": "File: lib/thor/rake_compat.rb\nLine 41: def task(*)", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 6: end", "file": "lib/thor/error.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 3: describe Thor::Command do", "file": "spec/command_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 24: memo", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 21: class_option :fourth, :type => :numeric, :desc => \"The fourth argument\"", "file": "spec/fixtures/group.thor", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 133: end", "file": "lib/thor.rb", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 52: # ==== Parameters", "file": "lib/thor/util.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 694: unless klass == Thor", "file": "lib/thor.rb", "symbol": "", "line": 694, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 38: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/Another top level command/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 8: Bundler::GemHelper.install_tasks", "file": "Thorfile", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 269: expect(my_script.start(%w[checked --mode rashly command])).to eq [{\"mode\" => \"rashly\"}, %w[command]]", "file": "spec/thor_spec.rb", "symbol": "", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 7: rescue LoadError", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 48: message = namespace ? \"#{message} in #{namespace.inspect} namespace.\" : \"#{message}.\"", "file": "lib/thor/error.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 1: class Thor", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/terminal.rb\nLine 1: class Thor", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nLine 15: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 4: describe Thor::Arguments do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 110: saned = backtrace.reject { |frame| frame =~ FILE_REGEXP || (frame =~ /\\.java:/ && RUBY_PLATFORM =~ /java/) || (frame =~ %r{^kernel/} && RUBY_ENGINE =~ /rbx/) }", "file": "lib/thor/command.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 76: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 94: base.copy_file(file_source, file_destination, config, &@block)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 1: class Thor", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nLine 3: describe Thor::Shell::Color do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "The mechanism responsible for making a new folder without any contents is not correctly handling the configuration options passed to it, specifically regarding silent execution.", "query": "mkdir without logging", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lang": "en", "candidates": [{"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "thor", "task": "The mechanism responsible for making a new folder without any contents is not correctly handling the configuration options passed to it, specifically regarding silent execution.", "query": "mkdir without logging", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "The mechanism responsible for making a new folder without any contents is not correctly handling the configuration options passed to it, specifically regarding silent execution.", "query": "mkdir without logging", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lang": "en", "candidates": [{"text": "Next: read spec/register_spec.rb lines=59-82\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=101-124\nread map for detail", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=277-300\nread rotten_apple for detail", "file": "spec/fixtures/script.thor", "symbol": "rotten_apple", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=120-143\nread I for detail", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=144-167\nread check_exclusive! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=138-161\nread potentially_ambiguous_but_hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous_but_hidden", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=84-107\nread current_is_value? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=139-162\nread parse_numeric for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_numeric", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=85-108\nread SubcommandWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "SubcommandWithDefault", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=121-144\nread handle_no_method_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_no_method_error?", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=104-127\nread camel_case for detail", "file": "lib/thor/util.rb", "symbol": "camel_case", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/rake_compat_spec.rb lines=12-35\nread define for detail", "file": "spec/rake_compat_spec.rb", "symbol": "define", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=38-61\nread source_paths_for_search for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths_for_search", "line": 38, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "전체 모듈과 네임스페이스 목록을 표 형식으로 출력해 주세요. YAML 설정 파일에서 읽어온 데이터를 기반으로 테이블을 생성해야 합니다.", "query": "show modules namespaces table", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lang": "ko", "candidates": [{"text": "File: lib/thor/runner.rb\nLine 321: def show_modules #:nodoc:", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions.rb\nLine 134: possible_files = [file, file + TEMPLATE_EXTNAME]", "file": "lib/thor/actions.rb", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 144: # Configuration values that are shared between invocations.", "file": "lib/thor/invocation.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 165: output = capture(:stdout) { BoringVendorProvidedCLI.start(%w(say hello)) }", "file": "spec/register_spec.rb", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 51: exists_and_identical?(\"doc\", \"doc\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 6: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 9: method_options :forcefully => :boolean", "file": "spec/fixtures/command.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 7: puts options['fruit']", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 43: `git ls-files`.split(\"\\n\").each do |filename|", "file": "spec/quality_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 52: options.each do |option|", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 26: # Stores and return the source root for this class", "file": "lib/thor/actions.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 663: expect(File.binread(file)).to match(/__start__\\n # greenblue\\n#\\n# yellowblue\\n#yellowred\\n #greenred\\n# orange\\n purple\\n ind#igo\\n # ind#igo\\n # spaces_between\\n__end__/)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 663, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 200: expect($stderr).to receive(:print).with(\"Running... \")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 71: self.options_relation[:at_least_one_option_names] || []", "file": "lib/thor/command.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 11: if SOME_STRING.encoding.name == \"ISO-8859-7\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 156: end", "file": "spec/register_spec.rb", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 23: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 62: def source_root", "file": "spec/helper.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 8: width = Terminal.terminal_width - @indent", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 43: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 42: before do", "file": "spec/sort_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 363: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 29: # Set the terminal's foreground ANSI color to magenta.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "전체 모듈과 네임스페이스 목록을 표 형식으로 출력해 주세요. YAML 설정 파일에서 읽어온 데이터를 기반으로 테이블을 생성해야 합니다.", "query": "show modules namespaces table", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "전체 모듈과 네임스페이스 목록을 표 형식으로 출력해 주세요. YAML 설정 파일에서 읽어온 데이터를 기반으로 테이블을 생성해야 합니다.", "query": "show modules namespaces table", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> open-uri", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> ../thor", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> group", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "전체 모듈과 네임스페이스 목록을 표 형식으로 출력해 주세요. YAML 설정 파일에서 읽어온 데이터를 기반으로 테이블을 생성해야 합니다.", "query": "show modules namespaces table", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lang": "ko", "candidates": [{"text": "Next: read spec/thor_spec.rb lines=767-790\nread hi for detail", "file": "spec/thor_spec.rb", "symbol": "hi", "line": 767, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=98-121\nread WhinyGenerator for detail", "file": "spec/fixtures/group.thor", "symbol": "WhinyGenerator", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=85-108\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=714-737\nread bar for detail", "file": "spec/thor_spec.rb", "symbol": "bar", "line": 714, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=123-146\nread say_status for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "say_status", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=16-39\nread parse for detail", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=78-101\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=678-701\nread is_thor_reserved_word? for detail", "file": "lib/thor/base.rb", "symbol": "is_thor_reserved_word?", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=321-344\nread show_modules for detail", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=31-54\nread dynamic_width_stty for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_stty", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=276-299\nread _invoke_for_class_method for detail", "file": "lib/thor/group.rb", "symbol": "_invoke_for_class_method", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=82-105\nread base_path for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "base_path", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=32-55\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 32, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "find the method that returns a specific subset of items without overlap", "query": "exclusive method", "file": "spec/fixtures/script.thor", "symbol": "exclusive", "line": 320, "lang": "en", "candidates": [{"text": "File: lib/thor/base.rb\nLine 336: # Adds and declares option group for exclusive options in the", "file": "lib/thor/base.rb", "symbol": "", "line": 336, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 7: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 265: it \"raises an error if exclusive argumets are given\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 265, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 58: other.each do |key, value|", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 320: def exclusive", "file": "spec/fixtures/script.thor", "symbol": "exclusive", "line": 320, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/arguments.rb\nLine 99: hash = {}", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 37: it \"escapes HTML content when not using the default colors\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 2: class NestedContext", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 63: \"%-s\".dup", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 178: expect($stdout).not_to receive(:print)", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 154: expect(content).to match(/\\[--unused\\]/)", "file": "spec/group_spec.rb", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 21: def push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 32: expect(File.exist?(destination)).to be true", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 384: def diff_tool #:nodoc:", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 384, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 177: # Adds and declares option group for exclusive options in the", "file": "lib/thor.rb", "symbol": "", "line": 177, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 438: it \"returns the exclusive option names for the class\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 438, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 146: # When option A and B are exclusive, if A and B are given at the same time,", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 146, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 74: it \"returns the exclusive option names for the class\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 74, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 14: # description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 606: # receives a (possibly nil) command name and returns a name that is in", "file": "lib/thor.rb", "symbol": "", "line": 606, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 55: option.aliases.each do |name|", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 128: # given in log_status, it's used as the color.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 11: puts \"ok\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find the method that returns a specific subset of items without overlap", "query": "exclusive method", "file": "spec/fixtures/script.thor", "symbol": "exclusive", "line": 320, "lang": "en", "candidates": [{"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines exclusive", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find the method that returns a specific subset of items without overlap", "query": "exclusive method", "file": "spec/fixtures/script.thor", "symbol": "exclusive", "line": 320, "lang": "en", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=320-343\nread exclusive for detail", "file": "spec/fixtures/script.thor", "symbol": "exclusive", "line": 320, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=28-51\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=329-352\nread subcommand for detail", "file": "lib/thor.rb", "symbol": "subcommand", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=121-144\nread handle_no_method_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_no_method_error?", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=592-615\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=75-98\nread execute! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "execute!", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=115-138\nread say_error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_error", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=164-187\nread undasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=730-753\nread method_added for detail", "file": "lib/thor/base.rb", "symbol": "method_added", "line": 730, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=156-179\nread no? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "no?", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=288-311\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=129-152\nread method_options for detail", "file": "lib/thor.rb", "symbol": "method_options", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=458-481\nread group for detail", "file": "lib/thor/base.rb", "symbol": "group", "line": 458, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=60-83\nread invoke! for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Como eu crio um arquivo com conteúdo específico usando o Thor?", "query": "create file action", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lang": "pt", "candidates": [{"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 22: def create_file(destination, *args, &block)", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_file_spec.rb\nLine 10: def create_file(destination = nil, config = {}, options = {}, contents = \"CONFIGURATION\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 18: # other actions like create_file and directory.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 144: super", "file": "lib/thor/command.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 53: given_destination", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 12: else", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 63: protected", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 7: # ==== Parameters", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 25: resulting_destination = create_file destination, nil, config do", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 25, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 1: class Thor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 98: \"+\" + \"-\" * (maxima + 2 * @padding)", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 1: require_relative \"create_file\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 140: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 2: require_relative \"terminal\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 203: expect(a_request(:get, \"https://example.com/file.txt\")).to have_been_made", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 22: action add_file create_file in_root inside run run_ruby_script)", "file": "lib/thor/base.rb", "symbol": "", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 286: expect(MyChildScript.all_commands.keys).not_to include(\"name_with_dashes\")", "file": "spec/base_spec.rb", "symbol": "", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 61: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 6: barn_help = capture(:stdout) { Scripts::MyDefaults.start(%w(barn)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 78: \"%#{maxima}s\"", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 387: expect(parse(\"--foo\", \"--bar\")[\"foo\"]).to eq(true)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 387, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 1: require_relative \"actions/create_file\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Como eu crio um arquivo com conteúdo específico usando o Thor?", "query": "create file action", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lang": "pt", "candidates": [{"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Como eu crio um arquivo com conteúdo específico usando o Thor?", "query": "create file action", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lang": "pt", "candidates": [{"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Como eu crio um arquivo com conteúdo específico usando o Thor?", "query": "create file action", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lang": "pt", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=59-82\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=142-165\nread update for detail", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=67-90\nread valid_type? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=41-64\nread task for detail", "file": "lib/thor/rake_compat.rb", "symbol": "task", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=594-617\nread initialize_added for detail", "file": "lib/thor.rb", "symbol": "initialize_added", "line": 594, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=333-356\nread at_least_one for detail", "file": "spec/fixtures/script.thor", "symbol": "at_least_one", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=45-68\nread identical? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "identical?", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=3-26\nread Subcommand for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Subcommand", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/encoding_spec.rb lines=6-29\nread load_thorfile for detail", "file": "spec/encoding_spec.rb", "symbol": "load_thorfile", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=3-26\nread ExitStatus for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ExitStatus", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=505-528\nread dispatch for detail", "file": "lib/thor.rb", "symbol": "dispatch", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=172-195\nread validate_enum_value! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "validate_enum_value!", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=72-95\nread replace for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "replace", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "encontra o método que retorna o valor da opção simples", "query": "options[:simple]", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lang": "pt", "candidates": [{"text": "File: lib/thor/util.rb\nLine 36: #", "file": "lib/thor/util.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 169: @content = capture(:stdout) { MyCounter.help(Thor::Base.shell.new) }", "file": "spec/base_spec.rb", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 68: #", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 46: # Set the terminal's background ANSI color to magenta.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 15: base = MyCounter.new [1, 2], {}, shell: shell", "file": "spec/shell_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 302: option :five", "file": "spec/fixtures/script.thor", "symbol": "", "line": 302, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nLine 22: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 211: invoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 190: end.join(\"', '\")", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 25: invoke \"defined:five\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 25, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 686: message.to match(/Exclusive Options:\\n\\s+--five\\s+--six\\s+--seven\\n\\s+--one\\s+--two/)", "file": "spec/thor_spec.rb", "symbol": "", "line": 686, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 47: def five", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/arguments.rb\nLine 132: array", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 92: MyClassOptionScript.start %w[mix --one --two --three --five]", "file": "spec/base_spec.rb", "symbol": "", "line": 92, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 27: end.to raise_error(ArgumentError, 'You cannot have \"foo\" as required argument after the non-required argument \"second\".')", "file": "spec/group_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 17: module ClassMethods", "file": "lib/thor/actions.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 285: expect(option(:foo, {", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 285, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 575: elsif all_commands[meth] || meth == \"method_missing\"", "file": "lib/thor.rb", "symbol": "", "line": 575, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 13: @colwidth = options[:colwidth]", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 75: def three", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 50: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 38: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "encontra o método que retorna o valor da opção simples", "query": "options[:simple]", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lang": "pt", "candidates": [{"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\ndefines five", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "encontra o método que retorna o valor da opção simples", "query": "options[:simple]", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lang": "pt", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=265-288\nread optional_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "optional_arg", "line": 265, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/parser/argument_spec.rb lines=5-28\nread argument for detail", "file": "spec/parser/argument_spec.rb", "symbol": "argument", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=78-101\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=47-70\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/terminal.rb lines=9-32\nread terminal_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "terminal_width", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=310-333\nread display_commands for detail", "file": "lib/thor/runner.rb", "symbol": "display_commands", "line": 310, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=248-271\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=100-123\nread E for detail", "file": "spec/fixtures/invoke.thor", "symbol": "E", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=58-81\nread matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "matches", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=102-125\nread invoke for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=4-27\nread Thor for detail", "file": "lib/thor/line_editor.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=84-107\nread unshift for detail", "file": "lib/thor/parser/options.rb", "symbol": "unshift", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=115-138\nread H for detail", "file": "spec/fixtures/invoke.thor", "symbol": "H", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "LineEditor", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=133-156\nread potentially_ambiguous for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=71-94\nread default_banner for detail", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Il y a un problème avec la gestion de la suppression de l'état de silence : l'option de désactivation de l'affichage ne semble pas se réinitialiser correctement après l'exécution du bloc de code.", "query": "mute block yield", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lang": "fr", "candidates": [{"text": "File: lib/thor/shell/table_printer.rb\nLine 45: private", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 9: def encoding", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 335: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 335, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 136: else", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 13: unix? ? dynamic_width : DEFAULT_TERMINAL_WIDTH", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 179: shell.mute do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 179, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 97: # ==== Preparing for invocation", "file": "lib/thor/group.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 153: Thor.deprecation_warning \"#{err}.\\n\" +", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 53: desc: \"Run but do not make any changes\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 134: elsif behavior == :unchanged", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 191: describe \"#exists?\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 104: expect(invoke!).to eq(\" force doc/config.rb\\n\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 31: expect(command(foo: :required).formatted_usage(object)).to eq(\"foo:can_has BAR --foo=FOO\")", "file": "spec/command_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 83: attr_reader :switches, :unknown", "file": "lib/thor/error.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 75: expect(File.exist?(file)).to be false", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 5: class_option \"fruit\", :aliases => \"-f\", :type => :string, :enum => %w(apple banana)", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 25: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 54: enum.join(\", \")", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 18: it \"has implicit UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 47: def prepare(array)", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 16: BLACK = \"color: black\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 22: def mute", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Il y a un problème avec la gestion de la suppression de l'état de silence : l'option de désactivation de l'affichage ne semble pas se réinitialiser correctement après l'exécution du bloc de code.", "query": "mute block yield", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lang": "fr", "candidates": [{"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "thor", "task": "Il y a un problème avec la gestion de la suppression de l'état de silence : l'option de désactivation de l'affichage ne semble pas se réinitialiser correctement après l'exécution du bloc de code.", "query": "mute block yield", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Il y a un problème avec la gestion de la suppression de l'état de silence : l'option de désactivation de l'affichage ne semble pas se réinitialiser correctement après l'exécution du bloc de code.", "query": "mute block yield", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/subcommand.thor lines=5-28\nread print_opt for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "print_opt", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=43-66\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=552-575\nread baseclass for detail", "file": "lib/thor.rb", "symbol": "baseclass", "line": 552, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=325-348\nread subcommand_classes for detail", "file": "lib/thor.rb", "symbol": "subcommand_classes", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=199-222\nread printable_commands for detail", "file": "lib/thor/group.rb", "symbol": "printable_commands", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=231-254\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=158-181\nread parse_string for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_string", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=192-215\nread thor_root for detail", "file": "lib/thor/util.rb", "symbol": "thor_root", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=288-311\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=137-160\nread DynamicCommand for detail", "file": "lib/thor/command.rb", "symbol": "DynamicCommand", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=25-48\nread pop for detail", "file": "lib/thor/nested_context.rb", "symbol": "pop", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=50-73\nread PathCompletion for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "PathCompletion", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=235-258\nread command_conflict for detail", "file": "spec/fixtures/script.thor", "symbol": "command_conflict", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=277-300\nread rotten_apple for detail", "file": "spec/fixtures/script.thor", "symbol": "rotten_apple", "line": 277, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "特定のタスクを実行した際に、後続の複数のタスクが連鎖的に呼び出されてしまう挙動について。単一の処理のみを期待している場合に、意図しないメソッドの実行が発生しています。", "query": "invoke sequence", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lang": "ja", "candidates": [{"text": "File: spec/quality_spec.rb\nLine 12: def check_for_tab_characters(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 256: desc \"one_arg ARG\", \"takes one arg\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 256, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nLine 5: def one", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 98: class WhinyGenerator < Thor::Group", "file": "spec/fixtures/group.thor", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 13: Test.start(ARGV)", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 203: # Save the yaml file. If none exists in thor root, creates one.", "file": "lib/thor/runner.rb", "symbol": "", "line": 203, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 163: expect(content).to match(/amazing:describe NAME/)", "file": "spec/runner_spec.rb", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 23: def self.rake_classes", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 17: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 61: def namespace(name)", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 18: # Hold source paths for one Thor instance. source_paths_for_search is the", "file": "lib/thor/actions.rb", "symbol": "", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 38: # It receives arguments in an Array and two hashes, one for options and", "file": "lib/thor/base.rb", "symbol": "", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 85: end", "file": "lib/thor/command.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 70: context \"specifying :pretend => true\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 16: require \"stringio\"", "file": "spec/helper.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 82: \"one two three\"", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 82, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nLine 63: it \"creates a symbolic link by default\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 32: desc \"part one\"", "file": "spec/register_spec.rb", "symbol": "", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 53: # invoke \"b:hello\", [\"Erik\"]", "file": "lib/thor/invocation.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 2: # frozen_string_literal: true", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 16: def install", "file": "Thorfile", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 24: SHELL_DELEGATED_METHODS = [:ask, :error, :set_color, :yes?, :no?, :say, :say_error, :say_status, :print_in_columns, :print_table, :print_wrapped, :file_collision, :terminal_width]", "file": "lib/thor/shell.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 10: pid= spawn({\"RUBYLIB\" => ruby_lib},", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "特定のタスクを実行した際に、後続の複数のタスクが連鎖的に呼び出されてしまう挙動について。単一の処理のみを期待している場合に、意図しないメソッドの実行が発生しています。", "query": "invoke sequence", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lang": "ja", "candidates": [{"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\ndefines one", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "特定のタスクを実行した際に、後続の複数のタスクが連鎖的に呼び出されてしまう挙動について。単一の処理のみを期待している場合に、意図しないメソッドの実行が発生しています。", "query": "invoke sequence", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lang": "ja", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=190-213\nread thor_root for detail", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=239-262\nread inject_into_module for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_module", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=66-89\nread method_exclusive_option_names for detail", "file": "lib/thor/command.rb", "symbol": "method_exclusive_option_names", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=224-247\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=177-200\nread check_unknown_options? for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=412-435\nread class_at_least_one_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one_option_names", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=50-73\nread foo for detail", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=87-110\nread not_debugging? for detail", "file": "lib/thor/command.rb", "symbol": "not_debugging?", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=168-191\nread check_unknown! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=29-52\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=144-167\nread check_exclusive! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=3-26\nread Subcommand for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Subcommand", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=49-72\nread values_at for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "values_at", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=101-124\nread map for detail", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=172-195\nread validate_enum_value! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "validate_enum_value!", "line": 172, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "¿Cómo determina si un valor por defecto debe mostrarse según su tipo?", "query": "default empty check", "file": "lib/thor/parser/argument.rb", "symbol": "show_default?", "line": 43, "lang": "es", "candidates": [{"text": "File: lib/thor/shell/terminal.rb\nLine 13: unix? ? dynamic_width : DEFAULT_TERMINAL_WIDTH", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 235: end", "file": "spec/base_spec.rb", "symbol": "", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 33: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 614: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 43: def show_default?", "file": "lib/thor/parser/argument.rb", "symbol": "show_default?", "line": 43, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions_spec.rb\nLine 125: expect(ClearCounter.source_paths_for_search.last).to eq(File.expand_path(\"fixtures/broken\", File.dirname(__FILE__)))", "file": "spec/actions_spec.rb", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 97: end", "file": "spec/group_spec.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 174: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 340: if default && result == \"\"", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 340, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 141: when Hash, Array, String", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 24: $stdin.gets", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 39: ON_RED = \"\\e[41m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 15: # create_file \"lib/fun_party.rb\" do", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 7: include Thor::RakeCompat", "file": "Thorfile", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 60: options.defaulted_value", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 31: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 117: shell.say \"Wow! Now we have colors *and* background colors\", [:green, :on_red, :bold]", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 53: def merge(other)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 328: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 4: class TreeApp < Thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 4: SOME_STRING = \"Some λέξεις 一些词 🎉\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 52: def shell", "file": "lib/thor/shell.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 144: #", "file": "lib/thor/base.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 7: def bugs", "file": "spec/fixtures/help.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "¿Cómo determina si un valor por defecto debe mostrarse según su tipo?", "query": "default empty check", "file": "lib/thor/parser/argument.rb", "symbol": "show_default?", "line": 43, "lang": "es", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\ndefines show_default?", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "¿Cómo determina si un valor por defecto debe mostrarse según su tipo?", "query": "default empty check", "file": "lib/thor/parser/argument.rb", "symbol": "show_default?", "line": 43, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "¿Cómo determina si un valor por defecto debe mostrarse según su tipo?", "query": "default empty check", "file": "lib/thor/parser/argument.rb", "symbol": "show_default?", "line": 43, "lang": "es", "candidates": [{"text": "Next: read lib/thor/command.rb lines=21-44\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=2-25\nread Argument for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=43-66\nread show_default? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "show_default?", "line": 43, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=8-31\nread encoding for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=25-48\nread pop for detail", "file": "lib/thor/nested_context.rb", "symbol": "pop", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=21-44\nread release for detail", "file": "Thorfile", "symbol": "release", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=46-69\nread use_path_completion? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "use_path_completion?", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=639-662\nread class_options_help for detail", "file": "lib/thor/base.rb", "symbol": "class_options_help", "line": 639, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=73-96\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=7-30\nread bugs for detail", "file": "spec/fixtures/help.thor", "symbol": "bugs", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=72-95\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=38-61\nread source_paths_for_search for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths_for_search", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=89-112\nread parse for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=185-208\nread Barn for detail", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "find where to assign extended text documentation for an action with optional wrapping toggle", "query": "long description wrap", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lang": "en", "candidates": [{"text": "File: spec/base_spec.rb\nLine 194: it \"use padding in options that do not have aliases\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 238: #", "file": "lib/thor/runner.rb", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 221: end", "file": "spec/base_spec.rb", "symbol": "", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 29: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 86: long_desc <<-D", "file": "spec/fixtures/script.thor", "symbol": "", "line": 86, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 78: def long_desc(long_description, options = {})", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 7: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 53: @render ||= if data.is_a?(Proc)", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 170: end", "file": "spec/group_spec.rb", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 8: def encoding", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 33: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 65: describe \"#snake_case\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 28: expect(Thor::Base.shell).to eq(shell.class)", "file": "spec/shell_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 164: before do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 286: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 4: describe Thor::Argument do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 137: Thor::Util.clear_user_home!", "file": "spec/util_spec.rb", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 677: expect(capture(:stdout) do", "file": "spec/thor_spec.rb", "symbol": "", "line": 677, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 1: Bundler.require :development, :default", "file": "spec/fixtures/help.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 97: #", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 198: ensure", "file": "spec/register_spec.rb", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 39: it \"the help command on the subcommand and after it should result in the same output\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find where to assign extended text documentation for an action with optional wrapping toggle", "query": "long description wrap", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lang": "en", "candidates": [{"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "find where to assign extended text documentation for an action with optional wrapping toggle", "query": "long description wrap", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find where to assign extended text documentation for an action with optional wrapping toggle", "query": "long description wrap", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lang": "en", "candidates": [{"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=104-127\nread can_display_colors? for detail", "file": "lib/thor/shell/color.rb", "symbol": "can_display_colors?", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=789-812\nread initialize_added for detail", "file": "lib/thor/base.rb", "symbol": "initialize_added", "line": 789, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=139-162\nread parse_numeric for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_numeric", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=170-193\nread inside for detail", "file": "lib/thor/actions.rb", "symbol": "inside", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=165-188\nread print_in_columns for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_in_columns", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=143-166\nread content for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=269-292\nread can_display_colors? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "can_display_colors?", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=64-87\nread C for detail", "file": "spec/fixtures/invoke.thor", "symbol": "C", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=60-83\nread invoke! for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=13-36\nread invoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=27-50\nread included for detail", "file": "lib/thor/rake_compat.rb", "symbol": "included", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=71-94\nread example_default_command for detail", "file": "spec/fixtures/script.thor", "symbol": "example_default_command", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=133-156\nread invoke_all for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_all", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=78-101\nread long_desc for detail", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=10-33\nread initialize for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "initialize", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=274-297\nread Apple for detail", "file": "spec/fixtures/script.thor", "symbol": "Apple", "line": 274, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "テストデータの準備をしているのですが、このメソッドが次に呼び出している処理の内容を確認したいです。この関数を実行したときに、具体的にどのような値が返されるようになっていますか?", "query": "calls second method", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lang": "ja", "candidates": [{"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 38: # It receives arguments in an Array and two hashes, one for options and", "file": "lib/thor/base.rb", "symbol": "", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nLine 13: Help.start(ARGV)", "file": "spec/fixtures/help.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 82: \"one two three\"", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 82, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 191: # option :two", "file": "lib/thor.rb", "symbol": "", "line": 191, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nLine 56: type = case value", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 287: value = value.to_s", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 287, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 16: colwidth = (array.map { |el| el.to_s.size }.max || 0) + 2", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 37: desc \"part two\"", "file": "spec/register_spec.rb", "symbol": "", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nLine 1: require_relative \"../thor\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 90: It even has two paragraphs.", "file": "spec/fixtures/script.thor", "symbol": "", "line": 90, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nLine 10: class ExcitingPluginCLI < Thor", "file": "spec/register_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 35: def two", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 12: output_diff_line(diff)", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 117: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 153: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 21: def release", "file": "Thorfile", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 231: invoke_with_a_bang! \"doc/README\", before: \"__end__\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 15: # insert two or more times the same content.", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nLine 32: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/└─ sub/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 191: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 51: # it gets a default shell from Thor::Base.shell.", "file": "lib/thor/shell.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 32: `stty size 2>/dev/null`.split[1].to_i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 53: Array(usage).map do |specific_usage|", "file": "lib/thor/command.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "テストデータの準備をしているのですが、このメソッドが次に呼び出している処理の内容を確認したいです。この関数を実行したときに、具体的にどのような値が返されるようになっていますか?", "query": "calls second method", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lang": "ja", "candidates": [{"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\ndefines two", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "テストデータの準備をしているのですが、このメソッドが次に呼び出している処理の内容を確認したいです。この関数を実行したときに、具体的にどのような値が返されるようになっていますか?", "query": "calls second method", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=194-217\nread print_wrapped for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_wrapped", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=2-25\nread check_for_spec_defs_with_single_quotes for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=248-271\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=39-62\nread three for detail", "file": "spec/fixtures/group.thor", "symbol": "three", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=767-790\nread hi for detail", "file": "spec/thor_spec.rb", "symbol": "hi", "line": 767, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=629-652\nread exit_on_failure? for detail", "file": "lib/thor/base.rb", "symbol": "exit_on_failure?", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=109-132\nread sans_backtrace for detail", "file": "lib/thor/command.rb", "symbol": "sans_backtrace", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=793-816\nread dispatch for detail", "file": "lib/thor/base.rb", "symbol": "dispatch", "line": 793, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=120-143\nread I for detail", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=103-126\nread convert_encoded_instructions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "convert_encoded_instructions", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=79-102\nread can_display_colors? for detail", "file": "lib/thor/shell/html.rb", "symbol": "can_display_colors?", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=296-319\nread file_collision_help for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=285-308\nread run_ruby_script for detail", "file": "lib/thor/actions.rb", "symbol": "run_ruby_script", "line": 285, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=4-27\nread Shell for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=52-75\nread animal for detail", "file": "spec/register_spec.rb", "symbol": "animal", "line": 52, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Estoy implementando la lógica para gestionar la entrada de texto de la terminal. ¿Podrías mostrarme cómo se comprueba si la librería nativa de lectura de líneas está disponible y cómo se configura el autocompletado?", "query": "readline completion available", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lang": "es", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nLine 96: expect(Thor::LineEditor).to receive(:readline).and_return(\"d\", \"y\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 96, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nLine 5: module LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 74: describe \"#default_command\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 221: allow(Thor::LineEditor).to receive(:readline).and_return(\"Y\")", "file": "spec/runner_spec.rb", "symbol": "", "line": 221, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 46: super(convert_key(key))", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 118: path[0...root.size] = \".\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 2: module LineEditor", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 32: def echo?", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 8: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 57: # The start method splits inbound arguments at the first argument", "file": "lib/thor/base.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 16: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 42: # ==== Returns", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 109: \"secret stuff\",", "file": "spec/register_spec.rb", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 115: expect(Thor::LineEditor).to receive(:readline).with(\"Overwrite #{file}? (enter \\\"h\\\" for help) [Ynaqdhm] \", anything).and_return(\"s\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 115, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 250: # flag:: the regexp or string to be replaced", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 250, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 334: result = Thor::LineEditor.readline(message, options)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 334, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 589: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 589, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 135: when TrueClass, FalseClass", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 20: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 17: expect(Thor::LineEditor).to receive(:readline).with(\"\\e[32mIs this green? \\e[0m\", anything).and_return(\"yes\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 69: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 290: /\\A#{value}\\z/i", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 290, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 30: instance.__send__(:method_missing, name.to_sym, *args)", "file": "lib/thor/command.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 14: File.readlines(filename).each_with_index do |line, number|", "file": "spec/quality_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estoy implementando la lógica para gestionar la entrada de texto de la terminal. ¿Podrías mostrarme cómo se comprueba si la librería nativa de lectura de líneas está disponible y cómo se configura el autocompletado?", "query": "readline completion available", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lang": "es", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nsibling in lib/thor/line_editor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\ndefines LineEditor", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Estoy implementando la lógica para gestionar la entrada de texto de la terminal. ¿Podrías mostrarme cómo se comprueba si la librería nativa de lectura de líneas está disponible y cómo se configura el autocompletado?", "query": "readline completion available", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lang": "es", "candidates": [{"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estoy implementando la lógica para gestionar la entrada de texto de la terminal. ¿Podrías mostrarme cómo se comprueba si la librería nativa de lectura de líneas está disponible y cómo se configura el autocompletado?", "query": "readline completion available", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lang": "es", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=6-29\nread available? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=347-370\nread ask_filtered for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_filtered", "line": 347, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=600-623\nread retrieve_command_name for detail", "file": "lib/thor.rb", "symbol": "retrieve_command_name", "line": 600, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=28-51\nread add_to_history? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "add_to_history?", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=69-92\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=76-99\nread unshift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "unshift", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=243-266\nread ChildDefault for detail", "file": "spec/fixtures/script.thor", "symbol": "ChildDefault", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=2-25\nread check_for_spec_defs_with_single_quotes for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=112-135\nread private_file_name for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=622-645\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=177-200\nread check_unknown_options? for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "thorファイルのURLまたはローカルパスを受け取って内容を読み込むメソッドを実装", "query": "install thor file", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lang": "ja", "candidates": [{"text": "File: spec/fixtures/script.thor\nLine 302: option :five", "file": "spec/fixtures/script.thor", "symbol": "", "line": 302, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 19: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 213: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 216: describe \"install/update\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 216, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nLine 14: subcommand \"sub\", Subcommand", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 32: end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 51: start = @colwidth ? 1 : 0", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 7: expect(barn_help).to include(\"barn help [COMMAND] # Describe subcommands or one specific subcommand\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 17: @description = options[:desc]", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 302: # thor :install, \"http://gist.github.com/103208\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 302, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 153: def replace!(regexp, string, force)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 12: puts opts[\"forcefully\"] ? ret.upcase : ret", "file": "spec/fixtures/command.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 202: #", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 33: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 58: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 45: def install(name) # rubocop:disable Metrics/MethodLength", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Thorfile\nLine 15: desc \"install\", \"Build and install thor-#{Thor::VERSION}.gem into system gems\"", "file": "Thorfile", "symbol": "", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 51: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 181: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 171: it \"returns APPDATA/.thor if set\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 2: class Argument #:nodoc:", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 14: # RSpec::Core::RakeTask.new(:spec) do |t|", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 308: # config:: give :verbose => false to not log the status.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 72: # :blue", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "thorファイルのURLまたはローカルパスを受け取って内容を読み込むメソッドを実装", "query": "install thor file", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lang": "ja", "candidates": [{"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "thorファイルのURLまたはローカルパスを受け取って内容を読み込むメソッドを実装", "query": "install thor file", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> ../thor", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> group", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> open-uri", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "thorファイルのURLまたはローカルパスを受け取って内容を読み込むメソッドを実装", "query": "install thor file", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lang": "ja", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=269-292\nread multiple_usages for detail", "file": "spec/fixtures/script.thor", "symbol": "multiple_usages", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=153-176\nread replace! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replace!", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=123-146\nread version for detail", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=169-192\nread check_unknown_options! for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options!", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=65-88\nread UnknownArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=96-119\nread name_with_dashes for detail", "file": "spec/fixtures/script.thor", "symbol": "name_with_dashes", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Thorfile lines=6-29\nread Default for detail", "file": "Thorfile", "symbol": "Default", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=64-87\nread C for detail", "file": "spec/fixtures/invoke.thor", "symbol": "C", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=16-39\nread install for detail", "file": "Thorfile", "symbol": "install", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=281-304\nread Pear for detail", "file": "spec/fixtures/script.thor", "symbol": "Pear", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=200-223\nread in_root for detail", "file": "lib/thor/actions.rb", "symbol": "in_root", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=38-61\nread part_two for detail", "file": "spec/register_spec.rb", "symbol": "part_two", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=161-184\nread initialize for detail", "file": "spec/fixtures/script.thor", "symbol": "initialize", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=192-215\nread append_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "append_to_file", "line": 192, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Le test de commande semble échouer car la méthode qui vérifie les permissions retourne systématiquement une valeur d'échec au lieu de valider l'accès.", "query": "command permission fail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lang": "fr", "candidates": [{"text": "File: spec/actions/inject_into_file_spec.rb\nLine 361: expect(File.read(file)).to eq(\"another stuff\\n__start__\\nREADME\\n__end__\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 361, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 76: def can_has", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_file_spec.rb\nLine 191: describe \"#exists?\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 90: elsif skip", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 59: def #{method}(*args,&block)", "file": "lib/thor/shell.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 12: # include Thor::RakeCompat", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 28: content", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 16: #", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 42: # MyScript.new [1.0], { :foo => :bar }, :shell => Thor::Shell::Basic.new", "file": "lib/thor/shell.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 42: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 76: Thor::Base.subclasses.select do |subclass|", "file": "lib/thor/util.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 8: puts \"Invoked!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 18: capture(:stdout) { @action.revoke! }", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 26: def spec", "file": "Thorfile", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 6: def load_thorfile(filename)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 160: nil", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 1: require_relative \"actions/create_file\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 61: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 8: desc \"describe NAME\", \"say that someone is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 29: say \"+ #{diff.new_element.chomp}\", :green, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 198: # Goes to the root and execute the given block.", "file": "lib/thor/actions.rb", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 13: @opt = Thor::Options.new(opts, defaults, stop_on_unknown, false, relation)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 51: # on Highline implementation and it automatically appends CLEAR to the end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 17: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Le test de commande semble échouer car la méthode qui vérifie les permissions retourne systématiquement une valeur d'échec au lieu de valider l'accès.", "query": "command permission fail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nsibling in spec", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nsibling in spec", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\ndefines can_has", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/subcommand_spec.rb\nsibling in spec", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nsibling in spec", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Le test de commande semble échouer car la méthode qui vérifie les permissions retourne systématiquement une valeur d'échec au lieu de valider l'accès.", "query": "command permission fail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Le test de commande semble échouer car la méthode qui vérifie les permissions retourne systématiquement une valeur d'échec au lieu de valider l'accès.", "query": "command permission fail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lang": "fr", "candidates": [{"text": "Next: read spec/register_spec.rb lines=50-73\nread PluginInheritingFromClassOptionsGroup for detail", "file": "spec/register_spec.rb", "symbol": "PluginInheritingFromClassOptionsGroup", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=72-95\nread handle_no_command_error for detail", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=122-145\nread baz for detail", "file": "spec/fixtures/group.thor", "symbol": "baz", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=142-165\nread update for detail", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=99-122\nread file_level_lookup for detail", "file": "lib/thor/actions/directory.rb", "symbol": "file_level_lookup", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=163-186\nread method_option for detail", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=262-285\nread argument for detail", "file": "lib/thor/base.rb", "symbol": "argument", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=174-197\nread normalize_aliases for detail", "file": "lib/thor/parser/option.rb", "symbol": "normalize_aliases", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=248-271\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=76-99\nread call_myself_with_wrong_arity for detail", "file": "spec/fixtures/script.thor", "symbol": "call_myself_with_wrong_arity", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=168-191\nread check_unknown! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=68-91\nread ClearCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "ClearCounter", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=72-95\nread replace for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "replace", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=4-27\nread command for detail", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=258-281\nread command_help for detail", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=82-105\nread base_path for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "base_path", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=234-257\nread switch_option for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch_option", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=49-72\nread values_at for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "values_at", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=34-57\nread invoker for detail", "file": "spec/fixtures/invoke.thor", "symbol": "invoker", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=62-85\nread source_root for detail", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "¿Cómo puedo agregar contenido al principio de un archivo usando este método?", "query": "prepend file content", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "prepend_to_file", "line": 170, "lang": "es", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nLine 550: describe \"#prepend_to_file\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 550, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nLine 17: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 65: default: \"foobar\"", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 77: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 14: puts \"expected #{SOME_STRING.encoding.name} to equal UTF-8\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 74: if identical?", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 126: content = invoke!(\"doc/components\", \"docs/components\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 378: TABLE", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 378, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 44: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 16: BLACK = \"color: black\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 29: describe \"#invoke!\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 43: FileUtils.mkdir_p(File.dirname(destination))", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 43: it \"accepts - as an array argument\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 112: def private_file_name", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 26: if options[:borders] && row == BORDER_SEPARATOR", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 126: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 7: # hash[:foo] #=> 'bar'", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 10: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 1: require \"helper\"", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 7: #", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 31: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 170: def prepend_to_file(path, *args, &block)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "prepend_to_file", "line": 170, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "¿Cómo puedo agregar contenido al principio de un archivo usando este método?", "query": "prepend file content", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "prepend_to_file", "line": 170, "lang": "es", "candidates": [{"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "¿Cómo puedo agregar contenido al principio de un archivo usando este método?", "query": "prepend file content", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "prepend_to_file", "line": 170, "lang": "es", "candidates": [{"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "¿Cómo puedo agregar contenido al principio de un archivo usando este método?", "query": "prepend file content", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "prepend_to_file", "line": 170, "lang": "es", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=269-292\nread can_display_colors? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "can_display_colors?", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=15-38\nread readline for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "readline", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell.rb lines=52-75\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=213-236\nread globs_for for detail", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=276-299\nread apple for detail", "file": "spec/fixtures/script.thor", "symbol": "apple", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=156-179\nread check_at_least_one! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_at_least_one!", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=170-193\nread prepend_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "prepend_to_file", "line": 170, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=57-80\nread merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=66-89\nread method_exclusive_option_names for detail", "file": "lib/thor/command.rb", "symbol": "method_exclusive_option_names", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=4-27\nread EncodingOther for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "EncodingOther", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=77-100\nread BrokenCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "BrokenCounter", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=53-76\nread merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=108-131\nread are_colors_supported? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=145-168\nread _shared_configuration for detail", "file": "lib/thor/invocation.rb", "symbol": "_shared_configuration", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=9-32\nread option for detail", "file": "spec/parser/option_spec.rb", "symbol": "option", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=547-570\nread shell for detail", "file": "spec/thor_spec.rb", "symbol": "shell", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "터미널 너비에 맞춰 메시지 자동 줄바꿈 및 들여쓰기 출력 로직 찾아줘", "query": "terminal width wrap", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lang": "ko", "candidates": [{"text": "File: spec/shell/html_spec.rb\nLine 30: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 6: print options[\"opt\"]", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 69: # In order to print long description verbatim, with indentation and spacing exactly", "file": "lib/thor.rb", "symbol": "", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nLine 30: Thor::Base.shell = Thor::Shell::Basic", "file": "spec/helper.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 94: method = method.to_s", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 139: when Symbol", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 58: desc \"say MSG\", \"print MSG\"", "file": "spec/register_spec.rb", "symbol": "", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nLine 46: error_messages << check_for_extra_spaces(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 5: module LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 3: class Help < Thor", "file": "spec/fixtures/help.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 1: # frozen_string_literal: true", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 7: def print(message)", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 135: :unchanged", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 365: private", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 365, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 38: # constant:: The constant to be converted to the thor path.", "file": "lib/thor/util.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 82: expect(File.read(file)).to eq(\"BAR = BAR\\n\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 66: expect($stdout).to receive(:print).with(\"What's your password? \")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 255: expect { silence(:stdout) { Thor::Runner.start(%W(install #{location})) } }.not_to raise_error", "file": "spec/runner_spec.rb", "symbol": "", "line": 255, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 656: # Receives a set of options and print them.", "file": "lib/thor/base.rb", "symbol": "", "line": 656, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 92: #", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 668: whatespace not merged,", "file": "spec/thor_spec.rb", "symbol": "", "line": 668, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 91: # Say (print) something to the user. If the sentence ends with a whitespace", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 91, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nLine 61: create string: \"name\", numeric: 13", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 11: if SOME_STRING.encoding.name == \"ISO-8859-7\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "터미널 너비에 맞춰 메시지 자동 줄바꿈 및 들여쓰기 출력 로직 찾아줘", "query": "terminal width wrap", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lang": "ko", "candidates": [{"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\ndefines print", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "터미널 너비에 맞춰 메시지 자동 줄바꿈 및 들여쓰기 출력 로직 찾아줘", "query": "terminal width wrap", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "터미널 너비에 맞춰 메시지 자동 줄바꿈 및 들여쓰기 출력 로직 찾아줘", "query": "terminal width wrap", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/base.rb lines=154-177\nread ClassMethods for detail", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=789-812\nread initialize_added for detail", "file": "lib/thor/base.rb", "symbol": "initialize_added", "line": 789, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=168-191\nread check_unknown! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=77-100\nread to_hash for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "to_hash", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=12-35\nread initialize for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "initialize", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=127-150\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=23-46\nread rake_classes for detail", "file": "lib/thor/rake_compat.rb", "symbol": "rake_classes", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=45-68\nread key? for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "key?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Shell", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=189-212\nread assign_result! for detail", "file": "lib/thor/parser/options.rb", "symbol": "assign_result!", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=50-73\nread foo for detail", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=213-236\nread globs_for for detail", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=750-773\nread from_superclass for detail", "file": "lib/thor/base.rb", "symbol": "from_superclass", "line": 750, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=243-266\nread ChildDefault for detail", "file": "spec/fixtures/script.thor", "symbol": "ChildDefault", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=1-24\nread Enum for detail", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=6-29\nread WrappedPrinter for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "WrappedPrinter", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=43-66\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=7-30\nread print for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=231-254\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "특정 패턴이 포함된 줄을 찾아 주석 처리하는 기능 찾아줘", "query": "comment lines pattern", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "comment_lines", "line": 333, "lang": "ko", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nLine 660: describe \"#comment_lines\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 660, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 442: action :gsub_file, \"doc/README\", \"__start__\", \"START\"", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 442, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 53: if enum.respond_to? :join", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 259: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 96: #", "file": "lib/thor/group.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 39: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/A subcommand/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 139: checked = false", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 198: on_red = shell.set_color \"hi!\", :white, :on_red", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 27: alias_method :add_file, :create_file", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 85: end", "file": "lib/thor.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 56: eval(\"$#{stream} = #{stream.upcase}\")", "file": "spec/helper.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 83: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 24: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 105: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 71: klass = Class.new do", "file": "spec/command_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 333: def comment_lines(path, flag, *args)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "comment_lines", "line": 333, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/encoding_spec.rb\nLine 12: expect(capture(:stdout) { Thor::Sandbox::EncodingWithUtf8.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 107: expect(@action.send(:convert_encoded_instructions, \"%file_name%.txt\")).to eq(\"expected.txt\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 132: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 329: invoke_with_a_bang! \"doc/README\", \"\\nmore content\", config", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 26: expect(Thor::LineEditor).to receive(:readline).with(\"Is this green? \", anything).and_return(\"yes\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "특정 패턴이 포함된 줄을 찾아 주석 처리하는 기능 찾아줘", "query": "comment lines pattern", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "comment_lines", "line": 333, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "특정 패턴이 포함된 줄을 찾아 주석 처리하는 기능 찾아줘", "query": "comment lines pattern", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "comment_lines", "line": 333, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "특정 패턴이 포함된 줄을 찾아 주석 처리하는 기능 찾아줘", "query": "comment lines pattern", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "comment_lines", "line": 333, "lang": "ko", "candidates": [{"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=333-356\nread comment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "comment_lines", "line": 333, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/quality_spec.rb lines=12-35\nread check_for_tab_characters for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=100-123\nread force_on_collision? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_on_collision?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=129-152\nread subclasses for detail", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=72-95\nread format_cell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "format_cell", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=64-87\nread reverse_merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=121-144\nread AnotherScript for detail", "file": "spec/fixtures/script.thor", "symbol": "AnotherScript", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=66-89\nread method_exclusive_option_names for detail", "file": "lib/thor/command.rb", "symbol": "method_exclusive_option_names", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=320-343\nread subcommands for detail", "file": "lib/thor.rb", "symbol": "subcommands", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=199-222\nread printable_commands for detail", "file": "lib/thor/group.rb", "symbol": "printable_commands", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=129-152\nread uninstall for detail", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=358-381\nread class_exclusive for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=121-144\nread handle_no_method_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_no_method_error?", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "디렉토리 비우는 기능 찾아줘", "query": "empty directory", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lang": "ko", "candidates": [{"text": "File: spec/actions/empty_directory_spec.rb\nLine 9: def empty_directory(destination, options = {})", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 121: end", "file": "spec/group_spec.rb", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 1: require_relative \"empty_directory\"", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 13: def empty_directory(destination, config = {})", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_link.rb\nLine 41: invoke_with_conflict_check do", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 91: it \"returns true if the destination link exists and is identical\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 11: load_thorfile(\"encoding_with_utf8.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 22: @enum = options[:enum]", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 8: map \"-T\" => :list, \"-i\" => :install, \"-u\" => :update, \"-v\" => :version", "file": "lib/thor/runner.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 191: # ==== Options", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 96: end", "file": "lib/thor/error.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 16: end", "file": "spec/command_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 266: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 266, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 2: include Thor::Actions", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 2: # frozen_string_literal: true", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 656: # Receives a set of options and print them.", "file": "lib/thor/base.rb", "symbol": "", "line": 656, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 14: source_paths << File.expand_path(\"broken\", File.dirname(__FILE__))", "file": "spec/fixtures/group.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 4: require_relative \"actions/empty_directory\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 109: switch = $1", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 113: it \"does not copy .empty_directory files\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 113, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 1: require_relative \"empty_directory\"", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 1: require_relative \"empty_directory\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "디렉토리 비우는 기능 찾아줘", "query": "empty directory", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "디렉토리 비우는 기능 찾아줘", "query": "empty directory", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "디렉토리 비우는 기능 찾아줘", "query": "empty directory", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=93-116\nread method_missing for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "method_missing", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=216-239\nread apply for detail", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=75-98\nread PluginWithDefaultcommandAndDeclaredArgument for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefaultcommandAndDeclaredArgument", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=3-26\nread Subcommand for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Subcommand", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=42-65\nread completion_options for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_options", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=377-400\nread merge_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge_tool", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=4-27\nread EncodingWithUtf8 for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=145-168\nread register_klass_file for detail", "file": "lib/thor/base.rb", "symbol": "register_klass_file", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=32-55\nread echo? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "echo?", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=77-100\nread required_arguments_for for detail", "file": "lib/thor/command.rb", "symbol": "required_arguments_for", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=36-59\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor.rb lines=6-29\nread readline for detail", "file": "lib/thor/line_editor.rb", "symbol": "readline", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=25-48\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=128-151\nread bar for detail", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "알 수 없는 명령줄 옵션이 전달되었을 때 에러를 발생시키도록 설정하는 메서드를 찾아주세요. 기본적으로는 동적 호출을 위해 비활성화되어 있다고 합니다.", "query": "unknown options error", "file": "lib/thor/base.rb", "symbol": "check_unknown_options!", "line": 169, "lang": "ko", "candidates": [{"text": "File: lib/thor/base.rb\nLine 169: def check_unknown_options!", "file": "lib/thor/base.rb", "symbol": "check_unknown_options!", "line": 169, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nLine 65: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 29: ENV[\"THOR_SHELL\"] = \"TestShell\"", "file": "spec/shell_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 166: method_options :param => :required", "file": "spec/fixtures/script.thor", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 4: desc \"print_opt\", \"My method\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 6: @silence = false", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 42: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 17: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 23: File.readlines(filename).each_with_index do |line, number|", "file": "spec/quality_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 16: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 176: ENV[\"APPDATA\"]", "file": "lib/thor/util.rb", "symbol": "", "line": 176, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 27: autoload :Basic, File.expand_path(\"shell/basic\", __dir__)", "file": "lib/thor/shell.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 287: else", "file": "lib/thor/group.rb", "symbol": "", "line": 287, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 87: # Magic predicates. For instance:", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 1: require_relative \"line_editor/basic\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 12: argument(nil)", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 68: def absolute_matches", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 46: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 3: describe Thor do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 39: it \"uses padding for inside block outputs\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 19: if ((((index + 1) % (Terminal.terminal_width / colwidth))).zero? && !index.zero?) || index + 1 == array.length", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 44: create array: nil", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 63: \"%-s\".dup", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 281: describe \"#disable_required_check!\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 281, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "알 수 없는 명령줄 옵션이 전달되었을 때 에러를 발생시키도록 설정하는 메서드를 찾아주세요. 기본적으로는 동적 호출을 위해 비활성화되어 있다고 합니다.", "query": "unknown options error", "file": "lib/thor/base.rb", "symbol": "check_unknown_options!", "line": 169, "lang": "ko", "candidates": [{"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "알 수 없는 명령줄 옵션이 전달되었을 때 에러를 발생시키도록 설정하는 메서드를 찾아주세요. 기본적으로는 동적 호출을 위해 비활성화되어 있다고 합니다.", "query": "unknown options error", "file": "lib/thor/base.rb", "symbol": "check_unknown_options!", "line": 169, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "알 수 없는 명령줄 옵션이 전달되었을 때 에러를 발생시키도록 설정하는 메서드를 찾아주세요. 기본적으로는 동적 호출을 위해 비활성화되어 있다고 합니다.", "query": "unknown options error", "file": "lib/thor/base.rb", "symbol": "check_unknown_options!", "line": 169, "lang": "ko", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=71-94\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=594-617\nread initialize_added for detail", "file": "lib/thor.rb", "symbol": "initialize_added", "line": 594, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=49-72\nread values_at for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "values_at", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=67-90\nread valid_type? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/shell/basic_spec.rb lines=5-28\nread shell for detail", "file": "spec/shell/basic_spec.rb", "symbol": "shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=174-197\nread normalize_aliases for detail", "file": "lib/thor/parser/option.rb", "symbol": "normalize_aliases", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=83-106\nread invoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "invoke!", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=12-35\nread initialize for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "initialize", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=122-145\nread invoke_command for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_command", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=169-192\nread check_unknown_options! for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options!", "line": 169, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=129-152\nread method_options for detail", "file": "lib/thor.rb", "symbol": "method_options", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=164-187\nread undasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=85-108\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=12-35\nread file for detail", "file": "spec/actions_spec.rb", "symbol": "file", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "コマンドライン入力の制御ロジックを実装しているのですが、標準入力から文字列を取得する際に、入力を画面に表示するかどうかのオプションを切り替える仕組みはどこにありますか?また、この入力処理の基盤となるクラスの構成を教えてください。", "query": "readline stdin echo", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lang": "ja", "candidates": [{"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 28: super(convert_key(key))", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 518: expect(File.binread(file)).to eq(\"START\\nREADME\\n__end__\\n\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 518, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 11: ret = \"#{name} is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 1: class Thor", "file": "lib/thor/error.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 108: end", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 81: command.long_description = long_description if long_description", "file": "lib/thor.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 1: class A < Thor", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 16: # hostname = ask(\"What is the virtual hostname I should use?\")", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 17: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 5: describe Thor::Actions::InjectIntoFile do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nLine 20: require \"diff/lcs\" # You need diff/lcs installed to run specs (but not to run Thor).", "file": "spec/helper.rb", "symbol": "", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nLine 17: r.close", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 3: require \"bundler\"", "file": "Thorfile", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 343: describe \"#command_exists?\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 4: class TreeApp < Thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 1: class Thor", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nLine 292: end", "file": "lib/thor/group.rb", "symbol": "", "line": 292, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 7: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 25: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 38: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/Another top level command/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 11: class Thor", "file": "lib/thor/base.rb", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 266: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 266, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 9: define", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 60: def self.sort_commands!(list)", "file": "spec/sort_spec.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "コマンドライン入力の制御ロジックを実装しているのですが、標準入力から文字列を取得する際に、入力を画面に表示するかどうかのオプションを切り替える仕組みはどこにありますか?また、この入力処理の基盤となるクラスの構成を教えてください。", "query": "readline stdin echo", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lang": "ja", "candidates": [{"text": "File: lib/thor/line_editor/readline.rb\nsibling in lib/thor/line_editor", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\ndefines Thor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "コマンドライン入力の制御ロジックを実装しているのですが、標準入力から文字列を取得する際に、入力を画面に表示するかどうかのオプションを切り替える仕組みはどこにありますか?また、この入力処理の基盤となるクラスの構成を教えてください。", "query": "readline stdin echo", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "コマンドライン入力の制御ロジックを実装しているのですが、標準入力から文字列を取得する際に、入力を画面に表示するかどうかのオプションを切り替える仕組みはどこにありますか?また、この入力処理の基盤となるクラスの構成を教えてください。", "query": "readline stdin echo", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/line_editor/basic.rb lines=6-29\nread available? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=59-82\nread foo for detail", "file": "spec/fixtures/script.thor", "symbol": "foo", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=6-29\nread Thor for detail", "file": "lib/thor/shell/color.rb", "symbol": "Thor", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=42-65\nread completion_options for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_options", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=505-528\nread dispatch for detail", "file": "lib/thor.rb", "symbol": "dispatch", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=678-701\nread is_thor_reserved_word? for detail", "file": "lib/thor/base.rb", "symbol": "is_thor_reserved_word?", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=258-281\nread command_help for detail", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=277-300\nread rotten_apple for detail", "file": "spec/fixtures/script.thor", "symbol": "rotten_apple", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=215-238\nread strict_args_position! for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=269-292\nread can_display_colors? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "can_display_colors?", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=147-170\nread replacement_present? for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=263-286\nread gsub_file! for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=15-38\nread readline for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "readline", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=10-33\nread initialize for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "initialize", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/create_link_spec.rb lines=31-54\nread invoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "invoke!", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=321-344\nread show_modules for detail", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "LineEditor", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "añade un texto al búfer de salida", "query": "output buffer concat", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "concat", "line": 367, "lang": "es", "candidates": [{"text": "File: lib/thor/actions/file_manipulation.rb\nLine 367: def concat(string)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "concat", "line": 367, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 10: @options = options", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 262: shift", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 61: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 74: # :cyan", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 82: # If force is true, run the action, otherwise check if it's not being", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 9: method_options :forcefully => :boolean", "file": "spec/fixtures/command.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 43: if ancestor_name", "file": "lib/thor/command.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 282: my_script = Class.new(Thor) do", "file": "spec/thor_spec.rb", "symbol": "", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 140: invoker pretend: true", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 521: args.concat opts", "file": "lib/thor.rb", "symbol": "", "line": 521, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 74: raise NotImplementedError, \"Implement #ask for Thor::Shell::HTML\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 63: concat(result.strip + \" world!\")", "file": "spec/fixtures/group.thor", "symbol": "", "line": 63, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 7: end", "file": "lib/thor/command.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 108: case default", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 86: expect(out.chomp).to eq(\"NO_COLOR is enforced! We should not have colors!\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 39: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 39: class B < Thor", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 39: ON_RED = \"\\e[41m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 11: Thor::Base.subclasses.concat delete", "file": "spec/runner_spec.rb", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nLine 149: it \"raises an error type hash is repeatable and default is inconsistent with type and check_default_type is true\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 149: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 138: expect(runner.find_in_source_paths(\"doc\")).to eq(File.expand_path(\"doc\", source_root))", "file": "spec/actions_spec.rb", "symbol": "", "line": 138, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "añade un texto al búfer de salida", "query": "output buffer concat", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "concat", "line": 367, "lang": "es", "candidates": [{"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "añade un texto al búfer de salida", "query": "output buffer concat", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "concat", "line": 367, "lang": "es", "candidates": [{"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "añade un texto al búfer de salida", "query": "output buffer concat", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "concat", "line": 367, "lang": "es", "candidates": [{"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=123-146\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=49-72\nread capture for detail", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=203-226\nread method_exclusive for detail", "file": "lib/thor.rb", "symbol": "method_exclusive", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=104-127\nread F for detail", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=43-66\nread show_default? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "show_default?", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=154-177\nread ClassMethods for detail", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=296-319\nread file_collision_help for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=185-208\nread Barn for detail", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=880-903\nread no_arg for detail", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=60-83\nread invoke! for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=269-292\nread can_display_colors? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "can_display_colors?", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=367-390\nread concat for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "concat", "line": 367, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=347-370\nread ask_filtered for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_filtered", "line": 347, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=153-176\nread load_thorfile for detail", "file": "lib/thor/util.rb", "symbol": "load_thorfile", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=72-95\nread format_cell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "format_cell", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=143-166\nread content for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=12-35\nread exists_and_identical? for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=427-450\nread remove_argument for detail", "file": "lib/thor/base.rb", "symbol": "remove_argument", "line": 427, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=4-27\nread Base for detail", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "这个方法来做什么的?它处理传入的文件名字符串,查找被百分号括起来的部分,并尝试通过调用 base 对象上的对应方法来替换它们。", "query": "convert encoded instructions", "file": "lib/thor/actions/empty_directory.rb", "symbol": "convert_encoded_instructions", "line": 103, "lang": "zh", "candidates": [{"text": "File: lib/thor/shell/html.rb\nLine 30: WHITE = \"color: white\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 3: attr_reader :aliases, :group, :lazy_default, :hide, :repeatable", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 6: def self.readline(prompt, options = {})", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 12: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 8: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 16: def install", "file": "Thorfile", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 31: # #=> Option foo with default value 2 and type numeric", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 31: end.to raise_error(ArgumentError, \"An argument cannot have an enum other than an enumerable.\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 4: module Actions", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 100: describe \"#convert_encoded_instructions\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 100, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 104: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 13: end", "file": "Thorfile", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 13: Test.start(ARGV)", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 131: # Receives a file or directory and search for it in the source paths.", "file": "lib/thor/actions.rb", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 301: expect(runner.shell).to receive(:say_status).with(:run, 'ls from \".\"', :yellow)", "file": "spec/actions_spec.rb", "symbol": "", "line": 301, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 46: @assigns[argument.human_name] = send(:\"parse_#{argument.type}\", argument.human_name)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 103: def convert_encoded_instructions(filename)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "convert_encoded_instructions", "line": 103, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Thorfile\nLine 25: desc \"spec\", \"Run RSpec code examples\"", "file": "Thorfile", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 206: end", "file": "lib/thor.rb", "symbol": "", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 78: def spell_checker", "file": "lib/thor/error.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 23: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 2: require_relative \"terminal\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 65: # ==== Configuration", "file": "lib/thor/actions.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 14: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "这个方法来做什么的?它处理传入的文件名字符串,查找被百分号括起来的部分,并尝试通过调用 base 对象上的对应方法来替换它们。", "query": "convert encoded instructions", "file": "lib/thor/actions/empty_directory.rb", "symbol": "convert_encoded_instructions", "line": 103, "lang": "zh", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "这个方法来做什么的?它处理传入的文件名字符串,查找被百分号括起来的部分,并尝试通过调用 base 对象上的对应方法来替换它们。", "query": "convert encoded instructions", "file": "lib/thor/actions/empty_directory.rb", "symbol": "convert_encoded_instructions", "line": 103, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "这个方法来做什么的?它处理传入的文件名字符串,查找被百分号括起来的部分,并尝试通过调用 base 对象上的对应方法来替换它们。", "query": "convert encoded instructions", "file": "lib/thor/actions/empty_directory.rb", "symbol": "convert_encoded_instructions", "line": 103, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=6-29\nread available? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=70-93\nread method_at_least_one_option_names for detail", "file": "lib/thor/command.rb", "symbol": "method_at_least_one_option_names", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=15-38\nread entered? for detail", "file": "lib/thor/nested_context.rb", "symbol": "entered?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=246-269\nread method_at_least_one for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=62-85\nread source_root for detail", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=127-150\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=347-370\nread ask_filtered for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_filtered", "line": 347, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=103-126\nread convert_encoded_instructions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "convert_encoded_instructions", "line": 103, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=57-80\nread merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=32-55\nread echo? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "echo?", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=26-49\nread insert_into_file! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=210-233\nread Scripts for detail", "file": "spec/fixtures/script.thor", "symbol": "Scripts", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=153-176\nread load_thorfile for detail", "file": "lib/thor/util.rb", "symbol": "load_thorfile", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Je cherche la méthode qui retourne la valeur de l'option 'first' dans le groupe Thor. Pourriez-vous me montrer comment elle est implémentée dans les fixtures ?", "query": "one method options first", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 85, "lang": "fr", "candidates": [{"text": "File: spec/script_exit_status_spec.rb\nLine 9: r,w= IO.pipe", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 81: it \"returns the at least one of option names for the class\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 20: private", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 18: # Hold source paths for one Thor instance. source_paths_for_search is the", "file": "lib/thor/actions.rb", "symbol": "", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nLine 181: output = capture(:stdout) { BoringVendorProvidedCLI.start(%w(subcommand help)) }", "file": "spec/register_spec.rb", "symbol": "", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 104: describe \"#class_at_least_one\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 8: Bundler::GemHelper.install_tasks", "file": "Thorfile", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 200: describe \"#identical?\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 53: # Set color by using a string or one of the defined constants. If a third", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 53, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 84: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 106: content = capture(:stdout) { E.help(Thor::Base.shell.new) }", "file": "spec/group_spec.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 15: _, exit_status= Process.wait2(pid)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 38: return true if defined?(Diff::LCS)", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 89: def parse(args) # rubocop:disable Metrics/MethodLength", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 85: def one", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 85, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 15: public", "file": "spec/fixtures/script.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 50: expect(MyCounter.desc).to eq(\"Description:\\n This generator runs three commands: one, two and three.\\n\")", "file": "spec/group_spec.rb", "symbol": "", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 190: # option :one", "file": "lib/thor.rb", "symbol": "", "line": 190, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nLine 180: revoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 14: it \"passes arguments to subcommand classes\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 213: expect(parse(:foo, :array).usage).to eq(\"[--foo=one two three]\")", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 213, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 98: # Shows the file collision menu to the user and gets the result.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 27: require \"io/console\"", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche la méthode qui retourne la valeur de l'option 'first' dans le groupe Thor. Pourriez-vous me montrer comment elle est implémentée dans les fixtures ?", "query": "one method options first", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 85, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\ndefines one", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche la méthode qui retourne la valeur de l'option 'first' dans le groupe Thor. Pourriez-vous me montrer comment elle est implémentée dans les fixtures ?", "query": "one method options first", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 85, "lang": "fr", "candidates": [{"text": "Next: read spec/fixtures/command.thor lines=3-26\nread Amazing for detail", "file": "spec/fixtures/command.thor", "symbol": "Amazing", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=103-126\nread convert_encoded_instructions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "convert_encoded_instructions", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=772-795\nread basename for detail", "file": "lib/thor/base.rb", "symbol": "basename", "line": 772, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=144-167\nread method_missing for detail", "file": "spec/fixtures/script.thor", "symbol": "method_missing", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=190-213\nread thor_root for detail", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=7-30\nread command1 for detail", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=127-150\nread J for detail", "file": "spec/fixtures/invoke.thor", "symbol": "J", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=99-122\nread destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "destination_root", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=686-709\nread tree for detail", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=1-24\nread Enum for detail", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=619-642\nread handle_argument_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_argument_error", "line": 619, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=65-88\nread UnknownArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=215-238\nread current_is_switch_formatted? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch_formatted?", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=85-108\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 85, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/util.rb lines=168-191\nread user_home for detail", "file": "lib/thor/util.rb", "symbol": "user_home", "line": 168, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Thor에서 사용하는 쉘 인스턴스를 반환하는 메서드야. 메모리 캐싱을 위해 인스턴스 변수를 사용하고 있어.", "query": "Thor shell instance", "file": "spec/shell_spec.rb", "symbol": "shell", "line": 4, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions/file_manipulation.rb\nLine 190: # end", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 301: expect(runner.shell).to receive(:say_status).with(:run, 'ls from \".\"', :yellow)", "file": "spec/actions_spec.rb", "symbol": "", "line": 301, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 169: @content = capture(:stdout) { MyCounter.help(Thor::Base.shell.new) }", "file": "spec/base_spec.rb", "symbol": "", "line": 169, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 533: shell = Thor::Base.shell.new", "file": "spec/thor_spec.rb", "symbol": "", "line": 533, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 115: not_debugging?(instance) && (error.message =~ /wrong number of arguments/ || error.message =~ /given \\d*, expected \\d*/) && begin", "file": "lib/thor/command.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 4: def shell", "file": "spec/shell_spec.rb", "symbol": "shell", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/rake_compat_spec.rb\nLine 71: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 23: # Raised when a command was not found.", "file": "lib/thor/error.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 12: Rake::Task[\"build\"].execute", "file": "Thorfile", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 210: headers = {\"Content-Type\" => \"application/json\"}", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 156: it \"changes the base root\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 50: config = args.last.is_a?(Hash) ? args.pop : {}", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 686: def tree", "file": "lib/thor.rb", "symbol": "", "line": 686, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 15: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 170: opts ||= stored_opts.dup", "file": "lib/thor/invocation.rb", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 8: def encoding", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 25: expect(command(bar: :required).formatted_usage(object)).to eq(\":foo:can_has --bar=BAR\")", "file": "spec/command_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 137: expect(@base.shell).to receive(:system).with(\"diff\", \"-u\", /doc\\/config\\.rb/, /doc\\/config\\.rb/)", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 137, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nLine 3: describe Thor::Shell::HTML do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 101: base.shell.file_collision(destination) { render }", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 101, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nLine 4: def shell", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 1: require_relative \"basic\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/command.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 46: expect(parse(\"-\", \"title\", \"-\")[\"array\"]).to eq(%w(- title -))", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Thor에서 사용하는 쉘 인스턴스를 반환하는 메서드야. 메모리 캐싱을 위해 인스턴스 변수를 사용하고 있어.", "query": "Thor shell instance", "file": "spec/shell_spec.rb", "symbol": "shell", "line": 4, "lang": "ko", "candidates": [{"text": "File: spec/register_spec.rb\nsibling in spec", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nsibling in spec", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nsibling in spec", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nsibling in spec", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\ndefines shell", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "thor", "task": "Thor에서 사용하는 쉘 인스턴스를 반환하는 메서드야. 메모리 캐싱을 위해 인스턴스 변수를 사용하고 있어.", "query": "Thor shell instance", "file": "spec/shell_spec.rb", "symbol": "shell", "line": 4, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Thor에서 사용하는 쉘 인스턴스를 반환하는 메서드야. 메모리 캐싱을 위해 인스턴스 변수를 사용하고 있어.", "query": "Thor shell instance", "file": "spec/shell_spec.rb", "symbol": "shell", "line": 4, "lang": "ko", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=138-161\nread potentially_ambiguous_but_hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous_but_hidden", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=138-161\nread invoke_with_padding for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_with_padding", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=133-156\nread potentially_ambiguous for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=2-25\nread check_for_spec_defs_with_single_quotes for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=117-140\nread template for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=4-27\nread Thor for detail", "file": "lib/thor/rake_compat.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=98-121\nread MalformattedArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "MalformattedArgumentError", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=103-126\nread truncate for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "truncate", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=6-29\nread show_diff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "show_diff", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=145-168\nread _shared_configuration for detail", "file": "lib/thor/invocation.rb", "symbol": "_shared_configuration", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=59-82\nread exit_on_failure? for detail", "file": "spec/subcommand_spec.rb", "symbol": "exit_on_failure?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell_spec.rb", "symbol": "shell", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/group_spec.rb lines=206-229\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=115-138\nread H for detail", "file": "spec/fixtures/invoke.thor", "symbol": "H", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=221-244\nread MyDefaults for detail", "file": "spec/fixtures/script.thor", "symbol": "MyDefaults", "line": 221, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "CLI 출력 스타일을 결정하는 로직을 찾고 있어요. 환경 변수나 운영체제에 따라 색상 지원 여부를 어떻게 판단하는지 확인하고 싶습니다.", "query": "shell environment OS", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lang": "ko", "candidates": [{"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 24: memo", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 34: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 339: expect(runner.run \"echo $BAR\", env: {\"BAR\" => \"foo\"}, capture: true).to eq(\"foo\\n\")", "file": "spec/actions_spec.rb", "symbol": "", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 257: expect(capture(:stderr) do", "file": "spec/thor_spec.rb", "symbol": "", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 84: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 15: class SubApp < Thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 5: # available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 168: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 29: def help(shell)", "file": "lib/thor/group.rb", "symbol": "", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nLine 106: end", "file": "lib/thor/error.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 12: Thor::LineEditor::Readline,", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 7: require_relative \"shell\"", "file": "lib/thor/base.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 57: expect(File.exist?(File.join(destination_root, \"doc\"))).to be true", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 5: def shell", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 11: def shell", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_file_spec.rb\nLine 137: expect(@base.shell).to receive(:system).with(\"diff\", \"-u\", /doc\\/config\\.rb/, /doc\\/config\\.rb/)", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 137, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nLine 10: #", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 137: # Invokes using shell padding.", "file": "lib/thor/invocation.rb", "symbol": "", "line": 137, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 267: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 267, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 511: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 511, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 148: it \"does change the file if already includes content and :force is true\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 97: expect(runner.shell).to receive(:system).with(\"diff\", \"-u\", /encoding_with_utf8.thor/, /encoding_with_utf8.thor/)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 97, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "CLI 출력 스타일을 결정하는 로직을 찾고 있어요. 환경 변수나 운영체제에 따라 색상 지원 여부를 어떻게 판단하는지 확인하고 싶습니다.", "query": "shell environment OS", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "CLI 출력 스타일을 결정하는 로직을 찾고 있어요. 환경 변수나 운영체제에 따라 색상 지원 여부를 어떻게 판단하는지 확인하고 싶습니다.", "query": "shell environment OS", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "CLI 출력 스타일을 결정하는 로직을 찾고 있어요. 환경 변수나 운영체제에 따라 색상 지원 여부를 어떻게 판단하는지 확인하고 싶습니다.", "query": "shell environment OS", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/shell/table_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell.rb lines=23-46\nread Shell for detail", "file": "lib/thor/shell.rb", "symbol": "Shell", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell.rb lines=52-75\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 52, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=325-348\nread subcommand_classes for detail", "file": "lib/thor.rb", "symbol": "subcommand_classes", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=158-181\nread parse_string for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_string", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=44-67\nread initialize for detail", "file": "lib/thor/shell.rb", "symbol": "initialize", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=254-277\nread self_command for detail", "file": "lib/thor/group.rb", "symbol": "self_command", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=16-39\nread parse for detail", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=75-98\nread PluginWithDefaultcommandAndDeclaredArgument for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefaultcommandAndDeclaredArgument", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=4-27\nread Base for detail", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=639-662\nread class_options_help for detail", "file": "lib/thor/base.rb", "symbol": "class_options_help", "line": 639, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=83-106\nread windows? for detail", "file": "spec/helper.rb", "symbol": "windows?", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=225-248\nread current_is_value? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_value?", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=97-120\nread parse_hash for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_hash", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=51-74\nread six for detail", "file": "spec/fixtures/group.thor", "symbol": "six", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=203-226\nread current_is_switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch?", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=546-569\nread banner for detail", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "実行時のルートディレクトリからの相対パスを取得する処理を探して", "query": "relative destination root", "file": "lib/thor/actions.rb", "symbol": "relative_to_original_destination_root", "line": 114, "lang": "ja", "candidates": [{"text": "File: lib/thor/actions/empty_directory.rb\nLine 89: @relative_destination = base.relative_to_original_destination_root(@destination)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 89, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nLine 33: @corrections ||= spell_checker.correct(error.command).map(&:inspect)", "file": "lib/thor/error.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 14: else", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 6: attr_reader :stdout, :options", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 62: private", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 96: if args.empty?", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 11: class_option \"opt\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 148: say_status :chmod, relative_to_original_destination_root(path), config.fetch(:verbose, true)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 148, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\nLine 49: else", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 5: def initialize(name, description, long_description, wrap_long_description, usage, options = nil, options_relation = nil)", "file": "lib/thor/command.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 24: validate! # Trigger specific validations", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 549: end.join(\"\\n\")", "file": "lib/thor.rb", "symbol": "", "line": 549, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 70: describe \"#relative_to_original_destination_root\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 70, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 114: def relative_to_original_destination_root(path, remove_dot = true)", "file": "lib/thor/actions.rb", "symbol": "relative_to_original_destination_root", "line": 114, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nLine 5: class_option \"fruit\", :aliases => \"-f\", :type => :string, :enum => %w(apple banana)", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 34: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub print_opt -h)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 50: class PathCompletion", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 39: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 117: describe \"#yes?\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 3: describe Thor::Shell do", "file": "spec/shell_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 12: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 154: ARGV.replace []", "file": "spec/runner_spec.rb", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 2: require_relative \"line_editor/readline\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 44: @command = command", "file": "lib/thor/error.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "実行時のルートディレクトリからの相対パスを取得する処理を探して", "query": "relative destination root", "file": "lib/thor/actions.rb", "symbol": "relative_to_original_destination_root", "line": 114, "lang": "ja", "candidates": [{"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "実行時のルートディレクトリからの相対パスを取得する処理を探して", "query": "relative destination root", "file": "lib/thor/actions.rb", "symbol": "relative_to_original_destination_root", "line": 114, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/inject_into_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/file_manipulation", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/empty_directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> revoke", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "実行時のルートディレクトリからの相対パスを取得する処理を探して", "query": "relative destination root", "file": "lib/thor/actions.rb", "symbol": "relative_to_original_destination_root", "line": 114, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Thorfile lines=21-44\nread release for detail", "file": "Thorfile", "symbol": "release", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=108-131\nread are_colors_supported? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/html.rb lines=9-32\nread HTML for detail", "file": "lib/thor/shell/html.rb", "symbol": "HTML", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=560-583\nread create_command for detail", "file": "lib/thor.rb", "symbol": "create_command", "line": 560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=191-214\nread open for detail", "file": "spec/fixtures/script.thor", "symbol": "open", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=129-152\nread subclasses for detail", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=115-138\nread say_error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_error", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=64-87\nread reverse_merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=114-137\nread relative_to_original_destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "relative_to_original_destination_root", "line": 114, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=56-79\nread exists? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=258-281\nread set_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "set_color", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=27-50\nread delete for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "delete", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=73-96\nread ask for detail", "file": "lib/thor/shell/html.rb", "symbol": "ask", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=17-40\nread revoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "revoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=101-124\nread ExclusiveArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "ExclusiveArgumentError", "line": 101, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "exclusive_options_namesの初期化処理はどうなっている?", "query": "method exclusive option names", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lang": "ja", "candidates": [{"text": "File: lib/thor/actions.rb\nLine 152: else", "file": "lib/thor/actions.rb", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 42: # ==== Returns", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 112: # the script started).", "file": "lib/thor/actions.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 1: Bundler.require :development, :default", "file": "spec/fixtures/help.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 469: expect(parse(\"--attributes=-name:string\", \"age:integer\", \"--gender:string\")[\"attributes\"]).to eq(\"-name\" => \"string\", \"age\" => \"integer\")", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 80: # true if running on windows, used for conditional spec skips", "file": "spec/helper.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 84: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 66: def method_exclusive_option_names #:nodoc:", "file": "lib/thor/command.rb", "symbol": "", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 63: protected", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 460: def method_exclusive_option_names #:nodoc:", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 87: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 169: end", "file": "spec/util_spec.rb", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 223: context \"when stop_on_unknown is true\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 16: #", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 6: def self.readline(prompt, options = {})", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 101: #", "file": "lib/thor/invocation.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 248: it \"accepts a secure URL as the path\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 9: true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 24: $stdin.gets", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 74: if identical?", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 50: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "exclusive_options_namesの初期化処理はどうなっている?", "query": "method exclusive option names", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lang": "ja", "candidates": [{"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "exclusive_options_namesの初期化処理はどうなっている?", "query": "method exclusive option names", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "exclusive_options_namesの初期化処理はどうなっている?", "query": "method exclusive option names", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lang": "ja", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=68-91\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=12-35\nread command2 for detail", "file": "spec/tree_spec.rb", "symbol": "command2", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=72-95\nread shift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "shift", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=69-92\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=100-123\nread force_on_collision? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_on_collision?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=53-76\nread merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=460-483\nread method_exclusive_option_names for detail", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=367-390\nread concat for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "concat", "line": 367, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=186-209\nread check_requirement! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "check_requirement!", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=5-28\nread print_opt for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "print_opt", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=225-248\nread initialize_thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "initialize_thorfiles", "line": 225, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "¿Qué hace este constructor?", "query": "initialize super", "file": "spec/fixtures/script.thor", "symbol": "initialize", "line": 161, "lang": "es", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nLine 44: break unless peek", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 54: def initialize(text)", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 161: def initialize(*args)", "file": "spec/fixtures/script.thor", "symbol": "initialize", "line": 161, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_link.rb\nLine 56: def exists?", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 15: expect(capture(:stdout) { Scripts::MyDefaults.start(%w(barn open shotgun)) }.strip).to eq(\"That's going to leave a mark.\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 9: def initialize(stdout, options = {})", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nLine 1: Bundler.require :development, :default", "file": "spec/fixtures/help.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 32: def initialize(hash_options = {}, defaults = {}, stop_on_unknown = false, disable_required_check = false, relations = {})", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 198: # Goes to the root and execute the given block.", "file": "lib/thor/actions.rb", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 8: desc \"error\", \"exit with a planned error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 213: expect(klass.start(%w(jose --loud))).to eq([\"Hi JOSE\"])", "file": "spec/group_spec.rb", "symbol": "", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 129: it \"does not attempt to change the file if it doesn't exist - instead raises Thor::Error\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 10: def initialize(prompt, options)", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nLine 29: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 221: output = capture(:stdout) { shell.file_collision(\"spec/fixtures/doc/README\") { \"README\\nEND\\n\" } }", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 26: def initialize(arguments = [])", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 8: describe \"#initialize\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 1: require_relative \"column_printer\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 95: if method =~ /^(\\w+)\\?$/", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 252: # config:: give :verbose => false to not log the status, and", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 252, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 7: true", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 34: def initialize(base, destination, config = {})", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 163: $stderr.puts(e.backtrace.first)", "file": "lib/thor/util.rb", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 357: ::FileUtils.rm_rf(path)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 357, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "¿Qué hace este constructor?", "query": "initialize super", "file": "spec/fixtures/script.thor", "symbol": "initialize", "line": 161, "lang": "es", "candidates": [{"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\ndefines initialize", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "¿Qué hace este constructor?", "query": "initialize super", "file": "spec/fixtures/script.thor", "symbol": "initialize", "line": 161, "lang": "es", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=274-297\nread parse_peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_peek", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=123-146\nread version for detail", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=4-27\nread EncodingWithUtf8 for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=203-226\nread thor_root_glob for detail", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=686-709\nread tree for detail", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=767-790\nread hi for detail", "file": "spec/thor_spec.rb", "symbol": "hi", "line": 767, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=420-443\nread stop_on_unknown_option! for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option!", "line": 420, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=161-184\nread initialize for detail", "file": "spec/fixtures/script.thor", "symbol": "initialize", "line": 161, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=263-286\nread create_command for detail", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=1-24\nread TestSubcommands for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "TestSubcommands", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=49-72\nread values_at for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "values_at", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=42-65\nread completion_options for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_options", "line": 42, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Estoy intentando limpiar la definición de los parámetros de una tarea. ¿Cómo puedo eliminar varios argumentos de una vez y también borrar sus métodos de asignación si se pasa una opción específica?", "query": "remove argument undefine", "file": "lib/thor/base.rb", "symbol": "remove_argument", "line": 427, "lang": "es", "candidates": [{"text": "File: spec/fixtures/encoding_other.thor\nLine 15: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 328: action :remove_file, \"doc/README\"", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 187: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 13: counter = words.first.length", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 19: p 3", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 75: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 3: class Basic", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 113: #", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 227: when is?(:quit)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 30: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/├─ command1/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 5: File.readlines(filename).each_with_index do |line, number|", "file": "spec/quality_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 150: describe \"#remove_argument\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 150, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 9: delete.each { |e| Thor::Base.subclasses.delete e }", "file": "spec/runner_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 65: def baz(thing = nil)", "file": "spec/fixtures/script.thor", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 67: end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 427: def remove_argument(*names)", "file": "lib/thor/base.rb", "symbol": "remove_argument", "line": 427, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/verbose.thor\nLine 5: require 'thor'", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 251: def error(statement)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 14: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 69: remove_argument :first, :second, :undefine => true", "file": "spec/fixtures/group.thor", "symbol": "", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 17: # end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 109: command, args, opts, config = args", "file": "lib/thor/invocation.rb", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 13: else", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estoy intentando limpiar la definición de los parámetros de una tarea. ¿Cómo puedo eliminar varios argumentos de una vez y también borrar sus métodos de asignación si se pasa una opción específica?", "query": "remove argument undefine", "file": "lib/thor/base.rb", "symbol": "remove_argument", "line": 427, "lang": "es", "candidates": [{"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Estoy intentando limpiar la definición de los parámetros de una tarea. ¿Cómo puedo eliminar varios argumentos de una vez y también borrar sus métodos de asignación si se pasa una opción específica?", "query": "remove argument undefine", "file": "lib/thor/base.rb", "symbol": "remove_argument", "line": 427, "lang": "es", "candidates": [{"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estoy intentando limpiar la definición de los parámetros de una tarea. ¿Cómo puedo eliminar varios argumentos de una vez y también borrar sus métodos de asignación si se pasa una opción específica?", "query": "remove argument undefine", "file": "lib/thor/base.rb", "symbol": "remove_argument", "line": 427, "lang": "es", "candidates": [{"text": "Next: read spec/register_spec.rb lines=57-80\nread PluginWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefault", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=291-314\nread gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=21-44\nread base for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "base", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=55-78\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=27-50\nread included for detail", "file": "lib/thor/rake_compat.rb", "symbol": "included", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=368-391\nread merge for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge", "line": 368, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=230-253\nread switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch?", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=83-106\nread windows? for detail", "file": "spec/helper.rb", "symbol": "windows?", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=52-75\nread render for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "render", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=427-450\nread remove_argument for detail", "file": "lib/thor/base.rb", "symbol": "remove_argument", "line": 427, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=622-645\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=77-100\nread required_arguments_for for detail", "file": "lib/thor/command.rb", "symbol": "required_arguments_for", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/runner_spec.rb lines=5-28\nread when_no_thorfiles_exist for detail", "file": "spec/runner_spec.rb", "symbol": "when_no_thorfiles_exist", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=72-95\nread shift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "shift", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=172-195\nread animal for detail", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=31-54\nread except for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=104-127\nread AtLeastOneRequiredArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "AtLeastOneRequiredArgumentError", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=168-191\nread check_unknown! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Como funciona a delegação de métodos de saída e as diferentes implementações de interface de terminal por aqui?", "query": "shell delegation methods", "file": "lib/thor/shell.rb", "symbol": "Shell", "line": 23, "lang": "pt", "candidates": [{"text": "File: spec/quality_spec.rb\nLine 2: def check_for_spec_defs_with_single_quotes(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 3: describe Thor::Shell do", "file": "spec/shell_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nLine 2: module Shell", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 184: # Raises an error if @non_assigned_required array is not empty.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 16: expect(shell.base).to eq(base)", "file": "spec/shell_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 18: memo = \"#{memo} #{word}\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 121: base.send :include, Shell", "file": "lib/thor/base.rb", "symbol": "", "line": 121, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nLine 27: describe \"#sort - simple override\" do", "file": "spec/sort_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 5: module Shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nLine 117: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 36: @disable_required_check = disable_required_check", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 13: Test.start(ARGV)", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 127: validate_enum_value!(name, value, \"Expected all values of '%s' to be one of %s; got %s\")", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 66: contents = File.open(base, &:read)", "file": "lib/thor/runner.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 11: if SOME_STRING.encoding.name == \"UTF-8\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 23: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 57: destination_path = @hardlink_to", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 30: Thor::Base.shell = Thor::Shell::Basic", "file": "spec/helper.rb", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 86: else", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 40: # Returns the formatted usage by injecting given required arguments", "file": "lib/thor/command.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 20: def unix?", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 23: module Shell", "file": "lib/thor/shell.rb", "symbol": "Shell", "line": 23, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/thor_spec.rb\nLine 565: expect(Thor::Shell::Terminal).to receive(:terminal_width).and_return(80)", "file": "spec/thor_spec.rb", "symbol": "", "line": 565, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 136: # A dynamic command that handles method missing scenarios.", "file": "lib/thor/command.rb", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Como funciona a delegação de métodos de saída e as diferentes implementações de interface de terminal por aqui?", "query": "shell delegation methods", "file": "lib/thor/shell.rb", "symbol": "Shell", "line": 23, "lang": "pt", "candidates": [{"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Como funciona a delegação de métodos de saída e as diferentes implementações de interface de terminal por aqui?", "query": "shell delegation methods", "file": "lib/thor/shell.rb", "symbol": "Shell", "line": 23, "lang": "pt", "candidates": [{"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Como funciona a delegação de métodos de saída e as diferentes implementações de interface de terminal por aqui?", "query": "shell delegation methods", "file": "lib/thor/shell.rb", "symbol": "Shell", "line": 23, "lang": "pt", "candidates": [{"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=56-79\nread exists? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=129-152\nread HiddenCommand for detail", "file": "lib/thor/command.rb", "symbol": "HiddenCommand", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=44-67\nread initialize for detail", "file": "lib/thor/shell.rb", "symbol": "initialize", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=546-569\nread banner for detail", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=258-281\nread set_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "set_color", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=122-145\nread baz for detail", "file": "spec/fixtures/group.thor", "symbol": "baz", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=145-168\nread chmod for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "chmod", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/subcommand.thor lines=5-28\nread print_opt for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "print_opt", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=27-50\nread revoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=52-75\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 52, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=58-81\nread matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "matches", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=23-46\nread Shell for detail", "file": "lib/thor/shell.rb", "symbol": "Shell", "line": 23, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/terminal.rb lines=27-50\nread dynamic_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=36-59\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=4-27\nread Base for detail", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=27-50\nread source_root for detail", "file": "lib/thor/actions.rb", "symbol": "source_root", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Je cherche la méthode qui lance la suite d'appels pour tester la séquence complète de tâches. Elle doit d'abord imprimer un chiffre puis enchaîner plusieurs invocations de commandes.", "query": "invoke sequence tasks", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/invoke.thor\nLine 83: def one", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/nested_context.rb\nLine 28: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 21: prepare(array)", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 86: else", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 100: describe \"with key as a symbol\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 83: end", "file": "spec/command_spec.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 45: expect(argument(:foo, type: :array).usage).to eq(\"one two three\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 117: saned.empty? || saned.size == 1", "file": "lib/thor/command.rb", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 1: # frozen_string_literal: true", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 19: end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 177: expect(output).to include(\"hello\")", "file": "spec/register_spec.rb", "symbol": "", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 354: #0 empty", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 354, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 81: it \"returns the at least one of option names for the class\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 177: it \"runs commands with an empty namespace from the default namespace\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 7: class Test < Thor", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 49: # Set color by using a string or one of the defined constants. If a third", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 5: # Receives an array of args and returns two arrays, one with arguments", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 256: desc \"one_arg ARG\", \"takes one arg\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 256, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 46: self.shell = config[:shell]", "file": "lib/thor/shell.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 50: expect(MyCounter.desc).to eq(\"Description:\\n This generator runs three commands: one, two and three.\\n\")", "file": "spec/group_spec.rb", "symbol": "", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nLine 57: it \"does not use the current directory if one is given\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 57, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 199: # If true, option parsing is suspended as soon as an unknown option or a", "file": "lib/thor/base.rb", "symbol": "", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 5: script_path= \"#{gem_dir}/spec/fixtures/exit_status.thor\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche la méthode qui lance la suite d'appels pour tester la séquence complète de tâches. Elle doit d'abord imprimer un chiffre puis enchaîner plusieurs invocations de commandes.", "query": "invoke sequence tasks", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lang": "fr", "candidates": [{"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\ndefines one", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche la méthode qui lance la suite d'appels pour tester la séquence complète de tâches. Elle doit d'abord imprimer un chiffre puis enchaîner plusieurs invocations de commandes.", "query": "invoke sequence tasks", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lang": "fr", "candidates": [{"text": "Next: read lib/thor.rb lines=613-636\nread normalize_command_name for detail", "file": "lib/thor.rb", "symbol": "normalize_command_name", "line": 613, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=325-348\nread subcommand_classes for detail", "file": "lib/thor.rb", "symbol": "subcommand_classes", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=43-66\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=398-421\nread CapturableERB for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "CapturableERB", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=326-349\nread unix? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "unix?", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=98-121\nread MalformattedArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "MalformattedArgumentError", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=505-528\nread dispatch for detail", "file": "lib/thor.rb", "symbol": "dispatch", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=59-82\nread no_or_skip? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=72-95\nread handle_no_command_error for detail", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=138-161\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=248-271\nread run for detail", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=160-183\nread dasherized? for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherized?", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=264-287\nread escape_globs for detail", "file": "lib/thor/util.rb", "symbol": "escape_globs", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=46-69\nread use_path_completion? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "use_path_completion?", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=6-29\nread snack for detail", "file": "spec/fixtures/enum.thor", "symbol": "snack", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=83-106\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "¿Cómo se implementa la lógica de corrección de errores para argumentos desconocidos en Thor?", "query": "Thor error correction", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lang": "es", "candidates": [{"text": "File: spec/fixtures/encoding_other.thor\nLine 5: SOME_STRING = \"Some ������\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 3: FILE_REGEXP = /^#{Regexp.escape(File.dirname(__FILE__))}/", "file": "lib/thor/command.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 11: class_option \"opt\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 65: class UnknownArgumentError < Error", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 14: puts \"expected #{SOME_STRING.encoding.name} to equal ISO-8859-7\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 171: # an unknown option starts with - or -- and has no more --'s afterward.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 173: raise UnknownArgumentError.new(@switches.keys, unknown) unless unknown.empty?", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 173, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nLine 105: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 123: expect { check_unknown! }.to raise_error(Thor::UnknownArgumentError) do |error|", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 123, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 671: expect(File.binread(file)).to match(/__start__\\n # greenblue\\n#\\n# yellowblue\\n#yellowred\\n #greenred\\norange\\n purple\\n # ind#igo\\n # ind#igo\\n # spaces_between\\n__end__/)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 72: options.empty? ? \"default command\" : options", "file": "spec/fixtures/script.thor", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 64: end", "file": "spec/register_spec.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 1: Bundler.require :development, :default", "file": "spec/fixtures/help.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 373: it \"does not log status if required\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 373, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 17: array.each_with_index do |value, index|", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 20: #", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 561: allow(ENV).to receive(:[]).with(\"THOR_MERGE\").and_return(\"meld\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 561, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 17: Rake::Task[\"install\"].execute", "file": "Thorfile", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 20: it \"invokes all the commands in the Thor group and its parents\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 23: end", "file": "Thorfile", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 103: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 31: it \"shows information about a specific command from a specific Thor class\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 10: def self.best_available", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 349: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 349, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "¿Cómo se implementa la lógica de corrección de errores para argumentos desconocidos en Thor?", "query": "Thor error correction", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lang": "es", "candidates": [{"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "¿Cómo se implementa la lógica de corrección de errores para argumentos desconocidos en Thor?", "query": "Thor error correction", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lang": "es", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=108-131\nread long_description_unwrapped for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description_unwrapped", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=5-28\nread print_opt for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "print_opt", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=52-75\nread enum_to_s for detail", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=4-27\nread EncodingWithUtf8 for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=322-345\nread quiet? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=77-100\nread required_arguments_for for detail", "file": "lib/thor/command.rb", "symbol": "required_arguments_for", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=246-269\nread method_at_least_one for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=31-54\nread GroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "GroupPlugin", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=20-43\nread Error for detail", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=24-47\nread UndefinedCommandError for detail", "file": "lib/thor/error.rb", "symbol": "UndefinedCommandError", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=65-88\nread UnknownArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=4-27\nread EncodingOther for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "EncodingOther", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=194-217\nread print_wrapped for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_wrapped", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=22-45\nread SuperSecretPlugin for detail", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=190-213\nread allow_incompatible_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "allow_incompatible_default_type!", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=333-356\nread at_least_one for detail", "file": "spec/fixtures/script.thor", "symbol": "at_least_one", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=71-94\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 71, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "테스트 실행 중에 발생하는 경고 메시지를 잠시 안 보이게 처리하고 싶어요. 블록이 끝난 뒤에 원래 설정으로 되돌려주는 유틸리티가 어디에 정의되어 있나요?", "query": "silence warnings verbose", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lang": "ko", "candidates": [{"text": "File: spec/sort_spec.rb\nLine 46: it \"sorts them in reverse\" do", "file": "spec/sort_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 16: end", "file": "spec/command_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 395: #0 empty", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 395, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 166: silence_warnings do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 166, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nLine 24: argument(:command, type: :string, default: \"bar\", required: true)", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 7: def bugs", "file": "spec/fixtures/help.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 5: module Shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 234: silence_warnings do", "file": "spec/runner_spec.rb", "symbol": "", "line": 234, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 15: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 110: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 7: Thor::Util.load_thorfile(File.expand_path(\"./fixtures/#{filename}\", __dir__))", "file": "spec/encoding_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 13: # ==== Examples", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 19: load_thorfile(\"encoding_implicit.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 21: expect(out.chomp).to eq('Wow! Now we have colors! ')", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 2: module LineEditor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 13: desc \"ok\", \"exit with no error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 72: def silence_warnings", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 284: expect(File.exist?(\"idontexist\")).to be_falsey", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 284, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 26: MAGENTA = \"color: magenta\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 61: list.sort_by! do |a,b|", "file": "spec/sort_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 152: FileUtils.rm_rf(File.join(thor_root, old_filename))", "file": "lib/thor/runner.rb", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 191: it \"sets color when the NO_COLOR environment variable is ignored for being nil\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 87: silence_warnings do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 87, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "테스트 실행 중에 발생하는 경고 메시지를 잠시 안 보이게 처리하고 싶어요. 블록이 끝난 뒤에 원래 설정으로 되돌려주는 유틸리티가 어디에 정의되어 있나요?", "query": "silence warnings verbose", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lang": "ko", "candidates": [{"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nsibling in spec", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nsibling in spec", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nsibling in spec", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "테스트 실행 중에 발생하는 경고 메시지를 잠시 안 보이게 처리하고 싶어요. 블록이 끝난 뒤에 원래 설정으로 되돌려주는 유틸리티가 어디에 정의되어 있나요?", "query": "silence warnings verbose", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> thor", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> rdoc", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/helper.rb -> thor/group", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> diff/lcs", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> stringio", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> rspec", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "테스트 실행 중에 발생하는 경고 메시지를 잠시 안 보이게 처리하고 싶어요. 블록이 끝난 뒤에 원래 설정으로 되돌려주는 유틸리티가 어디에 정의되어 있나요?", "query": "silence warnings verbose", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lang": "ko", "candidates": [{"text": "Next: read spec/actions/file_manipulation_spec.rb lines=622-645\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/verbose.thor lines=8-31\nread exit_on_failure? for detail", "file": "spec/fixtures/verbose.thor", "symbol": "exit_on_failure?", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=60-83\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=179-202\nread boom for detail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=76-99\nread unshift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "unshift", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=22-45\nread SuperSecretPlugin for detail", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=307-330\nread mix for detail", "file": "spec/fixtures/script.thor", "symbol": "mix", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=49-72\nread capture for detail", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=200-223\nread in_root for detail", "file": "lib/thor/actions.rb", "symbol": "in_root", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=120-143\nread I for detail", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=62-85\nread source_root for detail", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=83-106\nread windows? for detail", "file": "spec/helper.rb", "symbol": "windows?", "line": 83, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=129-152\nread method_options for detail", "file": "lib/thor.rb", "symbol": "method_options", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=31-54\nread dynamic_width_stty for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_stty", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=68-91\nread ClearCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "ClearCounter", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=329-352\nread _cleanup_options_and_set for detail", "file": "lib/thor/actions.rb", "symbol": "_cleanup_options_and_set", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=264-287\nread prepare_message for detail", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=607-630\nread public_command for detail", "file": "lib/thor/base.rb", "symbol": "public_command", "line": 607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=64-87\nread last? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=276-299\nread thorfiles_relevant_to for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Necesito configurar el bloque de prueba para el generador de archivos, definiendo el comportamiento simulado de `file_name` y asegurando que se pasen las opciones correctas como `verbose`. Esto es parte de la validación de las acciones de creación de archivos en la suite de pruebas.", "query": "create file spec setup", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lang": "es", "candidates": [{"text": "File: lib/thor/actions/create_link.rb\nLine 1: require_relative \"create_file\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 36: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 22: action add_file create_file in_root inside run run_ruby_script)", "file": "lib/thor/base.rb", "symbol": "", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nLine 10: def create_file(destination = nil, config = {}, options = {}, contents = \"CONFIGURATION\")", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 25: resulting_destination = create_file destination, nil, config do", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 25, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 97: separator = @maximas.map do |maxima|", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 15: # create_file \"lib/fun_party.rb\" do", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 513: context \"when the user enters an unambiguous substring of a command\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 513, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 216: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 1: require_relative \"actions/create_file\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nLine 43: it \"accepts - as an array argument\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 19: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 23: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 15: word = word.gsub(/\\n\\005/, \"\\n\").gsub(/\\005/, \"\\n\")", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 18: # other actions like create_file and directory.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nLine 70: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 31: def one", "file": "spec/fixtures/group.thor", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 15: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 238: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 377: context \"and no force option\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 19: # ensure that developer errors are shown with full backtrace.", "file": "lib/thor/error.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 61: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 20: private", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 624: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 624, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Necesito configurar el bloque de prueba para el generador de archivos, definiendo el comportamiento simulado de `file_name` y asegurando que se pasen las opciones correctas como `verbose`. Esto es parte de la validación de las acciones de creación de archivos en la suite de pruebas.", "query": "create file spec setup", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lang": "es", "candidates": [{"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nsibling in spec/actions", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\ndefines create_file", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Necesito configurar el bloque de prueba para el generador de archivos, definiendo el comportamiento simulado de `file_name` y asegurando que se pasen las opciones correctas como `verbose`. Esto es parte de la validación de las acciones de creación de archivos en la suite de pruebas.", "query": "create file spec setup", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lang": "es", "candidates": [{"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Necesito configurar el bloque de prueba para el generador de archivos, definiendo el comportamiento simulado de `file_name` y asegurando que se pasen las opciones correctas como `verbose`. Esto es parte de la validación de las acciones de creación de archivos en la suite de pruebas.", "query": "create file spec setup", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lang": "es", "candidates": [{"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=48-71\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=21-44\nread revoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=170-193\nread prepend_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "prepend_to_file", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=192-215\nread thor_root for detail", "file": "lib/thor/util.rb", "symbol": "thor_root", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=168-191\nread dasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherize", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=10-33\nread create_file for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=661-684\nread sort_commands! for detail", "file": "lib/thor.rb", "symbol": "sort_commands!", "line": 661, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=767-790\nread hi for detail", "file": "spec/thor_spec.rb", "symbol": "hi", "line": 767, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=21-44\nread base for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "base", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=282-305\nread stderr for detail", "file": "lib/thor/shell/basic.rb", "symbol": "stderr", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=17-40\nread invoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "LineEditor", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=67-90\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=25-48\nread silence! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "silence!", "line": 25, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/subcommand.thor lines=3-26\nread Subcommand for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Subcommand", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=165-188\nread print_in_columns for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_in_columns", "line": 165, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "修复在使用子字符串匹配模式时,命令列表查询无法正确过滤或匹配不符合预期的问题,并检查分组逻辑在执行搜索时的表现。", "query": "list search pattern", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lang": "zh", "candidates": [{"text": "File: lib/thor/actions.rb\nLine 305: # thor :list, :all => true, :substring => 'rails'", "file": "lib/thor/actions.rb", "symbol": "", "line": 305, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nLine 7: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 375: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 375, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 63: it \"adds a command to the command list if the updated command is on the parent class\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 63, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 77: # a list of arguments that weren't declared.", "file": "lib/thor/base.rb", "symbol": "", "line": 77, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 392: content = capture(:stdout) { MyScript.start(%w(help)) }", "file": "spec/thor_spec.rb", "symbol": "", "line": 392, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 335: expect(klass.disable_required_check?(double(name: \"help\"))).to be true", "file": "spec/thor_spec.rb", "symbol": "", "line": 335, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 167: stored_args, stored_opts, stored_config = @_initializer", "file": "lib/thor/invocation.rb", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 74: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 90: # map \"-T\" => \"list\"", "file": "lib/thor.rb", "symbol": "", "line": 90, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 6: @argument ||= Thor::Argument.new(name, options)", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 102: protected", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 21: content = capture(:stdout) { Thor::Runner.start(%w(help list)) }", "file": "spec/runner_spec.rb", "symbol": "", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nLine 115: revoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 13: else", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 30: #", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 40: expect(task).to be", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 10: #", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 53: list = Thor::Util.namespaces_in_content(\"class Foo; class Bar < Thor; end; end; class Baz; class Bat; end; end\")", "file": "spec/util_spec.rb", "symbol": "", "line": 53, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nLine 9: r,w= IO.pipe", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 4: describe Thor::Arguments do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 28: expect(Thor::Base.shell).to eq(shell.class)", "file": "spec/shell_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 174: def list(search = \"\")", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "修复在使用子字符串匹配模式时,命令列表查询无法正确过滤或匹配不符合预期的问题,并检查分组逻辑在执行搜索时的表现。", "query": "list search pattern", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "修复在使用子字符串匹配模式时,命令列表查询无法正确过滤或匹配不符合预期的问题,并检查分组逻辑在执行搜索时的表现。", "query": "list search pattern", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lang": "zh", "candidates": [{"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> group", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> ../thor", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/runner.rb -> open-uri", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "修复在使用子字符串匹配模式时,命令列表查询无法正确过滤或匹配不符合预期的问题,并检查分组逻辑在执行搜索时的表现。", "query": "list search pattern", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/shell.rb lines=44-67\nread initialize for detail", "file": "lib/thor/shell.rb", "symbol": "initialize", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=180-203\nread print_table for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_table", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=371-394\nread capture for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "capture", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=189-212\nread assign_result! for detail", "file": "lib/thor/parser/options.rb", "symbol": "assign_result!", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/html_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/html_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=184-207\nread check_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type!", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=21-44\nread check_for_extra_spaces for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=552-575\nread baseclass for detail", "file": "lib/thor.rb", "symbol": "baseclass", "line": 552, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=174-197\nread list for detail", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/util.rb lines=153-176\nread load_thorfile for detail", "file": "lib/thor/util.rb", "symbol": "load_thorfile", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=49-72\nread values_at for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "values_at", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=7-30\nread print for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "コマンド1のテストケースで、このメソッドが何を実行しているか確認してください。現在は空の定義ですが、期待される動作や副作用があるかどうか確認したいです。", "query": "command1 test", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lang": "ja", "candidates": [{"text": "File: lib/thor/base.rb\nLine 820: else", "file": "lib/thor/base.rb", "symbol": "", "line": 820, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 125: unless current.include?(command.name)", "file": "lib/thor/invocation.rb", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 128: #", "file": "lib/thor/base.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 18: capture(:stdout) { @action.revoke! }", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 52: ::FileUtils.mkdir_p(destination)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 131: def find_class_and_command_by_namespace(namespace, fallback = true)", "file": "lib/thor/util.rb", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 7: def command1", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 107: end", "file": "lib/thor/util.rb", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 351: it \"accepts a --switch format on non required types\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 33: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 8: SimpleCov.start do", "file": "spec/helper.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 15: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 114: # ==== Examples", "file": "lib/thor/util.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 51: it \"uses non namespaced name as description if non is available\" do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 156: end", "file": "spec/register_spec.rb", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 21: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 325: # :type:: -- The type of the argument, can be :string, :hash, :array, :numeric or :boolean.", "file": "lib/thor/base.rb", "symbol": "", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 6: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 37: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 9: true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 261: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 38: it \"adds rake tasks to thor classes too\" do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "コマンド1のテストケースで、このメソッドが何を実行しているか確認してください。現在は空の定義ですが、期待される動作や副作用があるかどうか確認したいです。", "query": "command1 test", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lang": "ja", "candidates": [{"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\ndefines command1", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nsibling in spec", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nsibling in spec", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nsibling in spec", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "コマンド1のテストケースで、このメソッドが何を実行しているか確認してください。現在は空の定義ですが、期待される動作や副作用があるかどうか確認したいです。", "query": "command1 test", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "コマンド1のテストケースで、このメソッドが何を実行しているか確認してください。現在は空の定義ですが、期待される動作や副作用があるかどうか確認したいです。", "query": "command1 test", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lang": "ja", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=248-271\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/html.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=47-70\nread hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "hidden", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=18-41\nread subcommand1 for detail", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=207-230\nread handle_argument_error for detail", "file": "lib/thor/group.rb", "symbol": "handle_argument_error", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=53-76\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=15-38\nread SubApp for detail", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/tree_spec.rb lines=4-27\nread TreeApp for detail", "file": "spec/tree_spec.rb", "symbol": "TreeApp", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=594-617\nread initialize_added for detail", "file": "lib/thor.rb", "symbol": "initialize_added", "line": 594, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=105-128\nread wrong_arity for detail", "file": "spec/fixtures/group.thor", "symbol": "wrong_arity", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=7-30\nread bugs for detail", "file": "spec/fixtures/help.thor", "symbol": "bugs", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=158-181\nread parse_string for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_string", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=12-35\nread command2 for detail", "file": "spec/tree_spec.rb", "symbol": "command2", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=253-276\nread thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=69-92\nread initialize for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=7-30\nread command1 for detail", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/enum.thor lines=6-29\nread snack for detail", "file": "spec/fixtures/enum.thor", "symbol": "snack", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=2-25\nread check_for_spec_defs_with_single_quotes for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "destination_root と application_helper.rb を結合するファイルパスを返すメソッドはどれ?", "query": "application_helper path", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 592, "lang": "ja", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nLine 592: def file", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 592, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/terminal.rb\nLine 7: # This code was copied from Rake, available under MIT-LICENSE", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 113: invoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 1: require_relative \"column_printer\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 62: expect(argument(:foo, {", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 7: def enter", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 80: @error_on_no_change = @config.fetch(:error_on_no_change, false)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 13: else", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 43: desc \"install NAME\", \"Install an optionally named Thor file into your system commands\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 32: def initialize(hash_options = {}, defaults = {}, stop_on_unknown = false, disable_required_check = false, relations = {})", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 199: yaml || {}", "file": "lib/thor/runner.rb", "symbol": "", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 72: end", "file": "lib/thor/command.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 54: it \"copies the file to the specified destination\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 25: expect(command(bar: :required).formatted_usage(object)).to eq(\":foo:can_has --bar=BAR\")", "file": "spec/command_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 5: true", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 405: end", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 405, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 65: # true. This will enable tab completion for file paths relative", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 65, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\nLine 7: # ==== Parameters", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 277: expect(content).to match(/cool padding/)", "file": "spec/actions_spec.rb", "symbol": "", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 31: def file", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nLine 6: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 30: it \"creates a file\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 30: # source:: Relative path to the source of this file", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "destination_root と application_helper.rb を結合するファイルパスを返すメソッドはどれ?", "query": "application_helper path", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 592, "lang": "ja", "candidates": [{"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\ndefines file", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "thor", "task": "destination_root と application_helper.rb を結合するファイルパスを返すメソッドはどれ?", "query": "application_helper path", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 592, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "destination_root と application_helper.rb を結合するファイルパスを返すメソッドはどれ?", "query": "application_helper path", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 592, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/base.rb lines=772-795\nread basename for detail", "file": "lib/thor/base.rb", "symbol": "basename", "line": 772, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=72-95\nread shift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "shift", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=4-27\nread EncodingWithUtf8 for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=194-217\nread print_wrapped for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_wrapped", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=77-100\nread required_arguments_for for detail", "file": "lib/thor/command.rb", "symbol": "required_arguments_for", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "runner", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=592-615\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 592, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/register_spec.rb lines=59-82\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=8-31\nread action for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "action", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=112-135\nread private_file_name for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=31-54\nread file for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=254-277\nread self_command for detail", "file": "lib/thor/group.rb", "symbol": "self_command", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=10-33\nread Parent for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=12-35\nread exists_and_identical? for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=57-80\nread PluginWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefault", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=23-46\nread revoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoke!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=304-327\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 304, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/quality_spec.rb lines=21-44\nread check_for_extra_spaces for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=53-76\nread merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge", "line": 53, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "show how the script verifies the string is utf-8", "query": "encoding utf-8 check", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lang": "en", "candidates": [{"text": "File: lib/thor/group.rb\nLine 248: # thor class by another ways which is not the Thor::Runner.", "file": "lib/thor/group.rb", "symbol": "", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 175: it \"invokes the default command correctly with a declared argument\" do", "file": "spec/register_spec.rb", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 20: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 1: # encoding: utf-8", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nLine 456: it \"allows multiple values if repeatable is specified\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 456, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 13: desc \"ok\", \"exit with no error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 83: file_destination = File.join(given_destination, file_source.gsub(source, \".\"))", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 48: # Set the terminal's background ANSI color to cyan.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 13: Thor::LineEditor::Basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 7: Thor::Util.load_thorfile(File.expand_path(\"./fixtures/#{filename}\", __dir__))", "file": "spec/encoding_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 230: expect($stderr).not_to receive(:print)", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 316: expect { action :run, \"false\", abort_on_failure: true }.to raise_error(SystemExit)", "file": "spec/actions_spec.rb", "symbol": "", "line": 316, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 8: def encoding", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 79: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 15: desc \"install\", \"Build and install thor-#{Thor::VERSION}.gem into system gems\"", "file": "Thorfile", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 11: def invoker(options = {})", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 159: if no_or_skip?(name)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 1: # encoding: UTF-8", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 5: describe \"file's encoding\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nLine 14: subcommand \"sub\", Subcommand", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 1: # encoding: ISO-8859-7", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nLine 98: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 46: # class A < Thor", "file": "lib/thor/invocation.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "show how the script verifies the string is utf-8", "query": "encoding utf-8 check", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lang": "en", "candidates": [{"text": "File: spec/fixtures/encoding_implicit.thor\ndefines encoding", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "show how the script verifies the string is utf-8", "query": "encoding utf-8 check", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lang": "en", "candidates": [{"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "show how the script verifies the string is utf-8", "query": "encoding utf-8 check", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lang": "en", "candidates": [{"text": "Next: read lib/thor/shell.rb lines=23-46\nread Shell for detail", "file": "lib/thor/shell.rb", "symbol": "Shell", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=8-31\nread encoding for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/argument.rb lines=67-90\nread valid_type? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=263-286\nread gsub_file! for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=105-128\nread wrong_arity for detail", "file": "spec/fixtures/group.thor", "symbol": "wrong_arity", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=228-251\nread dispatch for detail", "file": "lib/thor/group.rb", "symbol": "dispatch", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=57-80\nread merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=307-330\nread class_options for detail", "file": "lib/thor/base.rb", "symbol": "class_options", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=50-73\nread foo for detail", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=531-554\nread no_commands for detail", "file": "lib/thor/base.rb", "symbol": "no_commands", "line": 531, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=398-421\nread CapturableERB for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "CapturableERB", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=123-146\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=68-91\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=199-222\nread printable_commands for detail", "file": "lib/thor/group.rb", "symbol": "printable_commands", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=281-304\nread Pear for detail", "file": "spec/fixtures/script.thor", "symbol": "Pear", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=3-26\nread EncodingImplicit for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "EncodingImplicit", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=393-416\nread class_at_least_one for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "busca el método que imprime un bostezo en la consola", "query": "puts yawn", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lang": "es", "candidates": [{"text": "File: spec/parser/options_spec.rb\nLine 351: it \"accepts a --switch format on non required types\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 2: module LineEditor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 28: paras.each do |para|", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 26: RSpec.describe \"Thor tree command\" do", "file": "spec/tree_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 10: raise Thor::Error.new(\"planned error\")", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 88: !(instance.class.respond_to?(:debugging) && instance.class.debugging)", "file": "lib/thor/command.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 165: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 104: desc \"boring\", \"An ordinary command\"", "file": "spec/thor_spec.rb", "symbol": "", "line": 104, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 24: $stdin.gets", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 3: describe Thor::Actions do", "file": "spec/actions_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 20: stdout.puts value", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 5: def boring", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 7: def command1", "file": "spec/tree_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 32: ENV[\"THOR_SHELL\"] = \"\"", "file": "spec/shell_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 11: ENV[\"THOR_COLUMNS\"].to_i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 38: instance_eval do", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 27: shell.indent { expect(shell.padding).to eq(7) }", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 14: describe \"with value as a symbol\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 45: create_file(\"doc/config.rb\", {}, pretend: true)", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 286: expect(MyChildScript.all_commands.keys).not_to include(\"name_with_dashes\")", "file": "spec/base_spec.rb", "symbol": "", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 10: # data:: the data to append to the file.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 25: attr_writer :shell", "file": "lib/thor/shell.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "busca el método que imprime un bostezo en la consola", "query": "puts yawn", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lang": "es", "candidates": [{"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\ndefines boring", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nsibling in spec", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nsibling in spec", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nsibling in spec", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "busca el método que imprime un bostezo en la consola", "query": "puts yawn", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lang": "es", "candidates": [{"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "busca el método que imprime un bostezo en la consola", "query": "puts yawn", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lang": "es", "candidates": [{"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=64-87\nread reverse_merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=22-45\nread SuperSecretPlugin for detail", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=1-24\nread Enum for detail", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=253-276\nread thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=101-124\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=114-137\nread relative_to_original_destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "relative_to_original_destination_root", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=154-177\nread ClassMethods for detail", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=37-60\nread fetch for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "fetch", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=277-300\nread rotten_apple for detail", "file": "spec/fixtures/script.thor", "symbol": "rotten_apple", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=320-343\nread exclusive for detail", "file": "spec/fixtures/script.thor", "symbol": "exclusive", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=28-51\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "formata a mensagem de erro com sugestões de correção", "query": "formatter corrections", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lang": "pt", "candidates": [{"text": "File: lib/thor/actions/file_manipulation.rb\nLine 104: # to be equal to the source removing .tt from the filename.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 97: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 100: Pathname.new(super()).relative_path_from(Pathname.new(destination_path)).to_s", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 100, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nLine 95: foreground = self.class.const_get(foreground.to_s.upcase) if foreground.is_a?(Symbol)", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 95, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 782: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 782, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 44: constant = constant.to_s.gsub(/^Thor::Sandbox::/, \"\")", "file": "lib/thor/util.rb", "symbol": "", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 55: else", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 279: raise ArgumentError, \"You cannot have #{name.to_s.inspect} as required argument after \" \\", "file": "lib/thor/base.rb", "symbol": "", "line": 279, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nLine 59: def say(msg)", "file": "spec/register_spec.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 3: require \"tempfile\"", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 5: SOME_STRING = \"Some ������\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 15: class SubApp < Thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 424: it \"prints a table with big numbers\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 50: expect(dub.class).to receive(:handle_no_command_error).with(\"to_s\")", "file": "spec/command_spec.rb", "symbol": "", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 109: expect(File.exist?(file)).to be true", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 8: push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 15: # Set the terminal's foreground HTML color to black.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 4: def to_s", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nLine 14: # Embed in a String to clear all previous ANSI sequences.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 23: source = File.expand_path(find_in_source_paths(source.to_s))", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 86: invoker.inside \"doc\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 2: include Thor::Actions", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 53: @shell ||= Thor::Base.shell.new", "file": "lib/thor/shell.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 9: def error", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "formata a mensagem de erro com sugestões de correção", "query": "formatter corrections", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lang": "pt", "candidates": [{"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "formata a mensagem de erro com sugestões de correção", "query": "formatter corrections", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=155-178\nread attr_reader for detail", "file": "lib/thor/base.rb", "symbol": "attr_reader", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=25-48\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 25, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=34-57\nread invoker for detail", "file": "spec/fixtures/invoke.thor", "symbol": "invoker", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=21-44\nread output_diff_line for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "output_diff_line", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=48-71\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=76-99\nread unshift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "unshift", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=130-153\nread say_status for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_status", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=20-43\nread Error for detail", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=24-47\nread UndefinedCommandError for detail", "file": "lib/thor/error.rb", "symbol": "UndefinedCommandError", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=6-29\nread Default for detail", "file": "Thorfile", "symbol": "Default", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=273-296\nread lookup_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "lookup_color", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=261-284\nread two_args for detail", "file": "spec/fixtures/script.thor", "symbol": "two_args", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=248-271\nread run for detail", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=68-91\nread reverse_merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Como funciona o processo de cópia de arquivos de um diretório de origem para o destino, incluindo o suporte a padrões de exclusão e recursividade?", "query": "copy directory recursive", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lang": "pt", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nLine 237: action :template, \"doc/config.rb\", \"doc/configuration.rb\"", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 237, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 51: #", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 2: require_relative \"line_editor/readline\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 5: describe Thor::Actions::Directory do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 33: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 5: SOME_STRING = \"Some ������\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 14: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 31: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 71: #", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 41: @pile = args.dup", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 19: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 11: [", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 23: expect(thor_command(\"error\")).to eq(1)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 43: def show_default?", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 29: say \"+ #{diff.new_element.chomp}\", :green, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 3: class Subcommand < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 14: def print(array)", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 237: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 237, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 55: class Directory < EmptyDirectory #:nodoc:", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/script_exit_status_spec.rb\nLine 24: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 12: Thor::LineEditor::Readline,", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 47: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 39: ON_RED = \"\\e[41m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 2: include Thor::Actions", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Como funciona o processo de cópia de arquivos de um diretório de origem para o destino, incluindo o suporte a padrões de exclusão e recursividade?", "query": "copy directory recursive", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lang": "pt", "candidates": [{"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Como funciona o processo de cópia de arquivos de um diretório de origem para o destino, incluindo o suporte a padrões de exclusão e recursividade?", "query": "copy directory recursive", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Como funciona o processo de cópia de arquivos de um diretório de origem para o destino, incluindo o suporte a padrões de exclusão e recursividade?", "query": "copy directory recursive", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lang": "pt", "candidates": [{"text": "Next: read lib/thor.rb lines=482-505\nread print_exclusive_options for detail", "file": "lib/thor.rb", "symbol": "print_exclusive_options", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=186-209\nread check_requirement! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "check_requirement!", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=639-662\nread class_options_help for detail", "file": "lib/thor/base.rb", "symbol": "class_options_help", "line": 639, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=277-300\nread rotten_apple for detail", "file": "spec/fixtures/script.thor", "symbol": "rotten_apple", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=27-50\nread dynamic_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/html.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/application_helper.rb lines=1-24\nread ApplicationHelper for detail", "file": "spec/fixtures/application_helper.rb", "symbol": "ApplicationHelper", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/verbose.thor lines=8-31\nread exit_on_failure? for detail", "file": "spec/fixtures/verbose.thor", "symbol": "exit_on_failure?", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=45-68\nread invocation_blocks for detail", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=4-27\nread Shell for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=68-91\nread ClearCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "ClearCounter", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=101-124\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=58-81\nread initialize for detail", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/parser/options_spec.rb lines=24-47\nread remaining for detail", "file": "spec/parser/options_spec.rb", "symbol": "remaining", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=64-87\nread invoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "El método que convierte un hash de opciones en una cadena de argumentos con guiones para la línea de comandos no está manejando correctamente los valores booleanos o nulos, lo que podría dejar espacios extra o argumentos mal formados.", "query": "hash switches string", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lang": "es", "candidates": [{"text": "File: spec/fixtures/script.thor\nLine 125: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 28: describe \"#to_switches\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nLine 63: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 7: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 315: args.push Thor::Options.to_switches(config)", "file": "lib/thor/actions.rb", "symbol": "", "line": 315, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 206: class PackageNameScript < Thor", "file": "spec/fixtures/script.thor", "symbol": "", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 134: it \"executes the block given to show file content\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 56: def invoke(*names, &block)", "file": "lib/thor/group.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 66: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 12: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 21: File.join(destination_root, \"foo\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 5: class_option \"fruit\", :aliases => \"-f\", :type => :string, :enum => %w(apple banana)", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 270: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 270, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 478: def disable_required_check #:nodoc:", "file": "lib/thor.rb", "symbol": "", "line": 478, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 44: options[:fourth]", "file": "spec/fixtures/group.thor", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 57: #", "file": "lib/thor/util.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 78: end", "file": "spec/helper.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 42: task = super", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 4: desc \"snack\"", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 351: expect(File.binread(file)).to eq(\"__start__\\nREADME\\n__end__\\n\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 47: expect(Thor::Util.namespace_from_thor_class(\"Thor::Sandbox::Package\")).to eq(\"package\")", "file": "spec/util_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 55: def a; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 11: def self.to_switches(options)", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/group_spec.rb\nLine 8: end", "file": "spec/group_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "El método que convierte un hash de opciones en una cadena de argumentos con guiones para la línea de comandos no está manejando correctamente los valores booleanos o nulos, lo que podría dejar espacios extra o argumentos mal formados.", "query": "hash switches string", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lang": "es", "candidates": [{"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "El método que convierte un hash de opciones en una cadena de argumentos con guiones para la línea de comandos no está manejando correctamente los valores booleanos o nulos, lo que podría dejar espacios extra o argumentos mal formados.", "query": "hash switches string", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lang": "es", "candidates": [{"text": "Next: read lib/thor/actions/create_file.rb lines=86-109\nread force_or_skip_or_conflict for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_or_skip_or_conflict", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=96-119\nread public_method? for detail", "file": "lib/thor/command.rb", "symbol": "public_method?", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/subcommand_spec.rb lines=48-71\nread Child1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "Child1", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=29-52\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=55-78\nread Parent for detail", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=65-88\nread peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=4-27\nread EncodingOther for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "EncodingOther", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=67-90\nread pretend? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "pretend?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=671-694\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=191-214\nread open for detail", "file": "spec/fixtures/script.thor", "symbol": "open", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=27-50\nread delete for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "delete", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=179-202\nread boom for detail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=308-331\nread thor for detail", "file": "lib/thor/actions.rb", "symbol": "thor", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=21-44\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=276-299\nread _invoke_for_class_method for detail", "file": "lib/thor/group.rb", "symbol": "_invoke_for_class_method", "line": 276, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "mostra o número quatro e chama o próximo passo definido", "query": "invoke five", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lang": "pt", "candidates": [{"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 2: # frozen_string_literal: true", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 281: alias_method :task_help, :command_help", "file": "lib/thor.rb", "symbol": "", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 111: end.to raise_error(Thor::AtLeastOneRequiredArgumentError, \"Not found at least one of required options '--three', '--four'\")", "file": "spec/base_spec.rb", "symbol": "", "line": 111, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 537: def no_commands_context", "file": "lib/thor/base.rb", "symbol": "", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 25: expect(parse(\"name\", \"+13.3\")[\"numeric\"]).to eq(13.3)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 296: class_option :four", "file": "spec/fixtures/script.thor", "symbol": "", "line": 296, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 45: end", "file": "spec/group_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 8: def encoding", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 15: task :cool do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 55: # on Highline implementation and it automatically appends CLEAR to the end", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 12: {out: w, err: [:child, :out]})", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 283: desc 'pear', 'pear'; def pear; end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 34: @exclusives = (relations[:exclusive_option_names] || []).select{|array| !array.empty?}", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 132: public_command :foo, :baz", "file": "spec/fixtures/group.thor", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 602: expect(content).to match(/Required At Least One:\\n\\s+--three\\s+--four\\n/)", "file": "spec/thor_spec.rb", "symbol": "", "line": 602, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 69: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 6: attr_reader :stdout, :options", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 155: \" or call `allow_incompatible_default_type!` in your code\"", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 126: it \"still passes everything after -- to command\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 43: def four", "file": "spec/fixtures/group.thor", "symbol": "", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 292: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 292, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 23: def four", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "mostra o número quatro e chama o próximo passo definido", "query": "invoke five", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lang": "pt", "candidates": [{"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\ndefines four", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "mostra o número quatro e chama o próximo passo definido", "query": "invoke five", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/actions/empty_directory.rb lines=56-79\nread revoke! for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "revoke!", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=1-24\nread TestSubcommands for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "TestSubcommands", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=203-226\nread thor_root_glob for detail", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/invoke.thor lines=29-52\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=131-154\nread validate_default_type! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate_default_type!", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=89-112\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=105-128\nread wrong_arity for detail", "file": "spec/fixtures/group.thor", "symbol": "wrong_arity", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=83-106\nread convert_key for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "convert_key", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=371-394\nread capture for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "capture", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=13-36\nread invoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=216-239\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=60-83\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=793-816\nread dispatch for detail", "file": "lib/thor/base.rb", "symbol": "dispatch", "line": 793, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=269-292\nread can_display_colors? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "can_display_colors?", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=393-416\nread class_at_least_one for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/application_helper.rb lines=1-24\nread ApplicationHelper for detail", "file": "spec/fixtures/application_helper.rb", "symbol": "ApplicationHelper", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Ich arbeite gerade an der Logik für die Code-Injektion. Kannst du mir zeigen, wie der Konstruktor die Entscheidung trifft, ob der Inhalt vor oder nach einem bestimmten Muster eingefügt wird?", "query": "inject content before after", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lang": "de", "candidates": [{"text": "File: spec/rake_compat_spec.rb\nLine 8: def initialize", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nLine 217: describe \".register-ing a Thor::Group subclass\" do", "file": "spec/register_spec.rb", "symbol": "", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 398: # check_unknown_options! :except => :exec", "file": "lib/thor.rb", "symbol": "", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 274: class Apple < Thor", "file": "spec/fixtures/script.thor", "symbol": "", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 161: def initialize(*args)", "file": "spec/fixtures/script.thor", "symbol": "", "line": 161, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 124: end", "file": "lib/thor/command.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 64: def invoke!", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 70: required: false,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 70: required: false,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 23: def initialize(args = [], options = {}, config = {}, &block) #:nodoc:", "file": "lib/thor/invocation.rb", "symbol": "", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 33: options.fetch(:echo, true)", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 54: def initialize(text)", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 27: # Set the terminal's foreground HTML color to cyan.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 155: [self.class, nil]", "file": "lib/thor/invocation.rb", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 41: # and required options into the given usage.", "file": "lib/thor/command.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 69: def initialize(base, destination, data, config)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_file.rb\nLine 64: File.open(destination, \"wb\", config[:perm]) { |f| f.write render }", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 12: describe \"#initialize\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 36: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 11: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 3: describe Thor::Shell do", "file": "spec/shell_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 8: describe \"#initialize\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 159: # shown recursively when invoking a generator.", "file": "lib/thor/group.rb", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 13: else", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Ich arbeite gerade an der Logik für die Code-Injektion. Kannst du mir zeigen, wie der Konstruktor die Entscheidung trifft, ob der Inhalt vor oder nach einem bestimmten Muster eingefügt wird?", "query": "inject content before after", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lang": "de", "candidates": [{"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Ich arbeite gerade an der Logik für die Code-Injektion. Kannst du mir zeigen, wie der Konstruktor die Entscheidung trifft, ob der Inhalt vor oder nach einem bestimmten Muster eingefügt wird?", "query": "inject content before after", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lang": "de", "candidates": [{"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Ich arbeite gerade an der Logik für die Code-Injektion. Kannst du mir zeigen, wie der Konstruktor die Entscheidung trifft, ob der Inhalt vor oder nach einem bestimmten Muster eingefügt wird?", "query": "inject content before after", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lang": "de", "candidates": [{"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=253-276\nread zero_args for detail", "file": "spec/fixtures/script.thor", "symbol": "zero_args", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=552-575\nread baseclass for detail", "file": "lib/thor.rb", "symbol": "baseclass", "line": 552, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=311-334\nread MyOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyOptionScript", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=329-352\nread class_option for detail", "file": "lib/thor/base.rb", "symbol": "class_option", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=289-312\nread display_klasses for detail", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=26-49\nread insert_into_file! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=122-145\nread invoke_command for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_command", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=671-694\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/script_exit_status_spec.rb lines=2-25\nread thor_command for detail", "file": "spec/script_exit_status_spec.rb", "symbol": "thor_command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=51-74\nread six for detail", "file": "spec/fixtures/group.thor", "symbol": "six", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/exit_status.thor lines=3-26\nread ExitStatus for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ExitStatus", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=224-247\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=59-82\nread no_or_skip? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=95-118\nread print_status for detail", "file": "spec/fixtures/invoke.thor", "symbol": "print_status", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=55-78\nread inherited for detail", "file": "spec/fixtures/group.thor", "symbol": "inherited", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=69-92\nread initialize for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=38-61\nread part_two for detail", "file": "spec/register_spec.rb", "symbol": "part_two", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=12-35\nread exists_and_identical? for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Ich habe ein Problem mit der Reihenfolge, in der Thor nach Quelltext-Dateien sucht. Es scheint, als würden die Pfade der aktuellen Klasse, das globale Root-Verzeichnis und die Pfade der Elternklassen nicht korrekt kombiniert werden. Kannst du mir zeigen, wie die Logik in `source_paths_for_search` aussieht, die diese Pfad-Sammlung durchführt?", "query": "source path search order", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lang": "de", "candidates": [{"text": "File: lib/thor/actions/create_file.rb\nLine 92: else", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 5: describe Thor::Actions::InjectIntoFile do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 9: module Actions", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell.rb\nLine 19: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 77: protected", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 79: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 4: module Actions", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/command.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 4: module Actions", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 5: describe Thor::Actions::Directory do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nLine 8: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 2: require_relative \"table_printer\"", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 44: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 109: when TrueClass, FalseClass", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 171: # an unknown option starts with - or -- and has no more --'s afterward.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 174: def normalize_aliases(aliases)", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 27: expect(parse(\"name\", \"-13.3\")[\"numeric\"]).to eq(-13.3)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 10: desc \"a\", \"First Command\"", "file": "spec/sort_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 2: include Thor::Actions", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nLine 3: describe Thor::Actions do", "file": "spec/actions_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 111: # conditions are met.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 9: # source:: the relative path to the source root.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 22: desc \"sub\", \"Subcommands\"", "file": "spec/tree_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 32: # ==== Returns", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Ich habe ein Problem mit der Reihenfolge, in der Thor nach Quelltext-Dateien sucht. Es scheint, als würden die Pfade der aktuellen Klasse, das globale Root-Verzeichnis und die Pfade der Elternklassen nicht korrekt kombiniert werden. Kannst du mir zeigen, wie die Logik in `source_paths_for_search` aussieht, die diese Pfad-Sammlung durchführt?", "query": "source path search order", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lang": "de", "candidates": [{"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Ich habe ein Problem mit der Reihenfolge, in der Thor nach Quelltext-Dateien sucht. Es scheint, als würden die Pfade der aktuellen Klasse, das globale Root-Verzeichnis und die Pfade der Elternklassen nicht korrekt kombiniert werden. Kannst du mir zeigen, wie die Logik in `source_paths_for_search` aussieht, die diese Pfad-Sammlung durchführt?", "query": "source path search order", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lang": "de", "candidates": [{"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/inject_into_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> revoke", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/file_manipulation", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/empty_directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Ich habe ein Problem mit der Reihenfolge, in der Thor nach Quelltext-Dateien sucht. Es scheint, als würden die Pfade der aktuellen Klasse, das globale Root-Verzeichnis und die Pfade der Elternklassen nicht korrekt kombiniert werden. Kannst du mir zeigen, wie die Logik in `source_paths_for_search` aussieht, die diese Pfad-Sammlung durchführt?", "query": "source path search order", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lang": "de", "candidates": [{"text": "Next: read lib/thor/actions.rb lines=27-50\nread source_root for detail", "file": "lib/thor/actions.rb", "symbol": "source_root", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=31-54\nread dynamic_width_stty for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_stty", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=99-122\nread aliases_for_usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "aliases_for_usage", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=206-229\nread PackageNameScript for detail", "file": "spec/fixtures/script.thor", "symbol": "PackageNameScript", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=333-356\nread at_least_one for detail", "file": "spec/fixtures/script.thor", "symbol": "at_least_one", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=75-98\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=78-101\nread long_desc for detail", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=700-723\nread build_options for detail", "file": "lib/thor/base.rb", "symbol": "build_options", "line": 700, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=264-287\nread prepare_message for detail", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=9-32\nread empty_directory for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "empty_directory", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=78-101\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/util.rb lines=221-244\nread ruby_command for detail", "file": "lib/thor/util.rb", "symbol": "ruby_command", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=276-299\nread thorfiles_relevant_to for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=89-112\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Estoy revisando la lógica de validación de los parámetros de entrada. ¿Podrías explicarme qué reglas se están aplicando para asegurar que los argumentos sean coherentes?", "query": "argument validation error", "file": "lib/thor/parser/argument.rb", "symbol": "validate!", "line": 62, "lang": "es", "candidates": [{"text": "File: spec/sort_spec.rb\nLine 32: desc \"z\", \"Last Command\"", "file": "spec/sort_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 37: #", "file": "lib/thor/invocation.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 226: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 226, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 570: expect(shell).to receive(:system).with(\"nvim\", \"-d\", /foo/, \"foo\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 570, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 178: ARGV.replace %w(:command_conflict)", "file": "spec/runner_spec.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 69: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 42: expect(Thor::Options.to_switches(color: false, foo: nil)).to eq(\"\")", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 62: def validate!", "file": "lib/thor/parser/argument.rb", "symbol": "validate!", "line": 62, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/sort_spec.rb\nLine 8: describe \"#sort - default\" do", "file": "spec/sort_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 403: it \"accepts --[skip-]opt variant, setting false for value\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 249: peek", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 60: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 3: def initialize", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 15: def revoker", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 40: def animal(type)", "file": "spec/fixtures/script.thor", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 24: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 72: p 2", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 590: it \"prints class exclusive options\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 590, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 71: type: :numeric,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 25: end.to raise_error(ArgumentError, \"An argument cannot be required and have default value.\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 244: expect(parse(:'nougat', :boolean).usage).to include(\"[--no-nougat]\")", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 249: def banner", "file": "lib/thor/group.rb", "symbol": "", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 28: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 254: # ==== Examples", "file": "lib/thor/util.rb", "symbol": "", "line": 254, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estoy revisando la lógica de validación de los parámetros de entrada. ¿Podrías explicarme qué reglas se están aplicando para asegurar que los argumentos sean coherentes?", "query": "argument validation error", "file": "lib/thor/parser/argument.rb", "symbol": "validate!", "line": 62, "lang": "es", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\ndefines validate!", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Estoy revisando la lógica de validación de los parámetros de entrada. ¿Podrías explicarme qué reglas se están aplicando para asegurar que los argumentos sean coherentes?", "query": "argument validation error", "file": "lib/thor/parser/argument.rb", "symbol": "validate!", "line": 62, "lang": "es", "candidates": [{"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estoy revisando la lógica de validación de los parámetros de entrada. ¿Podrías explicarme qué reglas se están aplicando para asegurar que los argumentos sean coherentes?", "query": "argument validation error", "file": "lib/thor/parser/argument.rb", "symbol": "validate!", "line": 62, "lang": "es", "candidates": [{"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions_spec.rb lines=12-35\nread file for detail", "file": "spec/actions_spec.rb", "symbol": "file", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=62-85\nread source_root for detail", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=62-85\nread validate! for detail", "file": "lib/thor/parser/argument.rb", "symbol": "validate!", "line": 62, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=49-72\nread values_at for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "values_at", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=79-102\nread can_display_colors? for detail", "file": "lib/thor/shell/html.rb", "symbol": "can_display_colors?", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=123-146\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=57-80\nread PluginWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefault", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=73-96\nread on_conflict_behavior for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "on_conflict_behavior", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=424-447\nread stop_on_unknown_option? for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=144-167\nread check_exclusive! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=113-136\nread indentation for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=179-202\nread boom for detail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=2-25\nread Argument for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=80-103\nread Defined for detail", "file": "spec/fixtures/invoke.thor", "symbol": "Defined", "line": 80, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "imprime la ayuda para un comando dado", "query": "command help", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lang": "es", "candidates": [{"text": "File: spec/encoding_spec.rb\nLine 12: expect(capture(:stdout) { Thor::Sandbox::EncodingWithUtf8.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 9: method_options :forcefully => :boolean", "file": "spec/fixtures/command.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 58: default: [\"one\",\"two\"]", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 26: def spec", "file": "Thorfile", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 24: # Prints help information.", "file": "lib/thor/group.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 258: def command_help(shell, command_name)", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 4: # Overwrite show_diff to show diff with colors if Diff::LCS is", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 114: end", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 25: # data, just takes a source string from the user.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 35: describe \"#usage\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 3: class Subcommand < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 5: SOME_STRING = \"Some λέξεις 一些词 🎉\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 10: base = MyCounter.new [1, 2], {}, shell: shell", "file": "spec/shell_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 8: Thor::Argument.new(type.to_s, options)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 30: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/├─ command1/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 69: def revoke!", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 89: yield unless pretend?", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 12: Thor::LineEditor::Readline,", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 101: base.shell.file_collision(destination) { render }", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 613: expect(capture(:stdout) { MyScript.command_help(shell, \"foo\") }).to eq(<<-END)", "file": "spec/thor_spec.rb", "symbol": "", "line": 613, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nLine 17: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 14: words.inject do |memo, word|", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 25: #", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 68: base = name", "file": "lib/thor/runner.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "imprime la ayuda para un comando dado", "query": "command help", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lang": "es", "candidates": [{"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "imprime la ayuda para un comando dado", "query": "command help", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lang": "es", "candidates": [{"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "imprime la ayuda para un comando dado", "query": "command help", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lang": "es", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=72-95\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=6-29\nread show_diff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "show_diff", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=221-244\nread ruby_command for detail", "file": "lib/thor/util.rb", "symbol": "ruby_command", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=127-150\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=567-590\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=109-132\nread sans_backtrace for detail", "file": "lib/thor/command.rb", "symbol": "sans_backtrace", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=109-132\nread CommandConflict for detail", "file": "spec/fixtures/group.thor", "symbol": "CommandConflict", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=52-75\nread enum_to_s for detail", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=201-224\nread paint for detail", "file": "spec/fixtures/script.thor", "symbol": "paint", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=43-66\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=293-316\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=17-40\nread Util for detail", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=258-281\nread command_help for detail", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=80-103\nread ask for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "这个方法是用来获取所有继承自基类的子类列表的吗?", "query": "subclasses array", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/verbose.thor\nLine 13: Test.start(ARGV)", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 1: require \"rbconfig\"", "file": "lib/thor/shell.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 13: counter = words.first.length", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 238: describe \"#subclasses\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 238, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nLine 181: klasses = Thor::Base.subclasses.select do |k|", "file": "lib/thor/runner.rb", "symbol": "", "line": 181, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 48: #", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 4: $thor_runner ||= false", "file": "lib/thor.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 272: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 272, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 48: it \"does not invoke an existing method\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 23: end", "file": "Thorfile", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 129: def subclasses", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/directory_spec.rb\nLine 122: expect(File.exist?(file)).to be true", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 46: context \"subcommand with an arg\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 19: # Receives a namespace and search for it in the Thor::Base subclasses.", "file": "lib/thor/util.rb", "symbol": "", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 34: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 9: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 8: delete = Thor::Base.subclasses.select { |e| e.namespace == \"default\" }", "file": "spec/runner_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 94: raise Thor::Error, \"The content of #{destination} did not change\"", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 710: # Print all subcommands (from registered Thor subclasses)", "file": "lib/thor.rb", "symbol": "", "line": 710, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 71: klass = Class.new do", "file": "spec/command_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 23: def revoke!(*args, &block)", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 17: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 170: it \"uses just the source basename as destination if none is specified\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "这个方法是用来获取所有继承自基类的子类列表的吗?", "query": "subclasses array", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lang": "zh", "candidates": [{"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "这个方法是用来获取所有继承自基类的子类列表的吗?", "query": "subclasses array", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "这个方法是用来获取所有继承自基类的子类列表的吗?", "query": "subclasses array", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lang": "zh", "candidates": [{"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=167-190\nread installed for detail", "file": "lib/thor/runner.rb", "symbol": "installed", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=345-368\nread only_one for detail", "file": "spec/fixtures/script.thor", "symbol": "only_one", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=4-27\nread command for detail", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=107-130\nread show_default? for detail", "file": "lib/thor/parser/option.rb", "symbol": "show_default?", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=93-116\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=70-93\nread method_at_least_one_option_names for detail", "file": "lib/thor/command.rb", "symbol": "method_at_least_one_option_names", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=66-89\nread method_exclusive_option_names for detail", "file": "lib/thor/command.rb", "symbol": "method_exclusive_option_names", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=686-709\nread tree for detail", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=322-345\nread quiet? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=129-152\nread subclasses for detail", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Thorfile lines=26-49\nread spec for detail", "file": "Thorfile", "symbol": "spec", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=45-68\nread identical? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "identical?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=126-149\nread on_file_clash_behavior for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_file_clash_behavior", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=25-48\nread pop for detail", "file": "lib/thor/nested_context.rb", "symbol": "pop", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "récupérer les noms des options exclusives", "query": "exclusive_option_names", "file": "lib/thor/command.rb", "symbol": "method_exclusive_option_names", "line": 66, "lang": "fr", "candidates": [{"text": "File: spec/actions/empty_directory_spec.rb\nLine 124: it \"ignores incorrectly encoded instruction\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 72: it \"forwards arguments to the invoked command\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 7: best_available.new(prompt, options).readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 78: lookup = file_level_lookup(lookup)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 65: it \"shows subcommand name and method name\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 128: it \"returns thor classes inside the given class\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 59: color, bold = colors", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 326: shell.say_status(:create, \"~/.thor/command.thor\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 30: # ERB, it gets the content from the user.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 40: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 48: it \"returns usage for hash types\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 73: protected", "file": "lib/thor/shell.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 55: class_option :quiet, type: :boolean, aliases: \"-q\", group: :runtime,", "file": "lib/thor/actions.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 205: :method_exclusive_option_names, *args, &block)", "file": "lib/thor.rb", "symbol": "", "line": 205, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 231: !switch_option(normalize_switch(arg)).nil?", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 30: object = Struct.new(:namespace, :arguments).new(\"foo\", [Thor::Argument.new(:bar, options)])", "file": "spec/command_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 24: expect(output).to eq(\"output\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 66: def method_exclusive_option_names #:nodoc:", "file": "lib/thor/command.rb", "symbol": "method_exclusive_option_names", "line": 66, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 5: SOME_STRING = \"Some ������\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 3: gem_dir= File.expand_path(\"#{File.dirname(__FILE__)}/..\")", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 42: expect(Thor::DynamicCommand.new(\"command\").name).to eq(\"command\")", "file": "spec/command_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 63: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 84: def set_color(string, *colors)", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "récupérer les noms des options exclusives", "query": "exclusive_option_names", "file": "lib/thor/command.rb", "symbol": "method_exclusive_option_names", "line": 66, "lang": "fr", "candidates": [{"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "récupérer les noms des options exclusives", "query": "exclusive_option_names", "file": "lib/thor/command.rb", "symbol": "method_exclusive_option_names", "line": 66, "lang": "fr", "candidates": [{"text": "Next: read spec/sort_spec.rb lines=60-83\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=92-115\nread long_description for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=90-113\nread snake_case for detail", "file": "lib/thor/util.rb", "symbol": "snake_case", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=54-77\nread initialize for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=310-333\nread display_commands for detail", "file": "lib/thor/runner.rb", "symbol": "display_commands", "line": 310, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=2-25\nread NestedContext for detail", "file": "lib/thor/nested_context.rb", "symbol": "NestedContext", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=460-483\nread method_exclusive_option_names for detail", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=66-89\nread method_exclusive_option_names for detail", "file": "lib/thor/command.rb", "symbol": "method_exclusive_option_names", "line": 66, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/thor_spec.rb lines=547-570\nread shell for detail", "file": "spec/thor_spec.rb", "symbol": "shell", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=44-67\nread initialize for detail", "file": "lib/thor/shell.rb", "symbol": "initialize", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=8-31\nread action for detail", "file": "spec/actions_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=330-353\nread ask_simply for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_simply", "line": 330, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=145-168\nread chmod for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "chmod", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "클래스에 새로운 메서드가 정의될 때 유효성 검사를 거쳐 명령어를 생성해주는 로직이 어디에 구현되어 있나요? 명령어를 새로 등록하는 과정을 처리하는 부분을 찾고 싶습니다.", "query": "creates new command", "file": "lib/thor/base.rb", "symbol": "create_command", "line": 783, "lang": "ko", "candidates": [{"text": "File: spec/actions/directory_spec.rb\nLine 111: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 783: def create_command(meth) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "create_command", "line": 783, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 334: flag = flag.respond_to?(:source) ? flag.source : flag", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 334, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 7: #", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 175: alias_method :prepend_file, :prepend_to_file", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 39: alias rake_namespace namespace", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 26: # Initializes given the source and destination.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 11: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 14: def ok", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 4: desc \"snack\"", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 98: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 101: end", "file": "lib/thor/actions.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 15: return if array.empty?", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 263: def create_command(meth) #:nodoc:", "file": "lib/thor/group.rb", "symbol": "", "line": 263, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 106: str.split(\"_\").map(&:capitalize).join", "file": "lib/thor/util.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 8: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 29: def five(number)", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 2: require \"thor/actions\"", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 24: private", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 560: def create_command(meth) #:nodoc:", "file": "lib/thor.rb", "symbol": "", "line": 560, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 31: say \" #{diff.old_element.chomp}\", nil, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 35: def identical?", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 113: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "클래스에 새로운 메서드가 정의될 때 유효성 검사를 거쳐 명령어를 생성해주는 로직이 어디에 구현되어 있나요? 명령어를 새로 등록하는 과정을 처리하는 부분을 찾고 싶습니다.", "query": "creates new command", "file": "lib/thor/base.rb", "symbol": "create_command", "line": 783, "lang": "ko", "candidates": [{"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "클래스에 새로운 메서드가 정의될 때 유효성 검사를 거쳐 명령어를 생성해주는 로직이 어디에 구현되어 있나요? 명령어를 새로 등록하는 과정을 처리하는 부분을 찾고 싶습니다.", "query": "creates new command", "file": "lib/thor/base.rb", "symbol": "create_command", "line": 783, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "클래스에 새로운 메서드가 정의될 때 유효성 검사를 거쳐 명령어를 생성해주는 로직이 어디에 구현되어 있나요? 명령어를 새로 등록하는 과정을 처리하는 부분을 찾고 싶습니다.", "query": "creates new command", "file": "lib/thor/base.rb", "symbol": "create_command", "line": 783, "lang": "ko", "candidates": [{"text": "Next: read spec/actions/directory_spec.rb lines=23-46\nread revoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoke!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=57-80\nread PluginWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefault", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=120-143\nread I for detail", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=263-286\nread create_command for detail", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=230-253\nread cow for detail", "file": "spec/fixtures/script.thor", "symbol": "cow", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=385-408\nread actually_gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "actually_gsub_file", "line": 385, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=20-43\nread unix? for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "unix?", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=277-300\nread rotten_apple for detail", "file": "spec/fixtures/script.thor", "symbol": "rotten_apple", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=117-140\nread with_optional for detail", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=783-806\nread create_command for detail", "file": "lib/thor/base.rb", "symbol": "create_command", "line": 783, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=104-127\nread can_display_colors? for detail", "file": "lib/thor/shell/color.rb", "symbol": "can_display_colors?", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=225-248\nread current_is_value? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_value?", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=68-91\nread absolute_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "absolute_matches", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=28-51\nread add_to_history? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "add_to_history?", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=168-191\nread check_unknown! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Die Methode, die aktuell absolut nichts tut und keinen Rückgabewert liefert, scheint in den Tests nicht den erwarteten Effekt zu haben oder ist unvollständig implementiert.", "query": "empty method spec", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lang": "de", "candidates": [{"text": "File: lib/thor/shell/color.rb\nLine 62: #", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 222: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 222, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 49: # The hash given is converted to a hash with indifferent", "file": "lib/thor/base.rb", "symbol": "", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nLine 17: # Errors that are caused by the developer, like declaring a method which", "file": "lib/thor/error.rb", "symbol": "", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 550: #", "file": "lib/thor/base.rb", "symbol": "", "line": 550, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 30: def a; end", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/directory.rb\nLine 6: # If any of the files finishes with .tt, it's considered to be a template", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 35: ON_RED = \"background-color: red\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 13: desc \"sub\", \"My subcommand\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 411: expect(File.binread(file)).to eq(\"START\\nREADME\\n__end__\\n\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 411, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 644: end", "file": "lib/thor/base.rb", "symbol": "", "line": 644, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 72: case type", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 7: puts options['fruit']", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 5: it \"maps a given subcommand to another Thor subclass\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 207: [true, switch?($1)]", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 90: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 115: not_debugging?(instance) && (error.message =~ /wrong number of arguments/ || error.message =~ /given \\d*, expected \\d*/) && begin", "file": "lib/thor/command.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 55: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 64: class_eval <<-METHOD, __FILE__, __LINE__ + 1", "file": "lib/thor/group.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 32: chmod(resulting_destination, mode, config)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 19: # Receives a namespace and search for it in the Thor::Base subclasses.", "file": "lib/thor/util.rb", "symbol": "", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 97: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 88: say_status :force, :yellow", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 110: desc \"A group with the same name as a default command\"", "file": "spec/fixtures/group.thor", "symbol": "", "line": 110, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Die Methode, die aktuell absolut nichts tut und keinen Rückgabewert liefert, scheint in den Tests nicht den erwarteten Effekt zu haben oder ist unvollständig implementiert.", "query": "empty method spec", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lang": "de", "candidates": [{"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nsibling in spec", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nsibling in spec", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nsibling in spec", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\ndefines a", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Die Methode, die aktuell absolut nichts tut und keinen Rückgabewert liefert, scheint in den Tests nicht den erwarteten Effekt zu haben oder ist unvollständig implementiert.", "query": "empty method spec", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lang": "de", "candidates": [{"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Die Methode, die aktuell absolut nichts tut und keinen Rückgabewert liefert, scheint in den Tests nicht den erwarteten Effekt zu haben oder ist unvollständig implementiert.", "query": "empty method spec", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lang": "de", "candidates": [{"text": "Next: read lib/thor/shell.rb lines=77-100\nread _shared_configuration for detail", "file": "lib/thor/shell.rb", "symbol": "_shared_configuration", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=138-161\nread potentially_ambiguous_but_hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous_but_hidden", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=277-300\nread rotten_apple for detail", "file": "spec/fixtures/script.thor", "symbol": "rotten_apple", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/script_exit_status_spec.rb lines=2-25\nread thor_command for detail", "file": "spec/script_exit_status_spec.rb", "symbol": "thor_command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=329-352\nread class_option for detail", "file": "lib/thor/base.rb", "symbol": "class_option", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=483-506\nread all_commands for detail", "file": "lib/thor/base.rb", "symbol": "all_commands", "line": 483, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=35-58\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=4-27\nread shell for detail", "file": "spec/sort_spec.rb", "symbol": "shell", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=722-745\nread inherited for detail", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=100-123\nread private_method? for detail", "file": "lib/thor/command.rb", "symbol": "private_method?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=131-154\nread find_class_and_command_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_class_and_command_by_namespace", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=254-277\nread self_command for detail", "file": "lib/thor/group.rb", "symbol": "self_command", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=23-46\nread Shell for detail", "file": "lib/thor/shell.rb", "symbol": "Shell", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=16-39\nread parse for detail", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=17-40\nread revoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "revoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Thor 옵션 초기화 시 `required` 키가 명시되지 않았을 경우 기본값으로 `false`를 할당하는 로직을 확인합니다. 또한 `repeatable`, `lazy_default`, `group`, `aliases`, `hide` 등의 옵션 매개변수가 인스턴스 변수에 올바르게 설정되는지 검증해야 합니다.", "query": "Thor option initialization required default", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions/file_manipulation.rb\nLine 48: # link_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 420: Erik 1", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 420, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 14: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 34: def initialize(base, destination, config = {})", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 54: def initialize(text)", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nLine 6: arguments = opts.map do |type, default|", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 90: else", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 33: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 3: def initialize", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 220: return true", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 220, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 70: shift", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 43: options.fetch(:limited_to, [])", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 136: allow(ENV).to receive(:[])", "file": "spec/util_spec.rb", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 31: # Add shell to initialize config values.", "file": "lib/thor/shell.rb", "symbol": "", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 8: def initialize(stdout, options = {})", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nLine 7: def initialize(name, options = {})", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/subcommand_spec.rb\nLine 63: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 37: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 5: def create(opts = {})", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 264: expect(runner.instance_variable_get(\"@foo\")).to eq(\"FOO\")", "file": "spec/actions_spec.rb", "symbol": "", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 227: peek && (!parsing_options? || super)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 8: desc \"error\", \"exit with a planned error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 20: out = capture(:stdout) { shell.say \"Wow! Now we have colors! \", :green }", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 8: def initialize", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Thor 옵션 초기화 시 `required` 키가 명시되지 않았을 경우 기본값으로 `false`를 할당하는 로직을 확인합니다. 또한 `repeatable`, `lazy_default`, `group`, `aliases`, `hide` 등의 옵션 매개변수가 인스턴스 변수에 올바르게 설정되는지 검증해야 합니다.", "query": "Thor option initialization required default", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Thor 옵션 초기화 시 `required` 키가 명시되지 않았을 경우 기본값으로 `false`를 할당하는 로직을 확인합니다. 또한 `repeatable`, `lazy_default`, `group`, `aliases`, `hide` 등의 옵션 매개변수가 인스턴스 변수에 올바르게 설정되는지 검증해야 합니다.", "query": "Thor option initialization required default", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lang": "ko", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=100-123\nread E for detail", "file": "spec/fixtures/invoke.thor", "symbol": "E", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=251-274\nread error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "error", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/version.rb lines=1-24\nread Thor for detail", "file": "lib/thor/version.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=85-108\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=38-61\nread source_paths_for_search for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths_for_search", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=424-447\nread stop_on_unknown_option? for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=2-25\nread NestedContext for detail", "file": "lib/thor/nested_context.rb", "symbol": "NestedContext", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=49-72\nread values_at for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "values_at", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=35-58\nread dynamic_width_tput for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_tput", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/create_link.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=789-812\nread initialize_added for detail", "file": "lib/thor/base.rb", "symbol": "initialize_added", "line": 789, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=248-271\nread parsing_options? for detail", "file": "lib/thor/parser/options.rb", "symbol": "parsing_options?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=657-680\nread print_options for detail", "file": "lib/thor/base.rb", "symbol": "print_options", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=71-94\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 71, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Ich muss den Initialisierer so anpassen, dass er die Übergabeparameter und die Konfiguration für Aufrufe speichert. Bitte implementiere die Logik, um diese Werte in den entsprechenden Instanzvariablen abzulegen.", "query": "init invocations args", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lang": "de", "candidates": [{"text": "File: spec/fixtures/subcommand.thor\nLine 5: def print_opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 12: describe \"#initialize\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 206: expect(Dir).to receive(:[]).and_return([])", "file": "spec/runner_spec.rb", "symbol": "", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 198: ensure", "file": "spec/register_spec.rb", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 173: raise UnknownArgumentError.new(@switches.keys, unknown) unless unknown.empty?", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 178: # borders:: Adds ascii borders.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 77: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 13: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 13: def initialize #:nodoc:", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nLine 230: it \"works w/command options\" do", "file": "spec/register_spec.rb", "symbol": "", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 64: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 54: def initialize(text)", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 53: describe \"#invoke!\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 23: def initialize(args = [], options = {}, config = {}, &block) #:nodoc:", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/rake_compat_spec.rb\nLine 47: it \"gets usage from rake tasks name\" do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 55: if options[:for]", "file": "lib/thor.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 8: describe \"#initialize\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nLine 1: require \"helper\"", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 21: def output_diff_line(diff) #:nodoc:", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 124: \"random\" => {", "file": "spec/runner_spec.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 161: def initialize(*args)", "file": "spec/fixtures/script.thor", "symbol": "", "line": 161, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 34: def initialize(base, destination, config = {})", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nLine 19: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Ich muss den Initialisierer so anpassen, dass er die Übergabeparameter und die Konfiguration für Aufrufe speichert. Bitte implementiere die Logik, um diese Werte in den entsprechenden Instanzvariablen abzulegen.", "query": "init invocations args", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lang": "de", "candidates": [{"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Ich muss den Initialisierer so anpassen, dass er die Übergabeparameter und die Konfiguration für Aufrufe speichert. Bitte implementiere die Logik, um diese Werte in den entsprechenden Instanzvariablen abzulegen.", "query": "init invocations args", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lang": "de", "candidates": [{"text": "Next: read lib/thor/util.rb lines=58-81\nread namespaces_in_content for detail", "file": "lib/thor/util.rb", "symbol": "namespaces_in_content", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=778-801\nread baseclass for detail", "file": "lib/thor/base.rb", "symbol": "baseclass", "line": 778, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=89-112\nread default for detail", "file": "spec/register_spec.rb", "symbol": "default", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=7-30\nread RakeTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "RakeTask", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_link_spec.rb lines=35-58\nread revoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "revoke!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=194-217\nread print_wrapped for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_wrapped", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/encoding_spec.rb lines=6-29\nread load_thorfile for detail", "file": "spec/encoding_spec.rb", "symbol": "load_thorfile", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=117-140\nread with_optional for detail", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=72-95\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=120-143\nread I for detail", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "在执行块操作时,如果原本已经存在缩进,当前的缩进逻辑似乎没有正确处理嵌套缩进导致的累计值覆盖问题,导致输出格式不符合预期。", "query": "indent mute padding", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lang": "zh", "candidates": [{"text": "File: spec/tree_spec.rb\nLine 36: it \"includes command descriptions\" do", "file": "spec/tree_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 39: it \"uses padding for inside block outputs\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 3: class Readline < Basic", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 5: class ColumnPrinter", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 126: Task = Command", "file": "lib/thor/command.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 12: Thor::LineEditor::Readline,", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 70: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 3: class Basic", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 425: # remove_argument :foo, :bar, :baz, :undefine => true", "file": "lib/thor/base.rb", "symbol": "", "line": 425, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 5: module LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 8: # Inherit from Thor::Shell::Basic and add set_color behavior. Check", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 46: # Set the terminal's background HTML color to white.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 7: Thor::Util.load_thorfile(File.expand_path(\"./fixtures/#{filename}\", __dir__))", "file": "spec/encoding_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 170: end", "file": "spec/group_spec.rb", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 30: Thor::Base.shell = Thor::Shell::Basic", "file": "spec/helper.rb", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 115: /(#{Regexp.escape(replacement)})(.*)(#{flag})/m", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 6: # Inherit from Thor::Shell::Basic and add set_color behavior. Check", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nLine 27: let(:shell) { Thor::Shell::Basic.new }", "file": "spec/tree_spec.rb", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 15: Thor::Shell::Basic", "file": "lib/thor/shell.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 20: expect(capture(:stdout) { Thor::Sandbox::EncodingImplicit.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 54: end", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 95: foreground = self.class.const_get(foreground.to_s.upcase) if foreground.is_a?(Symbol)", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 7: class Basic", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/base.rb\nLine 770: # The basename of the program invoking the thor class.", "file": "lib/thor/base.rb", "symbol": "", "line": 770, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "在执行块操作时,如果原本已经存在缩进,当前的缩进逻辑似乎没有正确处理嵌套缩进导致的累计值覆盖问题,导致输出格式不符合预期。", "query": "indent mute padding", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lang": "zh", "candidates": [{"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "在执行块操作时,如果原本已经存在缩进,当前的缩进逻辑似乎没有正确处理嵌套缩进导致的累计值覆盖问题,导致输出格式不符合预期。", "query": "indent mute padding", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "在执行块操作时,如果原本已经存在缩进,当前的缩进逻辑似乎没有正确处理嵌套缩进导致的累计值覆盖问题,导致输出格式不符合预期。", "query": "indent mute padding", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/error.rb lines=85-108\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=101-124\nread map for detail", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=161-184\nread class_options_help for detail", "file": "lib/thor/group.rb", "symbol": "class_options_help", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=138-161\nread potentially_ambiguous_but_hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous_but_hidden", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=320-343\nread subcommands for detail", "file": "lib/thor.rb", "symbol": "subcommands", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor.rb lines=4-27\nread Thor for detail", "file": "lib/thor/line_editor.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=29-52\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=21-44\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=686-709\nread tree for detail", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=105-128\nread wrong_arity for detail", "file": "spec/fixtures/group.thor", "symbol": "wrong_arity", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "como eu faço para o comando encerrar com um código de erro quando algo falha?", "query": "exit_on_failure?", "file": "spec/fixtures/verbose.thor", "symbol": "Test", "line": 7, "lang": "pt", "candidates": [{"text": "File: lib/thor/shell/html.rb\nLine 37: ON_GREEN = \"background-color: green\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 7: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 607: expect(action(:inject_into_module, \"application_helper.rb\", \"ApplicationHelper\", \" def help; 'help'; end\\n\")).to eq(\" insert application_helper.rb\\n\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 607, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 112: it \"shows conflict status to the user\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 229: # config:: give :verbose => false to not log the status.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 42: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 36: capture(:stdout) { action.revoke! }", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 11: # :: give :symbolic => false for hard link.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 292: raise Error, \"No Thor commands available\" if klasses.empty?", "file": "lib/thor/runner.rb", "symbol": "", "line": 292, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 84: key.is_a?(Symbol) ? key.to_s : key", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 62: # to false to mask user input from $stdin.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 7: class Test < Thor", "file": "spec/fixtures/verbose.thor", "symbol": "Test", "line": 7, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 17: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 662: list.sort! { |a, b| a[0] <=> b[0] }", "file": "lib/thor.rb", "symbol": "", "line": 662, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 5: desc :bugs, \"ALL THE BUGZ!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 99: # user.rb", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 100: if aliases.empty?", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 24: it \"raises an error if a required argument is added after a non-required\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 3: class Subcommand < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 10: allow(ENV).to receive(:[]).and_return(nil)", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 1: require_relative \"command\"", "file": "lib/thor/base.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 37: sentence = truncate(sentence)", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "como eu faço para o comando encerrar com um código de erro quando algo falha?", "query": "exit_on_failure?", "file": "spec/fixtures/verbose.thor", "symbol": "Test", "line": 7, "lang": "pt", "candidates": [{"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\ndefines Test", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "como eu faço para o comando encerrar com um código de erro quando algo falha?", "query": "exit_on_failure?", "file": "spec/fixtures/verbose.thor", "symbol": "Test", "line": 7, "lang": "pt", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=307-330\nread mix for detail", "file": "spec/fixtures/script.thor", "symbol": "mix", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=58-81\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/color_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/color_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=253-276\nread zero_args for detail", "file": "spec/fixtures/script.thor", "symbol": "zero_args", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=686-709\nread tree for detail", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=69-92\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=46-69\nread use_path_completion? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "use_path_completion?", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/verbose.thor lines=8-31\nread exit_on_failure? for detail", "file": "spec/fixtures/verbose.thor", "symbol": "exit_on_failure?", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=130-153\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=103-126\nread files for detail", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=10-33\nread describe for detail", "file": "spec/fixtures/command.thor", "symbol": "describe", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=179-202\nread names_to_switch_names for detail", "file": "lib/thor/parser/options.rb", "symbol": "names_to_switch_names", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/verbose.thor lines=7-30\nread Test for detail", "file": "spec/fixtures/verbose.thor", "symbol": "Test", "line": 7, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=208-231\nread disable_required_check? for detail", "file": "lib/thor/base.rb", "symbol": "disable_required_check?", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=71-94\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=98-121\nread MalformattedArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "MalformattedArgumentError", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=43-66\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Necesito una función que tome un archivo de destino y el nuevo contenido, guardando temporalmente este último en un archivo temporal para luego fusionarlo usando la herramienta de fusión configurada.", "query": "merge file tool", "file": "lib/thor/shell/basic.rb", "symbol": "merge", "line": 368, "lang": "es", "candidates": [{"text": "File: lib/thor/invocation.rb\nLine 127: command.run(self, *args)", "file": "lib/thor/invocation.rb", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 191: (@assigns[option.human_name] ||= {}).merge!(result)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 191, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 34: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 10: if SOME_STRING.encoding.name == \"UTF-8\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 65: class UnknownArgumentError < Error", "file": "lib/thor/error.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 276: describe \"#print_default\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 17: @description = options[:desc]", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 36: @config = {verbose: true}.merge(config)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 368: def merge(destination, content) #:nodoc:", "file": "lib/thor/shell/basic.rb", "symbol": "merge", "line": 368, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/sort_spec.rb\nLine 10: desc \"a\", \"First Command\"", "file": "spec/sort_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 149: # This method simply retrieves the class and command to be invoked.", "file": "lib/thor/invocation.rb", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 35: end", "file": "spec/register_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 210: stdout = capture(:stdout) { Thor::Runner.start(%w(installed)) }", "file": "spec/runner_spec.rb", "symbol": "", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 36: match(&:empty?)", "file": "spec/quality_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 13: super()", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 466: action :gsub_file, \"doc/README\", \"___start___\", \"START\"", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 63: parse_options = parse_options.merge(command_options) if command_options", "file": "lib/thor/base.rb", "symbol": "", "line": 63, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 107: it \"launches the merge tool when there is a collision and source has utf-8 characters\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 107, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 250: @parsing_options", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 250, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 47: ON_WHITE = \"background-color: white\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 632: end", "file": "lib/thor/base.rb", "symbol": "", "line": 632, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 61: super(base, destination, {recursive: true}.merge(config))", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 78: super.merge!(shell: shell)", "file": "lib/thor/shell.rb", "symbol": "", "line": 78, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Necesito una función que tome un archivo de destino y el nuevo contenido, guardando temporalmente este último en un archivo temporal para luego fusionarlo usando la herramienta de fusión configurada.", "query": "merge file tool", "file": "lib/thor/shell/basic.rb", "symbol": "merge", "line": 368, "lang": "es", "candidates": [{"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Necesito una función que tome un archivo de destino y el nuevo contenido, guardando temporalmente este último en un archivo temporal para luego fusionarlo usando la herramienta de fusión configurada.", "query": "merge file tool", "file": "lib/thor/shell/basic.rb", "symbol": "merge", "line": 368, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Necesito una función que tome un archivo de destino y el nuevo contenido, guardando temporalmente este último en un archivo temporal para luego fusionarlo usando la herramienta de fusión configurada.", "query": "merge file tool", "file": "lib/thor/shell/basic.rb", "symbol": "merge", "line": 368, "lang": "es", "candidates": [{"text": "Next: read lib/thor/actions.rb lines=216-239\nread apply for detail", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=6-29\nread readline for detail", "file": "lib/thor/line_editor.rb", "symbol": "readline", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=368-391\nread merge for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge", "line": 368, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=154-177\nread ClassMethods for detail", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=14-37\nread ok for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/argument_spec.rb lines=5-28\nread argument for detail", "file": "spec/parser/argument_spec.rb", "symbol": "argument", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=60-83\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=39-62\nread required? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "required?", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=83-106\nread windows? for detail", "file": "spec/helper.rb", "symbol": "windows?", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=64-87\nread reverse_merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=657-680\nread print_options for detail", "file": "lib/thor/base.rb", "symbol": "print_options", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=91-114\nread required_options for detail", "file": "lib/thor/command.rb", "symbol": "required_options", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=138-161\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=53-76\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "外部コマンドを実行して、その成否によって処理を中断するか制御するメソッドはどこにありますか?", "query": "run command system", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lang": "ja", "candidates": [{"text": "File: spec/fixtures/command.thor\nLine 6: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 4: desc \"one\", \"invoke one\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 658: HELP", "file": "spec/thor_spec.rb", "symbol": "", "line": 658, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 73: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 248: def run(command, config = {})", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/options_spec.rb\nLine 554: create run: Thor::Option.new(\"run\", type: :numeric, repeatable: true)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 554, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 19: # insert_into_file \"config/environment.rb\", \"config.gem :thor\", :after => \"Rails::Initializer.run do |config|\\n\"", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 308: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 14: when Symbol, String", "file": "lib/thor/invocation.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 112: /(#{flag})(.*)(#{Regexp.escape(replacement)})/m", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 15: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 141: it \"executes the block given to run merge tool\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 141, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nLine 13: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 267: expect(File.read(file)).to eq(\"__start__\\nREADME\\nmore content\\n__end__\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 267, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 51: Thor::DynamicCommand.new(\"to_s\").run(dub)", "file": "spec/command_spec.rb", "symbol": "", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nLine 4: lib_path= \"#{gem_dir}/lib\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 8: def encoding", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 21: def run(instance, args = [])", "file": "lib/thor/command.rb", "symbol": "", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 50: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 127: command.run(self, *args)", "file": "lib/thor/invocation.rb", "symbol": "", "line": 127, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 58: @maximas << maxima", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 227: it \"updates existing thor files\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 86: return unless destination", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 85: '\\0' + replacement", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "外部コマンドを実行して、その成否によって処理を中断するか制御するメソッドはどこにありますか?", "query": "run command system", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lang": "ja", "candidates": [{"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "外部コマンドを実行して、その成否によって処理を中断するか制御するメソッドはどこにありますか?", "query": "run command system", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/inject_into_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/file_manipulation", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> revoke", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/empty_directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "外部コマンドを実行して、その成否によって処理を中断するか制御するメソッドはどこにありますか?", "query": "run command system", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lang": "ja", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=47-70\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=115-138\nread say_error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_error", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=385-408\nread actually_gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "actually_gsub_file", "line": 385, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=248-271\nread run for detail", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/invoke.thor lines=53-76\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=4-27\nread Thor for detail", "file": "lib/thor/line_editor.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=294-317\nread arguments for detail", "file": "lib/thor/base.rb", "symbol": "arguments", "line": 294, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=11-34\nread HashWithIndifferentAccess for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=57-80\nread AmbiguousCommandError for detail", "file": "lib/thor/error.rb", "symbol": "AmbiguousCommandError", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=128-151\nread bar for detail", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=64-87\nread reverse_merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge", "line": 64, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "메시지를 출력할 때 표준 출력(stdout)을 사용하지 않고 내부 필드값을 직접 참조하여 출력하는 로직을 확인해 주세요.", "query": "puts msg", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lang": "ko", "candidates": [{"text": "File: spec/register_spec.rb\nLine 78: def say", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nLine 185: value = value.to_s", "file": "lib/thor/group.rb", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 86: invoke \"a:three\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 666: include Thor::Base", "file": "lib/thor.rb", "symbol": "", "line": 666, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 30: shell.say \"Usage:\"", "file": "lib/thor/group.rb", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 24: # Takes an array of Thor::Argument objects.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/command.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 132: say_status :invoke, value, #{verbose.inspect}", "file": "lib/thor/group.rb", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 62: describe \"#say\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 62, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 96: # say(\"I know you knew that.\")", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 96, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 24: say \"- #{diff.old_element.chomp}\", :red, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nLine 32: describe \"#set_color\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 766: desc \"hi NAME\", \"say hi to name\"", "file": "spec/thor_spec.rb", "symbol": "", "line": 766, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 93: invoke! \"doc\", \"docs\"", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 263: shell.say \"Usage:\"", "file": "lib/thor.rb", "symbol": "", "line": 263, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nLine 2: include Thor::Actions", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 104: expect(action.identical?).to be false", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 61: # end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 54: # end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 28: super(convert_key(key))", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 245: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 117: end", "file": "spec/group_spec.rb", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 40: expect(parse(\"product\", \"title\", \"age\")[\"array\"]).to eq(%w(title age))", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "메시지를 출력할 때 표준 출력(stdout)을 사용하지 않고 내부 필드값을 직접 참조하여 출력하는 로직을 확인해 주세요.", "query": "puts msg", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lang": "ko", "candidates": [{"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\ndefines say", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nsibling in spec", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nsibling in spec", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nsibling in spec", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "메시지를 출력할 때 표준 출력(stdout)을 사용하지 않고 내부 필드값을 직접 참조하여 출력하는 로직을 확인해 주세요.", "query": "puts msg", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "메시지를 출력할 때 표준 출력(stdout)을 사용하지 않고 내부 필드값을 직접 참조하여 출력하는 로직을 확인해 주세요.", "query": "puts msg", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=78-101\nread long_desc for detail", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=78-101\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=1-24\nread Enum for detail", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=71-94\nread example_default_command for detail", "file": "spec/fixtures/script.thor", "symbol": "example_default_command", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=142-165\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=174-197\nread list for detail", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=403-426\nread class_exclusive_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=59-82\nread no_or_skip? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=325-348\nread subcommand_classes for detail", "file": "lib/thor.rb", "symbol": "subcommand_classes", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=53-76\nread merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=69-92\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=114-137\nread handle_argument_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_argument_error?", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=307-330\nread class_options for detail", "file": "lib/thor/base.rb", "symbol": "class_options", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=52-75\nread render for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "render", "line": 52, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Estoy intentando modificar el contenido de un archivo de forma permanente usando una expresión regular. ¿Dónde está la lógica que maneja la sustitución de cadenas en archivos y que permite forzar la escritura?", "query": "regex file substitution", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lang": "es", "candidates": [{"text": "File: spec/sort_spec.rb\nLine 14: def z; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 23: if echo?", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 27: require \"io/console\"", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 106: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 89: yield unless pretend?", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 80: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 13: else", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 329: def class_option(name, options = {})", "file": "lib/thor/base.rb", "symbol": "", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 58: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 13: # doc/", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 25: @opt.remaining", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 30: config[:after] = /\\z/ unless config.key?(:before) || config.key?(:after)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 1: require \"helper\"", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 16: #", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 263: def gsub_file!(path, flag, *args, &block)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/thor_spec.rb\nLine 328: context \"when invoked several times\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 214: expect(klass.start(%w(--loud jose))).to eq([\"Hi JOSE\"])", "file": "spec/group_spec.rb", "symbol": "", "line": 214, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 15: require \"thor/group\"", "file": "spec/helper.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 68: # :black", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 60: #", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 5: require_relative \"actions/file_manipulation\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 60: #", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 63: const_name = Thor::Util.camel_case(name.to_s).to_sym", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estoy intentando modificar el contenido de un archivo de forma permanente usando una expresión regular. ¿Dónde está la lógica que maneja la sustitución de cadenas en archivos y que permite forzar la escritura?", "query": "regex file substitution", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lang": "es", "candidates": [{"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Estoy intentando modificar el contenido de un archivo de forma permanente usando una expresión regular. ¿Dónde está la lógica que maneja la sustitución de cadenas en archivos y que permite forzar la escritura?", "query": "regex file substitution", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lang": "es", "candidates": [{"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estoy intentando modificar el contenido de un archivo de forma permanente usando una expresión regular. ¿Dónde está la lógica que maneja la sustitución de cadenas en archivos y que permite forzar la escritura?", "query": "regex file substitution", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lang": "es", "candidates": [{"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=265-288\nread optional_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "optional_arg", "line": 265, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=73-96\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=263-286\nread gsub_file! for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=619-642\nread handle_argument_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_argument_error", "line": 619, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=110-133\nread invoke_from_option for detail", "file": "lib/thor/group.rb", "symbol": "invoke_from_option", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=15-38\nread readline for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "readline", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/html.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=2-25\nread check_for_spec_defs_with_single_quotes for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=64-87\nread last? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/create_file_spec.rb lines=25-48\nread silence! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "silence!", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=138-161\nread say_status for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "say_status", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "retornar a raiz de destino atual", "query": "destination root", "file": "lib/thor/actions.rb", "symbol": "destination_root", "line": 99, "lang": "pt", "candidates": [{"text": "File: lib/thor/actions/file_manipulation.rb\nLine 124: create_file destination, nil, config do", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 198: expect do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 10: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 5: @runner ||= MyCounter.new([1], options, destination_root: destination_root)", "file": "spec/actions_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\nLine 5: # Create a new file relative to the destination root from the given source.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 5: @runner ||= MyCounter.new([1], options, destination_root: destination_root, behavior: behavior)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nLine 7: ::FileUtils.rm_rf(destination_root)", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nLine 25: describe \"#say_status\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 4: desc \"print_opt\", \"My method\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 33: it \"sets the color when NO_COLOR is ignored because the environment variable is nil\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 23: # Raised when a command was not found.", "file": "lib/thor/error.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 84: it \"does not show any information\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 8: def encoding", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 242: expect(Thor::Base.subclasses).to include(Scripts::MyScript)", "file": "spec/base_spec.rb", "symbol": "", "line": 242, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 164: expect(File.exist?(file)).to be true", "file": "spec/actions_spec.rb", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 21: THOR_RESERVED_WORDS = %w(invoke shell options behavior root destination_root relative_root", "file": "lib/thor/base.rb", "symbol": "", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nLine 66: def destination_root", "file": "spec/helper.rb", "symbol": "", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 9: class_name = self.class.name.split(\"::\").last", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 98: end", "file": "lib/thor/command.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 36: # ==== Parameters", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 8: # Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 99: def destination_root", "file": "lib/thor/actions.rb", "symbol": "destination_root", "line": 99, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/arguments.rb\nLine 73: @pile.shift", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 7: ::FileUtils.rm_rf(destination_root)", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "retornar a raiz de destino atual", "query": "destination root", "file": "lib/thor/actions.rb", "symbol": "destination_root", "line": 99, "lang": "pt", "candidates": [{"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "retornar a raiz de destino atual", "query": "destination root", "file": "lib/thor/actions.rb", "symbol": "destination_root", "line": 99, "lang": "pt", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/inject_into_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/empty_directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> revoke", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/file_manipulation", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "retornar a raiz de destino atual", "query": "destination root", "file": "lib/thor/actions.rb", "symbol": "destination_root", "line": 99, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=472-495\nread commands for detail", "file": "lib/thor/base.rb", "symbol": "commands", "line": 472, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=192-215\nread thor_root for detail", "file": "lib/thor/util.rb", "symbol": "thor_root", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=99-122\nread destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "destination_root", "line": 99, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=671-694\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/application_helper.rb lines=1-24\nread ApplicationHelper for detail", "file": "spec/fixtures/application_helper.rb", "symbol": "ApplicationHelper", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=179-202\nread boom for detail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=234-257\nread switch_option for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch_option", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=166-189\nread _parse_initialization_options for detail", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=158-181\nread parse_string for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_string", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=17-40\nread Util for detail", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=263-286\nread create_command for detail", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=225-248\nread current_is_value? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_value?", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=149-172\nread remove_invocation for detail", "file": "lib/thor/group.rb", "symbol": "remove_invocation", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=330-353\nread ask_simply for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_simply", "line": 330, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "The method that wraps a variable and its associated options and extra arguments into an array is not handling the case where the first argument is missing correctly.", "query": "wrap arguments options", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lang": "en", "candidates": [{"text": "File: spec/base_spec.rb\nLine 69: expect(MyCounter.arguments.size).to be(2)", "file": "spec/base_spec.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 234: end", "file": "spec/group_spec.rb", "symbol": "", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 219: # ==== Returns", "file": "lib/thor/group.rb", "symbol": "", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 110: # from it. It first searches for a class using the all the given namespace,", "file": "lib/thor/util.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 152: #", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 25: action CreateFile.new(self, destination, block || data.to_s, config)", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 747: klass = Class.new(Thor)", "file": "spec/thor_spec.rb", "symbol": "", "line": 747, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 32: first", "file": "spec/fixtures/group.thor", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 341: expect(MyScript.start(%w(with_optional NAME --omg --invalid))).to eq([\"NAME\", {}, %w(--omg --invalid)])", "file": "spec/base_spec.rb", "symbol": "", "line": 341, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 27: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 5: class ColumnPrinter", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 13: _, options = MyScript.start(%w(with_optional))", "file": "spec/thor_spec.rb", "symbol": "", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 105: mappings = kw.merge!(mappings)", "file": "lib/thor.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 27: exec \"bundle exec rspec spec\"", "file": "Thorfile", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 29: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 14: autoload :Group, File.expand_path(\"group\", __dir__)", "file": "lib/thor/base.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 117: def with_optional(name=nil, *args)", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_file_spec.rb\nLine 130: expect(Thor::LineEditor).to receive(:readline).and_return(\"n\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 59: expect(command.options[:foo]).to be", "file": "spec/command_spec.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 112: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 75: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 66: when Numeric", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 43: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "The method that wraps a variable and its associated options and extra arguments into an array is not handling the case where the first argument is missing correctly.", "query": "wrap arguments options", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lang": "en", "candidates": [{"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines with_optional", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "The method that wraps a variable and its associated options and extra arguments into an array is not handling the case where the first argument is missing correctly.", "query": "wrap arguments options", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lang": "en", "candidates": [{"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=117-140\nread with_optional for detail", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/util.rb lines=74-97\nread thor_classes_in for detail", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=127-150\nread ChildGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ChildGroup", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=78-101\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=62-85\nread validate! for detail", "file": "lib/thor/parser/argument.rb", "symbol": "validate!", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=128-151\nread bar for detail", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=31-54\nread GroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "GroupPlugin", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=384-407\nread diff_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "diff_tool", "line": 384, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=89-112\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=215-238\nread current_is_switch_formatted? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch_formatted?", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=221-244\nread command_exists? for detail", "file": "lib/thor/group.rb", "symbol": "command_exists?", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=78-101\nread long_desc for detail", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=546-569\nread banner for detail", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=153-176\nread _retrieve_class_and_command for detail", "file": "lib/thor/invocation.rb", "symbol": "_retrieve_class_and_command", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=58-81\nread matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "matches", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=160-183\nread dasherized? for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherized?", "line": 160, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "引数として渡されたハッシュに対して、新しい設定オブジェクトを作成して追加している箇所はどこですか?", "query": "build option scope", "file": "lib/thor/base.rb", "symbol": "build_option", "line": 689, "lang": "ja", "candidates": [{"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 22: expect(MyCounter.new([1, 2]).shell).to be_kind_of(Thor::Base.shell)", "file": "spec/shell_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 254: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 4: class Thor", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 13: Help.start(ARGV)", "file": "spec/fixtures/help.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 173: build_option(name, options, scope)", "file": "lib/thor.rb", "symbol": "", "line": 173, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nLine 61: list.sort_by! do |a,b|", "file": "spec/sort_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 243: expect(File.read(file)).to eq(\"__start__\\nREADME\\nmore content\\n__end__\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 238: @switches[arg]", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 22: counter = word.length", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 40: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 222: end", "file": "spec/base_spec.rb", "symbol": "", "line": 222, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 63: it \"invoking the thor task invokes the rake task\" do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 75: # :white", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 18: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 689: def build_option(name, options, scope) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "build_option", "line": 689, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions.rb\nLine 53: desc: \"Run but do not make any changes\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 70: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 233: expect(klass.start(%w(--loud jose))).to eq([\"Hi JOSE\"])", "file": "spec/group_spec.rb", "symbol": "", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 193: create_file(\"doc/config.rb\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 193, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 48: end", "file": "spec/util_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 10: yield", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "引数として渡されたハッシュに対して、新しい設定オブジェクトを作成して追加している箇所はどこですか?", "query": "build option scope", "file": "lib/thor/base.rb", "symbol": "build_option", "line": 689, "lang": "ja", "candidates": [{"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "引数として渡されたハッシュに対して、新しい設定オブジェクトを作成して追加している箇所はどこですか?", "query": "build option scope", "file": "lib/thor/base.rb", "symbol": "build_option", "line": 689, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "引数として渡されたハッシュに対して、新しい設定オブジェクトを作成して追加している箇所はどこですか?", "query": "build option scope", "file": "lib/thor/base.rb", "symbol": "build_option", "line": 689, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=192-215\nread append_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "append_to_file", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=147-170\nread replacement_present? for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=149-172\nread yes? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "yes?", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=449-472\nread command_exists? for detail", "file": "lib/thor.rb", "symbol": "command_exists?", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=350-373\nread check_unknown_options! for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options!", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=689-712\nread build_option for detail", "file": "lib/thor/base.rb", "symbol": "build_option", "line": 689, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=276-299\nread apple for detail", "file": "spec/fixtures/script.thor", "symbol": "apple", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=256-279\nread parse_boolean for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_boolean", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=158-181\nread parse_string for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_string", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/terminal.rb lines=31-54\nread dynamic_width_stty for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_stty", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=203-226\nread method_exclusive for detail", "file": "lib/thor.rb", "symbol": "method_exclusive", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=59-82\nread no_or_skip? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/group_spec.rb lines=223-246\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=167-190\nread installed for detail", "file": "lib/thor/runner.rb", "symbol": "installed", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=59-82\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=880-903\nread no_arg for detail", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "find logic that identifies yaml files containing specific namespaces for a command", "query": "namespaces thor yaml", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lang": "en", "candidates": [{"text": "File: spec/helper.rb\nLine 19: require \"rspec\"", "file": "spec/helper.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 153: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 10: base = MyCounter.new [1, 2], {}, shell: shell", "file": "spec/shell_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 3: $VERBOSE = true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 6: class WrappedPrinter < ColumnPrinter", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 177: return unless switch", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 37: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 37: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 65: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 97: end", "file": "spec/register_spec.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 276: def thorfiles_relevant_to(meth)", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/command.rb\nLine 15: def hidden?", "file": "lib/thor/command.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 11: ret = \"#{name} is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 92: it \"copies and evaluates templates\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 13: BOLD = \"font-weight: bold\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 315: expect{parse(%w[--foo --baz])}.not_to raise_error", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 315, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 91: # options.test_framework?(:rspec) # => options[:test_framework] == :rspec", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 9: def error", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 33: # This method should not be used in general because it's used to deal with", "file": "lib/thor/util.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 325: def subcommand_classes", "file": "lib/thor.rb", "symbol": "", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 15: _, exit_status= Process.wait2(pid)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 26: it \"a command that does not raise a Thor::Error exits with a status of 0\" do", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 143: command = namespace", "file": "lib/thor/util.rb", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find logic that identifies yaml files containing specific namespaces for a command", "query": "namespaces thor yaml", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lang": "en", "candidates": [{"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "find logic that identifies yaml files containing specific namespaces for a command", "query": "namespaces thor yaml", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lang": "en", "candidates": [{"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> group", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> open-uri", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> ../thor", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find logic that identifies yaml files containing specific namespaces for a command", "query": "namespaces thor yaml", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lang": "en", "candidates": [{"text": "Next: read lib/thor/actions/inject_into_file.rb lines=83-106\nread invoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "invoke!", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=285-308\nread run_ruby_script for detail", "file": "lib/thor/actions.rb", "symbol": "run_ruby_script", "line": 285, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=73-96\nread on_conflict_behavior for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "on_conflict_behavior", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/create_file_spec.rb lines=17-40\nread invoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=276-299\nread thorfiles_relevant_to for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=329-352\nread subcommand for detail", "file": "lib/thor.rb", "symbol": "subcommand", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=449-472\nread command_exists? for detail", "file": "lib/thor.rb", "symbol": "command_exists?", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=228-251\nread dispatch for detail", "file": "lib/thor/group.rb", "symbol": "dispatch", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=434-457\nread disable_required_check! for detail", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=109-132\nread sans_backtrace for detail", "file": "lib/thor/command.rb", "symbol": "sans_backtrace", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=163-186\nread method_option for detail", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=77-100\nread to_hash for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "to_hash", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=31-54\nread file for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=213-236\nread globs_for for detail", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I'm working on customizing the ERB template rendering process to ensure output is safely concatenated into a specific variable. Please help me configure the compiler's command hooks to append to this buffer instead of printing directly.", "query": "erb compiler output variable", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "set_eoutvar", "line": 399, "lang": "en", "candidates": [{"text": "File: spec/thor_spec.rb\nLine 467: expect(MyScript.start(%w(with_optional --all))).to eq([nil, {\"all\" => true}, []])", "file": "spec/thor_spec.rb", "symbol": "", "line": 467, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 22: super", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 16: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 9: method_options :forcefully => :boolean", "file": "spec/fixtures/command.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 399: def set_eoutvar(compiler, eoutvar = \"_erbout\")", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "set_eoutvar", "line": 399, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 87: it \"does not change the file if already includes content\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 66: expect(File.exist?(destination_path)).to be true", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 2: require_relative \"line_editor/readline\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 3: class Thor", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 64: def relative_matches", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 6: options[key] = Thor::Option.parse(key, value)", "file": "spec/command_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 14: it \"sets the base value on the shell if an accessor is available\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 25: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 260: desc \"two_args ARG1 ARG2\", \"takes two args\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 260, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 11: def build", "file": "Thorfile", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 149: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 34: WHITE = \"\\e[37m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 122: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 24: data = args.first", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 36: `tput cols 2>/dev/null`.to_i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 308: HELP", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 13: $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), \"..\", \"lib\"))", "file": "spec/helper.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm working on customizing the ERB template rendering process to ensure output is safely concatenated into a specific variable. Please help me configure the compiler's command hooks to append to this buffer instead of printing directly.", "query": "erb compiler output variable", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "set_eoutvar", "line": 399, "lang": "en", "candidates": [{"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "I'm working on customizing the ERB template rendering process to ensure output is safely concatenated into a specific variable. Please help me configure the compiler's command hooks to append to this buffer instead of printing directly.", "query": "erb compiler output variable", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "set_eoutvar", "line": 399, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm working on customizing the ERB template rendering process to ensure output is safely concatenated into a specific variable. Please help me configure the compiler's command hooks to append to this buffer instead of printing directly.", "query": "erb compiler output variable", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "set_eoutvar", "line": 399, "lang": "en", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=172-195\nread validate_enum_value! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "validate_enum_value!", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=28-51\nread add_to_history? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "add_to_history?", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/version.rb lines=1-24\nread Thor for detail", "file": "lib/thor/version.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=80-103\nread ask for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=59-82\nread foo for detail", "file": "spec/fixtures/script.thor", "symbol": "foo", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=1-24\nread Thor for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=351-374\nread no_relations for detail", "file": "spec/fixtures/script.thor", "symbol": "no_relations", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=67-90\nread valid_type? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=221-244\nread command_exists? for detail", "file": "lib/thor/group.rb", "symbol": "command_exists?", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=399-422\nread set_eoutvar for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "set_eoutvar", "line": 399, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/argument.rb lines=52-75\nread enum_to_s for detail", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=103-126\nread files for detail", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=127-150\nread J for detail", "file": "spec/fixtures/invoke.thor", "symbol": "J", "line": 127, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "테스트 실패 시 프로세스가 강제로 종료되지 않도록 설정되어 있는지 확인해 주세요.", "query": "exit on failure", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lang": "ko", "candidates": [{"text": "File: spec/subcommand_spec.rb\nLine 65: it \"shows subcommand name and method name\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 160: nil", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 343: end", "file": "spec/base_spec.rb", "symbol": "", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 128: @source_paths ||= self.class.source_paths_for_search", "file": "lib/thor/actions.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 12: expect(capture(:stdout) { Thor::Sandbox::EncodingWithUtf8.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 45: super", "file": "lib/thor/shell.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 67: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 156: elsif self.class.all_commands[name.to_s]", "file": "lib/thor/invocation.rb", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 88: before do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 231: def self.exit_on_failure?", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 41: @diff_lcs_loaded = begin", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 36: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 36: it \"returns usage for string types\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 33: it \"escapes HTML content when using the default colors\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 7: def print(message)", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 83: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 144: super", "file": "lib/thor/command.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 8: puts \"Invoked!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 1: # frozen_string_literal: true", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 222: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 222, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 10: # data:: the data to append to the file.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 61: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 1: require \"helper\"", "file": "spec/shell_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "테스트 실패 시 프로세스가 강제로 종료되지 않도록 설정되어 있는지 확인해 주세요.", "query": "exit on failure", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nsibling in spec", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\ndefines exit_on_failure?", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nsibling in spec", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nsibling in spec", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nsibling in spec", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nsibling in spec", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nsibling in spec", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "테스트 실패 시 프로세스가 강제로 종료되지 않도록 설정되어 있는지 확인해 주세요.", "query": "exit on failure", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "테스트 실패 시 프로세스가 강제로 종료되지 않도록 설정되어 있는지 확인해 주세요.", "query": "exit on failure", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lang": "ko", "candidates": [{"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=103-126\nread convert_encoded_instructions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "convert_encoded_instructions", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=89-112\nread action for detail", "file": "lib/thor/actions.rb", "symbol": "action", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=231-254\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=276-299\nread _invoke_for_class_method for detail", "file": "lib/thor/group.rb", "symbol": "_invoke_for_class_method", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=105-128\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 105, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/help.thor lines=7-30\nread bugs for detail", "file": "spec/fixtures/help.thor", "symbol": "bugs", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=57-80\nread merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=97-120\nread parse_hash for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_hash", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=199-222\nread printable_commands for detail", "file": "lib/thor/group.rb", "symbol": "printable_commands", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=311-334\nread MyOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyOptionScript", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=537-560\nread no_commands_context for detail", "file": "lib/thor/base.rb", "symbol": "no_commands_context", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=83-106\nread windows? for detail", "file": "spec/helper.rb", "symbol": "windows?", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=177-200\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 177, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=258-281\nread command_help for detail", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=291-314\nread gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=1-24\nread Enum for detail", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=86-109\nread force_or_skip_or_conflict for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_or_skip_or_conflict", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=6-29\nread WrappedPrinter for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "WrappedPrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=9-32\nread HTML for detail", "file": "lib/thor/shell/html.rb", "symbol": "HTML", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "这段代码是如何根据参数类型生成默认提示文本的?", "query": "argument default banner", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lang": "zh", "candidates": [{"text": "File: lib/thor/parser/options.rb\nLine 261: elsif [\"false\", \"FALSE\", \"f\", \"F\", false].include?(peek)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 166: def _parse_initialization_options(args, opts, config) #:nodoc:", "file": "lib/thor/invocation.rb", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 8: def encoding", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 20: #", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 22: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 71: def default_banner", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Thorfile\nLine 23: end", "file": "Thorfile", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 114: MyClassOptionScript.start %w[mix --one --three]", "file": "spec/base_spec.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 87: if force", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 216: def apply(path, config = {})", "file": "lib/thor/actions.rb", "symbol": "", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 280: expect(MyChildScript.all_commands.keys).to include(\"foo\")", "file": "spec/base_spec.rb", "symbol": "", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 9: true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 45: #", "file": "lib/thor/invocation.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 134: it \"executes the block given to show file content\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 17: array.each_with_index do |value, index|", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 61: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 3: class ExitStatus < Thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 16: #", "file": "lib/thor/error.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 51: # description", "file": "lib/thor.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 43: FileUtils.mkdir_p(File.dirname(destination))", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 27: def dynamic_width", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 25: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 128: expect(out.chomp).to eq(\"\\e[1m\\e[34mWow! This still works?\\e[0m\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "这段代码是如何根据参数类型生成默认提示文本的?", "query": "argument default banner", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lang": "zh", "candidates": [{"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\ndefines default_banner", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "这段代码是如何根据参数类型生成默认提示文本的?", "query": "argument default banner", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "这段代码是如何根据参数类型生成默认提示文本的?", "query": "argument default banner", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=83-106\nread convert_key for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "convert_key", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=661-684\nread sort_commands! for detail", "file": "lib/thor.rb", "symbol": "sort_commands!", "line": 661, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=10-33\nread create_file for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=102-125\nread invoke for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=45-68\nread key? for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "key?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/enum.thor lines=6-29\nread snack for detail", "file": "spec/fixtures/enum.thor", "symbol": "snack", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=93-116\nread method_missing for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "method_missing", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=15-38\nread parse for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "parse", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=619-642\nread handle_argument_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_argument_error", "line": 619, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=43-66\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=40-63\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=216-239\nread apply for detail", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=2-25\nread Argument for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=71-94\nread default_banner for detail", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "Es scheint ein Problem bei der Definition von Befehlsbeschreibungen zu geben: Wenn man versucht, die Hilfe-Texte für einen bestehenden Befehl zu aktualisieren, werden die Werte nicht korrekt auf das Zielobjekt angewendet, anstatt die internen Zustände der Instanz zu setzen.", "query": "command description usage", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lang": "de", "candidates": [{"text": "File: spec/group_spec.rb\nLine 108: expect(content).to match(/\\[--unused\\]/)", "file": "spec/group_spec.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 51: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 27: exec \"bundle exec rspec spec\"", "file": "Thorfile", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 50: config = args.last.is_a?(Hash) ? args.pop : {}", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 58: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 1: require \"thor\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 19: class_option :third, :type => :numeric, :desc => \"The third argument\", :default => 3,", "file": "spec/fixtures/group.thor", "symbol": "", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nLine 14: desc \"Say it's cool\"", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 23: desc \"zoo\", \"zoo around\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 74: protected", "file": "lib/thor/command.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 54: def desc(usage, description, options = {})", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nLine 188: group_options[human_name] ||= []", "file": "lib/thor/group.rb", "symbol": "", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 30: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 62: expect(argument(:foo, {", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 27: describe \"#sort - simple override\" do", "file": "spec/sort_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 186: revoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 1: # module: random", "file": "spec/fixtures/command.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 4: desc \"snack\"", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nLine 4: desc \"print_opt\", \"My method\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 262: # String", "file": "lib/thor/util.rb", "symbol": "", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 9: def initialize(stdout, options = {})", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 10: desc \"a\", \"First Command\"", "file": "spec/sort_spec.rb", "symbol": "", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 95: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Es scheint ein Problem bei der Definition von Befehlsbeschreibungen zu geben: Wenn man versucht, die Hilfe-Texte für einen bestehenden Befehl zu aktualisieren, werden die Werte nicht korrekt auf das Zielobjekt angewendet, anstatt die internen Zustände der Instanz zu setzen.", "query": "command description usage", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lang": "de", "candidates": [{"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Es scheint ein Problem bei der Definition von Befehlsbeschreibungen zu geben: Wenn man versucht, die Hilfe-Texte für einen bestehenden Befehl zu aktualisieren, werden die Werte nicht korrekt auf das Zielobjekt angewendet, anstatt die internen Zustände der Instanz zu setzen.", "query": "command description usage", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lang": "de", "candidates": [{"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Es scheint ein Problem bei der Definition von Befehlsbeschreibungen zu geben: Wenn man versucht, die Hilfe-Texte für einen bestehenden Befehl zu aktualisieren, werden die Werte nicht korrekt auf das Zielobjekt angewendet, anstatt die internen Zustände der Instanz zu setzen.", "query": "command description usage", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lang": "de", "candidates": [{"text": "Next: read lib/thor/util.rb lines=90-113\nread snake_case for detail", "file": "lib/thor/util.rb", "symbol": "snake_case", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=147-170\nread replacement_present? for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=446-469\nread remove_class_option for detail", "file": "lib/thor/base.rb", "symbol": "remove_class_option", "line": 446, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=13-36\nread invoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=156-179\nread no? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "no?", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=117-140\nread template for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=99-122\nread aliases_for_usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "aliases_for_usage", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=133-156\nread invoke_all for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_all", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=194-217\nread thor_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "thor_yaml", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=78-101\nread long_desc for detail", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "LineEditor", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=83-106\nread invoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "invoke!", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=43-66\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=21-44\nread base for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "base", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=273-296\nread lookup_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "lookup_color", "line": 273, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "숫자 값인지 확인하고 정수나 실수로 변환해서 반환하는 로직 어디 있어?", "query": "parse numeric value", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_numeric", "line": 139, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/command.thor\nLine 3: class Amazing < Thor", "file": "spec/fixtures/command.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 170: end.not_to raise_error", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 44: formatted = \"#{ancestor_name} \".dup # add space", "file": "lib/thor/command.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 16: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 808: # of before and after by block evaluation.", "file": "lib/thor/base.rb", "symbol": "", "line": 808, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 250: expect(runner).to receive(:file_name).and_return(\"rdoc\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 250, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 121: def handle_no_method_error?(instance, error, caller)", "file": "lib/thor/command.rb", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 128: value = #{name.inspect} if TrueClass === value", "file": "lib/thor/group.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 15: # README", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 55: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 34: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 5: class_option \"fruit\", :aliases => \"-f\", :type => :string, :enum => %w(apple banana)", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 35: end", "file": "spec/util_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 17: def create_link(destination, *args)", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 84: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 24: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 56: type = case value", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 620: name = [command.ancestor_name, command.name].compact.join(\" \")", "file": "lib/thor/base.rb", "symbol": "", "line": 620, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 63: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 54: def initialize(text)", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 38: content = capture(:stdout) { Thor::Runner.start(%w(help my_counter)) }", "file": "spec/runner_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 10: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 139: def parse_numeric(name)", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_numeric", "line": 139, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 26: # Lazy-load io/console since it is gem-ified as of 2.3", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "숫자 값인지 확인하고 정수나 실수로 변환해서 반환하는 로직 어디 있어?", "query": "parse numeric value", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_numeric", "line": 139, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "숫자 값인지 확인하고 정수나 실수로 변환해서 반환하는 로직 어디 있어?", "query": "parse numeric value", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_numeric", "line": 139, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/util.rb lines=203-226\nread thor_root_glob for detail", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=21-44\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=173-196\nread check_unknown_options for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=14-37\nread print for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=153-176\nread replace! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replace!", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=77-100\nread _shared_configuration for detail", "file": "lib/thor/shell.rb", "symbol": "_shared_configuration", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=264-287\nread escape_globs for detail", "file": "lib/thor/util.rb", "symbol": "escape_globs", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=85-108\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=58-81\nread matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "matches", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=4-27\nread Thor for detail", "file": "lib/thor/line_editor.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=139-162\nread parse_numeric for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_numeric", "line": 139, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "The mechanism used to increment the nesting level when entering a new scope is not functioning correctly, causing incorrect depth tracking.", "query": "increment nesting depth", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lang": "en", "candidates": [{"text": "File: spec/script_exit_status_spec.rb\nLine 4: lib_path= \"#{gem_dir}/lib\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 665: item.push(option.description ? \"# #{option.description}\" : \"\")", "file": "lib/thor/base.rb", "symbol": "", "line": 665, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 79: def can_display_colors?", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 302: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 302, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 198: on_red = shell.set_color \"hi!\", :white, :on_red", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 3: describe Thor::Command do", "file": "spec/command_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 16: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 77: expect(@content).to match(/Options/)", "file": "spec/group_spec.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 16: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 49: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 176: @destination_stack.push File.expand_path(dir, destination_root)", "file": "lib/thor/actions.rb", "symbol": "", "line": 176, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 83: end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 78: end", "file": "spec/helper.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 17: if description", "file": "lib/thor/group.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 5: describe \"file's encoding\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 79: when :hash", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 21: def push", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/util.rb\nLine 212: #", "file": "lib/thor/util.rb", "symbol": "", "line": 212, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 56: desc \"child1\", \"child1 description\"", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 20: desc \"release\", \"Create tag v#{Thor::VERSION} and build and push thor-#{Thor::VERSION}.gem to Rubygems\"", "file": "Thorfile", "symbol": "", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 39: it \"uses padding for inside block outputs\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 44: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 60: it \"and default arguments returns default values\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "The mechanism used to increment the nesting level when entering a new scope is not functioning correctly, causing incorrect depth tracking.", "query": "increment nesting depth", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lang": "en", "candidates": [{"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\ndefines push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "The mechanism used to increment the nesting level when entering a new scope is not functioning correctly, causing incorrect depth tracking.", "query": "increment nesting depth", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lang": "en", "candidates": [{"text": "Next: read lib/thor/runner.rb lines=190-213\nread thor_root for detail", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=473-496\nread stop_on_unknown_option for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option", "line": 473, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=246-269\nread method_at_least_one for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=686-709\nread tree for detail", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=55-78\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=2-25\nread NestedContext for detail", "file": "lib/thor/nested_context.rb", "symbol": "NestedContext", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=168-191\nread dasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherize", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=6-29\nread snack for detail", "file": "spec/fixtures/enum.thor", "symbol": "snack", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=79-102\nread can_display_colors? for detail", "file": "lib/thor/shell/html.rb", "symbol": "can_display_colors?", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=501-524\nread remove_command for detail", "file": "lib/thor/base.rb", "symbol": "remove_command", "line": 501, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=142-165\nread update for detail", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=40-63\nread invoke! for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=709-732\nread find_and_refresh_command for detail", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=216-239\nread apply for detail", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=64-87\nread invoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/nested_context.rb lines=15-38\nread entered? for detail", "file": "lib/thor/nested_context.rb", "symbol": "entered?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=256-279\nread parse_boolean for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_boolean", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=7-30\nread enter for detail", "file": "lib/thor/nested_context.rb", "symbol": "enter", "line": 7, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Verifica si el editor de línea básico está disponible en el entorno actual. Esto es para asegurar que las funcionalidades de edición de comandos estén habilitadas antes de intentar usarlas.", "query": "line editor available", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lang": "es", "candidates": [{"text": "File: lib/thor/parser/argument.rb\nLine 60: protected", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 15: # t.spec_opts = ['--options', './.rspec']", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 71: \"#{path}/\"", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 4: desc \"print_opt\", \"My method\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 171: elsif ENV[\"USERPROFILE\"]", "file": "lib/thor/util.rb", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 6: def self.available?", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/encoding_spec.rb\nLine 12: expect(capture(:stdout) { Thor::Sandbox::EncodingWithUtf8.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 31: say \" #{diff.old_element.chomp}\", nil, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 11: load_thorfile(\"encoding_with_utf8.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 118: replace!(regexp, content, true)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 354: #", "file": "lib/thor/base.rb", "symbol": "", "line": 354, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 572: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 572, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 61: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 1: require_relative \"basic\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 57: expect { parse }.to raise_error(Thor::RequiredArgumentMissingError, \"No value provided for required arguments 'string', 'numeric'\")", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 34: # #=> Option foo without default value and type numeric", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 8: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 12: def define", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 332: %w(--force -f --skip -s).each { |i| options.delete(i) }", "file": "lib/thor/actions.rb", "symbol": "", "line": 332, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 36: @data = data", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 628: describe \"#uncomment_lines\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 628, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 235: opts = given_opts || opts", "file": "lib/thor/group.rb", "symbol": "", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 204: register_options_relation_for(:method_options,", "file": "lib/thor.rb", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Verifica si el editor de línea básico está disponible en el entorno actual. Esto es para asegurar que las funcionalidades de edición de comandos estén habilitadas antes de intentar usarlas.", "query": "line editor available", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lang": "es", "candidates": [{"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\ndefines available?", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nsibling in lib/thor/line_editor", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Verifica si el editor de línea básico está disponible en el entorno actual. Esto es para asegurar que las funcionalidades de edición de comandos estén habilitadas antes de intentar usarlas.", "query": "line editor available", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lang": "es", "candidates": [{"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Verifica si el editor de línea básico está disponible en el entorno actual. Esto es para asegurar que las funcionalidades de edición de comandos estén habilitadas antes de intentar usarlas.", "query": "line editor available", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lang": "es", "candidates": [{"text": "Next: read lib/thor/line_editor/basic.rb lines=6-29\nread available? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=15-38\nread readline for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "readline", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=147-170\nread replacement_present? for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=205-228\nread save_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "save_yaml", "line": 205, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=103-126\nread truncate for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "truncate", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=8-31\nread action for detail", "file": "spec/actions_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=277-300\nread rotten_apple for detail", "file": "spec/fixtures/script.thor", "symbol": "rotten_apple", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "LineEditor", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=60-83\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=96-119\nread print_border_separator for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print_border_separator", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=639-662\nread class_options_help for detail", "file": "lib/thor/base.rb", "symbol": "class_options_help", "line": 639, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=329-352\nread subcommand for detail", "file": "lib/thor.rb", "symbol": "subcommand", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=10-33\nread initialize for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "initialize", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=622-645\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=345-368\nread only_one for detail", "file": "spec/fixtures/script.thor", "symbol": "only_one", "line": 345, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Wie prüfe ich in den Tests, ob eine Datei an einem bestimmten Ort existiert und exakt dem Quellinhalt entspricht?", "query": "file identical exist", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lang": "de", "candidates": [{"text": "File: spec/fixtures/command.thor\nLine 1: # module: random", "file": "spec/fixtures/command.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 154: ARGV.replace []", "file": "spec/runner_spec.rb", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 62: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 4: require \"digest/sha2\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 18: ExitStatus.start(ARGV)", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 67: # In the example above, invoking \"foo\" will invoke \"b:hello\" just once, even", "file": "lib/thor/invocation.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 49: else", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 50: invoke! \"doc\"", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 12: def exists_and_identical?(source, destination)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor.rb\nLine 649: def subcommand_help(cmd)", "file": "lib/thor.rb", "symbol": "", "line": 649, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 48: # Set the terminal's background ANSI color to cyan.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 17: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 12: it \"is absent when option is not specified\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 31: def dynamic_width_stty", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 126: # ==== Returns", "file": "lib/thor/base.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 185: class Barn < Thor", "file": "spec/fixtures/script.thor", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 6: before do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 6: # destination:: the relative path to the destination root.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 47: expect(File.symlink?(destination_path)).to be true", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 223: expect(runner.destination_root).to eq(file)", "file": "spec/actions_spec.rb", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 16: counter = 0 if word.include? \"\\n\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 69: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Wie prüfe ich in den Tests, ob eine Datei an einem bestimmten Ort existiert und exakt dem Quellinhalt entspricht?", "query": "file identical exist", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lang": "de", "candidates": [{"text": "File: spec/actions/directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\ndefines exists_and_identical?", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Wie prüfe ich in den Tests, ob eine Datei an einem bestimmten Ort existiert und exakt dem Quellinhalt entspricht?", "query": "file identical exist", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lang": "de", "candidates": [{"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Wie prüfe ich in den Tests, ob eine Datei an einem bestimmten Ort existiert und exakt dem Quellinhalt entspricht?", "query": "file identical exist", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lang": "de", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=105-128\nread wrong_arity for detail", "file": "spec/fixtures/group.thor", "symbol": "wrong_arity", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=59-82\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=12-35\nread exists_and_identical? for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=304-327\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 304, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=478-501\nread disable_required_check for detail", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=567-590\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 567, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=145-168\nread register_klass_file for detail", "file": "lib/thor/base.rb", "symbol": "register_klass_file", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=248-271\nread run for detail", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=83-106\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=168-191\nread user_home for detail", "file": "lib/thor/util.rb", "symbol": "user_home", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=8-31\nread action for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "action", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=77-100\nread to_hash for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "to_hash", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=54-77\nread initialize for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=31-54\nread file for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=50-73\nread PathCompletion for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "PathCompletion", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=224-247\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "runner", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/subcommand.thor lines=5-28\nread print_opt for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "print_opt", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=367-390\nread concat for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "concat", "line": 367, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=583-606\nread start for detail", "file": "lib/thor/base.rb", "symbol": "start", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=207-230\nread file_collision for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision", "line": 207, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "prüfen ob ein thor befehl existiert", "query": "command exists", "file": "lib/thor/group.rb", "symbol": "command_exists?", "line": 221, "lang": "de", "candidates": [{"text": "File: lib/thor/parser/options.rb\nLine 84: def unshift(arg, is_value: false)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 63: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 4: class Thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 221: def command_exists?(command_name) #:nodoc:", "file": "lib/thor/group.rb", "symbol": "command_exists?", "line": 221, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor.rb\nLine 670: desc \"help [COMMAND]\", \"Describe available commands or one specific command\"", "file": "lib/thor.rb", "symbol": "", "line": 670, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 21: def push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 86: case file_source", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 11: def a; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 34: # Set the terminal's background HTML color to red.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 5: module LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 186: revoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 73: invoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 13: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 107: expect(content).to match(/Defined options:/)", "file": "spec/group_spec.rb", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 227: it \"updates existing thor files\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 11: paras.map! do |unwrapped|", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 24: data = args.first", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 8: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 45: when Array, String, Hash", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 120: else", "file": "lib/thor/actions.rb", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 11: class_option \"opt\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 140: :string", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "prüfen ob ein thor befehl existiert", "query": "command exists", "file": "lib/thor/group.rb", "symbol": "command_exists?", "line": 221, "lang": "de", "candidates": [{"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "prüfen ob ein thor befehl existiert", "query": "command exists", "file": "lib/thor/group.rb", "symbol": "command_exists?", "line": 221, "lang": "de", "candidates": [{"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "prüfen ob ein thor befehl existiert", "query": "command exists", "file": "lib/thor/group.rb", "symbol": "command_exists?", "line": 221, "lang": "de", "candidates": [{"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=460-483\nread method_exclusive_option_names for detail", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=43-66\nread indent for detail", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=156-179\nread no? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "no?", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=24-47\nread find_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_by_namespace", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=23-46\nread rake_classes for detail", "file": "lib/thor/rake_compat.rb", "symbol": "rake_classes", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=221-244\nread command_exists? for detail", "file": "lib/thor/group.rb", "symbol": "command_exists?", "line": 221, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=251-274\nread error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "error", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=78-101\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=109-132\nread sans_backtrace for detail", "file": "lib/thor/command.rb", "symbol": "sans_backtrace", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=104-127\nread can_display_colors? for detail", "file": "lib/thor/shell/color.rb", "symbol": "can_display_colors?", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=104-127\nread AtLeastOneRequiredArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "AtLeastOneRequiredArgumentError", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=45-68\nread invocation_blocks for detail", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=55-78\nread inherited for detail", "file": "spec/fixtures/group.thor", "symbol": "inherited", "line": 55, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Estoy revisando cómo se validan los parámetros no reconocidos durante el análisis de la sintaxis. ¿Podrías mostrarme el método que delega la comprobación de opciones desconocidas al objeto interno?", "query": "check unknown", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lang": "es", "candidates": [{"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 61: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 39: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 111: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 7: # hash[:foo] #=> 'bar'", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 181: expect(colorless).to eq(\"hi!\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 76: if options[:borders]", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 13: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 202: it \"sets color when the NO_COLOR environment variable is ignored for being an empty string\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 43: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).not_to match(/help/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 62: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 857: option \"bar\", type: :numeric, default: \"foo\", check_default_type: false", "file": "spec/thor_spec.rb", "symbol": "", "line": 857, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 36: list.sort!", "file": "spec/sort_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 20: def check_unknown!", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 111: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 42: expect(action(:chmod, \"foo\", 0755)).to eq(\" chmod foo\\n\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 71: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 278: elsif no_or_skip?(switch)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 278, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 199: end", "file": "spec/util_spec.rb", "symbol": "", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 164: describe \"#get\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 35: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 1: # encoding: UTF-8", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 68: def absolute_matches", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 310: (all ? all_commands : commands).map do |_, command|", "file": "lib/thor.rb", "symbol": "", "line": 310, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estoy revisando cómo se validan los parámetros no reconocidos durante el análisis de la sintaxis. ¿Podrías mostrarme el método que delega la comprobación de opciones desconocidas al objeto interno?", "query": "check unknown", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lang": "es", "candidates": [{"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\ndefines check_unknown!", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nsibling in spec/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nsibling in spec/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nsibling in spec/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Estoy revisando cómo se validan los parámetros no reconocidos durante el análisis de la sintaxis. ¿Podrías mostrarme el método que delega la comprobación de opciones desconocidas al objeto interno?", "query": "check unknown", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lang": "es", "candidates": [{"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estoy revisando cómo se validan los parámetros no reconocidos durante el análisis de la sintaxis. ¿Podrías mostrarme el método que delega la comprobación de opciones desconocidas al objeto interno?", "query": "check unknown", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lang": "es", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=76-99\nread call_myself_with_wrong_arity for detail", "file": "spec/fixtures/script.thor", "symbol": "call_myself_with_wrong_arity", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=458-481\nread group for detail", "file": "lib/thor/base.rb", "symbol": "group", "line": 458, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=24-47\nread remaining for detail", "file": "spec/parser/options_spec.rb", "symbol": "remaining", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/util_spec.rb lines=4-27\nread clear_user_home! for detail", "file": "spec/util_spec.rb", "symbol": "clear_user_home!", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=8-31\nread initialize for detail", "file": "spec/rake_compat_spec.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/html.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=289-312\nread display_klasses for detail", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=121-144\nread handle_no_method_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_no_method_error?", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=248-271\nread parsing_options? for detail", "file": "lib/thor/parser/options.rb", "symbol": "parsing_options?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/options_spec.rb", "symbol": "create", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=31-54\nread file for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=192-215\nread thor_root for detail", "file": "lib/thor/util.rb", "symbol": "thor_root", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=89-112\nread default for detail", "file": "spec/register_spec.rb", "symbol": "default", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=16-39\nread parse for detail", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=131-154\nread validate_default_type! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate_default_type!", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=6-29\nread show_diff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "show_diff", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "Estoy revisando las pruebas para la lógica de registro. ¿Podrías mostrarme qué método imprime ese mensaje sobre las nueces?", "query": "puts \"I love nuts\"", "file": "spec/register_spec.rb", "symbol": "squirrel", "line": 26, "lang": "es", "candidates": [{"text": "File: lib/thor/shell.rb\nLine 9: # it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 281: end", "file": "spec/base_spec.rb", "symbol": "", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 347: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 347, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 14: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 290: # Run a thor command. A hash of options can be given and it's converted to", "file": "lib/thor/actions.rb", "symbol": "", "line": 290, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 59: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 71: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 30: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 369: end", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 369, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 26: def squirrel", "file": "spec/register_spec.rb", "symbol": "squirrel", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 2: module LineEditor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 248: end", "file": "lib/thor/util.rb", "symbol": "", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 83: attr_reader :switches, :unknown", "file": "lib/thor/error.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 58: error_messages << check_for_spec_defs_with_single_quotes(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 15: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 8: desc \"describe NAME\", \"say that someone is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 5: require 'thor'", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 47: expect(capture(:stdout) { TreeApp.start([\"help\"]) }).to match(/tree.*Print a tree of all available commands/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 57: private", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 23: when \"-\"", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 132: @method_options", "file": "lib/thor.rb", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 110: expect(Thor::Util.find_class_and_command_by_namespace(\"test\")).to eq([Scripts::MyDefaults, \"test\"])", "file": "spec/util_spec.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 45: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estoy revisando las pruebas para la lógica de registro. ¿Podrías mostrarme qué método imprime ese mensaje sobre las nueces?", "query": "puts \"I love nuts\"", "file": "spec/register_spec.rb", "symbol": "squirrel", "line": 26, "lang": "es", "candidates": [{"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nsibling in spec", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nsibling in spec", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nsibling in spec", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nsibling in spec", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\ndefines squirrel", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Estoy revisando las pruebas para la lógica de registro. ¿Podrías mostrarme qué método imprime ese mensaje sobre las nueces?", "query": "puts \"I love nuts\"", "file": "spec/register_spec.rb", "symbol": "squirrel", "line": 26, "lang": "es", "candidates": [{"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estoy revisando las pruebas para la lógica de registro. ¿Podrías mostrarme qué método imprime ese mensaje sobre las nueces?", "query": "puts \"I love nuts\"", "file": "spec/register_spec.rb", "symbol": "squirrel", "line": 26, "lang": "es", "candidates": [{"text": "Next: read spec/fixtures/exit_status.thor lines=14-37\nread ok for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=72-95\nread shift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "shift", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=216-239\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=200-223\nread in_root for detail", "file": "lib/thor/actions.rb", "symbol": "in_root", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=26-49\nread squirrel for detail", "file": "spec/register_spec.rb", "symbol": "squirrel", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=326-349\nread unix? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "unix?", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=248-271\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=115-138\nread say_error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_error", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=3-26\nread ExitStatus for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ExitStatus", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=40-63\nread animal for detail", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=84-107\nread current_is_value? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=246-269\nread method_at_least_one for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=607-630\nread public_command for detail", "file": "lib/thor/base.rb", "symbol": "public_command", "line": 607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=43-66\nread indent for detail", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=613-636\nread normalize_command_name for detail", "file": "lib/thor.rb", "symbol": "normalize_command_name", "line": 613, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I'm trying to figure out how the parser handles single-character flags and their mapping to long-form names. How does the logic determine if a provided string is a shorthand alias and then transform it into a standard dash-separated format?", "query": "normalize switch tr", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lang": "en", "candidates": [{"text": "File: lib/thor/shell.rb\nLine 31: # Add shell to initialize config values.", "file": "lib/thor/shell.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 10: # ==== Parameters", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 579: #", "file": "lib/thor/base.rb", "symbol": "", "line": 579, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 6: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 2: require_relative \"terminal\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 13: Test.start(ARGV)", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 189: shell.say(\"Running...\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 59: @formats << if options[:borders]", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 61: invoke_with_conflict_check do", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 95: class RequiredArgumentMissingError < InvocationError", "file": "lib/thor/error.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 31: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/├─ command2/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 5: require 'thor'", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 28: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub print_opt --help)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 30: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 31: def except(*keys)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 54: error_messages = []", "file": "spec/quality_spec.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 36: it \"returns usage for string types\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 244: def normalize_switch(arg)", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/invoke.thor\nLine 23: def four", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 14: def print(array)", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 56: `git ls-files`.split(\"\\n\").each do |filename|", "file": "spec/quality_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 38: #", "file": "lib/thor/group.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 40: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 29: # Hack. Make rakefile point to invoker, so rdoc task is generated properly.", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm trying to figure out how the parser handles single-character flags and their mapping to long-form names. How does the logic determine if a provided string is a shorthand alias and then transform it into a standard dash-separated format?", "query": "normalize switch tr", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lang": "en", "candidates": [{"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm trying to figure out how the parser handles single-character flags and their mapping to long-form names. How does the logic determine if a provided string is a shorthand alias and then transform it into a standard dash-separated format?", "query": "normalize switch tr", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lang": "en", "candidates": [{"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=114-137\nread handle_argument_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_argument_error?", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=37-60\nread fetch for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "fetch", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=68-91\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=750-773\nread from_superclass for detail", "file": "lib/thor/base.rb", "symbol": "from_superclass", "line": 750, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=43-66\nread ClassOptionGroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "ClassOptionGroupPlugin", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=142-165\nread update for detail", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=117-140\nread template for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=166-189\nread _parse_initialization_options for detail", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=4-27\nread command for detail", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=26-49\nread insert_into_file! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=294-317\nread arguments for detail", "file": "lib/thor/base.rb", "symbol": "arguments", "line": 294, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=403-426\nread class_exclusive_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Wie werden die vollständigen Pfade für die Dateimuster aufgelöst und Verzeichnisse markiert?", "query": "glob pattern paths", "file": "lib/thor/line_editor/readline.rb", "symbol": "absolute_matches", "line": 68, "lang": "de", "candidates": [{"text": "File: spec/command_spec.rb\nLine 7: end", "file": "spec/command_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 10: @options = options", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 72: hash_options = local_options", "file": "lib/thor/base.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 68: def absolute_matches", "file": "lib/thor/line_editor/readline.rb", "symbol": "absolute_matches", "line": 68, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/html_spec.rb\nLine 22: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 10: it \"respects explicit UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 130: end", "file": "spec/group_spec.rb", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 38: end", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 408: #", "file": "lib/thor.rb", "symbol": "", "line": 408, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 172: it \"shows option's description\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 23: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 69: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 138: it \"yields a block\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 13: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 61: create string: \"name\", numeric: 13", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 8: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 12: def package_name(name, _ = {})", "file": "lib/thor.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 7: class Test < Thor", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 49: else", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 300: # class_options :foo => false, :bar => :required, :baz => :string", "file": "lib/thor/base.rb", "symbol": "", "line": 300, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 50: def foo(name)", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 5: SOME_STRING = \"Some ������\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Wie werden die vollständigen Pfade für die Dateimuster aufgelöst und Verzeichnisse markiert?", "query": "glob pattern paths", "file": "lib/thor/line_editor/readline.rb", "symbol": "absolute_matches", "line": 68, "lang": "de", "candidates": [{"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\ndefines absolute_matches", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nsibling in lib/thor/line_editor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Wie werden die vollständigen Pfade für die Dateimuster aufgelöst und Verzeichnisse markiert?", "query": "glob pattern paths", "file": "lib/thor/line_editor/readline.rb", "symbol": "absolute_matches", "line": 68, "lang": "de", "candidates": [{"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Wie werden die vollständigen Pfade für die Dateimuster aufgelöst und Verzeichnisse markiert?", "query": "glob pattern paths", "file": "lib/thor/line_editor/readline.rb", "symbol": "absolute_matches", "line": 68, "lang": "de", "candidates": [{"text": "Next: read spec/thor_spec.rb lines=297-320\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 297, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=145-168\nread chmod for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "chmod", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=68-91\nread absolute_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "absolute_matches", "line": 68, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=483-506\nread all_commands for detail", "file": "lib/thor/base.rb", "symbol": "all_commands", "line": 483, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=69-92\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=38-61\nread source_paths_for_search for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths_for_search", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=71-94\nread default_banner for detail", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=59-82\nread foo for detail", "file": "spec/fixtures/script.thor", "symbol": "foo", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=157-180\nread MyChildScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyChildScript", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=310-333\nread display_commands for detail", "file": "lib/thor/runner.rb", "symbol": "display_commands", "line": 310, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=60-83\nread invoke! for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/terminal.rb lines=3-26\nread Terminal for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Terminal", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=4-27\nread Thor for detail", "file": "lib/thor/line_editor.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=269-292\nread multiple_usages for detail", "file": "spec/fixtures/script.thor", "symbol": "multiple_usages", "line": 269, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Estou tentando entender como funciona a herança de comandos e opções em scripts que estendem outros scripts Thor. Onde posso encontrar um exemplo de uma classe que remove comandos do pai e redefine opções de métodos específicos?", "query": "thor inheritance options", "file": "spec/fixtures/script.thor", "symbol": "MyChildScript", "line": 157, "lang": "pt", "candidates": [{"text": "File: spec/actions/create_link_spec.rb\nLine 73: invoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 137: # mode:: the file mode", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 5: WARNINGS = {unchanged_no_flag: \"File unchanged! Either the supplied flag value not found or the content has already been inserted!\"}", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 24: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 157: class MyChildScript < MyScript", "file": "spec/fixtures/script.thor", "symbol": "MyChildScript", "line": 157, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/option.rb\nLine 138: :numeric", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 21: expect(BrokenCounter.start(%w(1 2 --third 3))).to eq([nil, 2, 3, false, 5, nil])", "file": "spec/group_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 8: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 5: class Thor", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 38: return true if defined?(Diff::LCS)", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 52: it \"uses double-quotes consistently in specs\" do", "file": "spec/quality_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 230: expect(MyChildScript.group).to eq(\"script\")", "file": "spec/base_spec.rb", "symbol": "", "line": 230, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 16: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 69: Dir[glob_pattern].map do |path|", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 85: revoke!", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 32: rake_classes << base", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 52: _, options = MyChildScript.start(%w(animal horse --other=fish))", "file": "spec/thor_spec.rb", "symbol": "", "line": 52, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 383: #", "file": "lib/thor/base.rb", "symbol": "", "line": 383, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 200: end", "file": "spec/register_spec.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 35: # Check if Diff::LCS is loaded. If it is, use it to create pretty output", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 27: alias_method :add_file, :create_file", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estou tentando entender como funciona a herança de comandos e opções em scripts que estendem outros scripts Thor. Onde posso encontrar um exemplo de uma classe que remove comandos do pai e redefine opções de métodos específicos?", "query": "thor inheritance options", "file": "spec/fixtures/script.thor", "symbol": "MyChildScript", "line": 157, "lang": "pt", "candidates": [{"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines MyChildScript", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estou tentando entender como funciona a herança de comandos e opções em scripts que estendem outros scripts Thor. Onde posso encontrar um exemplo de uma classe que remove comandos do pai e redefine opções de métodos específicos?", "query": "thor inheritance options", "file": "spec/fixtures/script.thor", "symbol": "MyChildScript", "line": 157, "lang": "pt", "candidates": [{"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=69-92\nread revoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "revoke!", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=234-257\nread switch_option for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch_option", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=273-296\nread lookup_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "lookup_color", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=313-336\nread show_diff for detail", "file": "lib/thor/shell/basic.rb", "symbol": "show_diff", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoker", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=127-150\nread ChildGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ChildGroup", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=138-161\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=157-180\nread MyChildScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyChildScript", "line": 157, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=83-106\nread convert_key for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "convert_key", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=54-77\nread initialize for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=55-78\nread Parent for detail", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=589-612\nread defined_in_gem? for detail", "file": "lib/thor.rb", "symbol": "defined_in_gem?", "line": 589, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "在测试固件中,有一个用于打印数字 2 的简单方法,请确认其行为是否符合预期或是否应被移除。", "query": "print 2", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 71, "lang": "zh", "candidates": [{"text": "File: lib/thor/line_editor/basic.rb\nLine 4: attr_reader :prompt, :options", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 134: self.class.all_commands.map { |_, command| invoke_command(command) }", "file": "lib/thor/invocation.rb", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 57: command = Thor::Command.new(\"can_has\", nil, nil, nil, nil, foo: true, bar: :required)", "file": "spec/command_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 250: \"#{basename} #{self_command.formatted_usage(self, false)}\"", "file": "lib/thor/group.rb", "symbol": "", "line": 250, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 213: expect(parse(:foo, :array).usage).to eq(\"[--foo=one two three]\")", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 213, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 34: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 71: def two", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 71, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 35: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 302: groups.map! { |k| k.printable_commands(false).first }", "file": "lib/thor/runner.rb", "symbol": "", "line": 302, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 143: command = namespace", "file": "lib/thor/util.rb", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 90: It even has two paragraphs.", "file": "spec/fixtures/script.thor", "symbol": "", "line": 90, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nLine 100: end", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 70: end", "file": "spec/register_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 53: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 5: true", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 145: expect(red).to eq(\"\\e[31mhi!\\e[0m\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 37: desc \"part two\"", "file": "spec/register_spec.rb", "symbol": "", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nLine 30: expect(output).to eq(sub_help)", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 101: [options, args]", "file": "spec/thor_spec.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 14: puts \"expected #{SOME_STRING.encoding.name} to equal ISO-8859-7\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 28: This generator runs three commands: one, two and three.", "file": "spec/fixtures/group.thor", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 191: # option :two", "file": "lib/thor.rb", "symbol": "", "line": 191, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 63: # You can notice that the method \"foo\" above invokes two commands: \"bar\",", "file": "lib/thor/invocation.rb", "symbol": "", "line": 63, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 72: def self.handle_no_command_error(name)", "file": "spec/command_spec.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "在测试固件中,有一个用于打印数字 2 的简单方法,请确认其行为是否符合预期或是否应被移除。", "query": "print 2", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 71, "lang": "zh", "candidates": [{"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\ndefines two", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "在测试固件中,有一个用于打印数字 2 的简单方法,请确认其行为是否符合预期或是否应被移除。", "query": "print 2", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 71, "lang": "zh", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=692-715\nread build_command_tree for detail", "file": "lib/thor.rb", "symbol": "build_command_tree", "line": 692, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=138-161\nread invoke_with_padding for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_with_padding", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=180-203\nread print_table for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_table", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=121-144\nread handle_no_method_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_no_method_error?", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=177-200\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=403-426\nread class_exclusive_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=247-270\nread Arities for detail", "file": "spec/fixtures/script.thor", "symbol": "Arities", "line": 247, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=330-353\nread ask_simply for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_simply", "line": 330, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=44-67\nread initialize for detail", "file": "lib/thor/shell.rb", "symbol": "initialize", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=371-394\nread capture for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "capture", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=276-299\nread _invoke_for_class_method for detail", "file": "lib/thor/group.rb", "symbol": "_invoke_for_class_method", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=169-192\nread check_unknown_options! for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options!", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=71-94\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 71, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "특정 명령어가 존재하는지 확인하는 로직 찾아줘", "query": "command existence check", "file": "lib/thor.rb", "symbol": "command_exists?", "line": 449, "lang": "ko", "candidates": [{"text": "File: lib/thor/shell.rb\nLine 11: def shell", "file": "lib/thor/shell.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 3: class Subcommand < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 137: end", "file": "spec/group_spec.rb", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 103: expect(File.stat(original).mode).to eq(File.stat(copy).mode)", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 148: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 308: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 565: # thor :my_command", "file": "lib/thor/base.rb", "symbol": "", "line": 565, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 52: # def bar", "file": "lib/thor/invocation.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 252: Scripts::ChildDefault, Scripts::Arities, Apple, Pear, MyClassOptionScript, MyOptionScript", "file": "spec/base_spec.rb", "symbol": "", "line": 252, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 194: it \"does not change the file and raises an error if replacement present in the file\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 13: Thor::LineEditor::Basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 65: destination_path = File.join(destination_root, \"doc/config.rb\")", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 59: # symbols.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 201: describe \"#escape_globs\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 60: [bar, options]", "file": "spec/fixtures/script.thor", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 29: @error = error", "file": "lib/thor/error.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 449: def command_exists?(command_name) #:nodoc:", "file": "lib/thor.rb", "symbol": "command_exists?", "line": 449, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/command.rb\nLine 81: end", "file": "lib/thor/command.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 1: $LOAD_PATH.unshift File.expand_path(\"../lib\", __FILE__)", "file": "Thorfile", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 15: class SubApp < Thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 10: def self.best_available", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 67: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "특정 명령어가 존재하는지 확인하는 로직 찾아줘", "query": "command existence check", "file": "lib/thor.rb", "symbol": "command_exists?", "line": 449, "lang": "ko", "candidates": [{"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "특정 명령어가 존재하는지 확인하는 로직 찾아줘", "query": "command existence check", "file": "lib/thor.rb", "symbol": "command_exists?", "line": 449, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "특정 명령어가 존재하는지 확인하는 로직 찾아줘", "query": "command existence check", "file": "lib/thor.rb", "symbol": "command_exists?", "line": 449, "lang": "ko", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=333-356\nread at_least_one for detail", "file": "spec/fixtures/script.thor", "symbol": "at_least_one", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=28-51\nread ThorTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "ThorTask", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=25-48\nread pop for detail", "file": "lib/thor/nested_context.rb", "symbol": "pop", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/create_link_spec.rb lines=35-58\nread revoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "revoke!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=174-197\nread list for detail", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=619-642\nread handle_argument_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_argument_error", "line": 619, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=264-287\nread prepare_message for detail", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Thorfile lines=11-34\nread build for detail", "file": "Thorfile", "symbol": "build", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=68-91\nread peek for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "peek", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/html.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=207-230\nread file_collision for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=108-131\nread are_colors_supported? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=449-472\nread command_exists? for detail", "file": "lib/thor.rb", "symbol": "command_exists?", "line": 449, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "我发现在运行spec测试时,测试用例无法找到所需的fixture文件,导致测试失败。需要确认或修改源代码根目录的解析逻辑,确保它能正确指向项目中的fixtures目录。", "query": "spec fixtures path", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lang": "zh", "candidates": [{"text": "File: lib/thor/actions/create_link.rb\nLine 25: # data, just takes a source string from the user.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 62: def source_root", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 531: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 531, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 29: source = File.join(source_root, source_path, file)", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 27: def source_root(path = nil)", "file": "lib/thor/actions.rb", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 82: boom!", "file": "spec/fixtures/script.thor", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 58: def matches", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 60: expect(parse(:foo, [:a, :b]).type).to eq(:array)", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 13: source_root File.expand_path(File.dirname(__FILE__))", "file": "spec/fixtures/group.thor", "symbol": "", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 70: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 172: config ||= {}", "file": "lib/thor/invocation.rb", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 77: protected", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 67: before do", "file": "spec/sort_spec.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 110: it \"add source_root to source_paths_for_search\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 110, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 13: source_root File.expand_path(File.dirname(__FILE__))", "file": "spec/fixtures/group.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 16: source = File.join(source_root, source)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 203: # ==== Parameters", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 30: it \"raises when an exception happens within the command call\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 4: desc \"snack\"", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 8: ::FileUtils.cp_r(source_root, destination_root)", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 9: def terminal_width", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 14: subcommand \"sub\", Subcommand", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 17: # Class which holds create directory logic. This is the base class for", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "我发现在运行spec测试时,测试用例无法找到所需的fixture文件,导致测试失败。需要确认或修改源代码根目录的解析逻辑,确保它能正确指向项目中的fixtures目录。", "query": "spec fixtures path", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lang": "zh", "candidates": [{"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nsibling in spec", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nsibling in spec", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nsibling in spec", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nsibling in spec", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "我发现在运行spec测试时,测试用例无法找到所需的fixture文件,导致测试失败。需要确认或修改源代码根目录的解析逻辑,确保它能正确指向项目中的fixtures目录。", "query": "spec fixtures path", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/helper.rb -> thor", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/helper.rb -> diff/lcs", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> rdoc", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> rspec", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> thor/group", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> stringio", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "我发现在运行spec测试时,测试用例无法找到所需的fixture文件,导致测试失败。需要确认或修改源代码根目录的解析逻辑,确保它能正确指向项目中的fixtures目录。", "query": "spec fixtures path", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=40-63\nread animal for detail", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=75-98\nread PluginWithDefaultcommandAndDeclaredArgument for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefaultcommandAndDeclaredArgument", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/html.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=99-122\nread destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "destination_root", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=49-72\nread capture for detail", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=730-753\nread method_added for detail", "file": "lib/thor/base.rb", "symbol": "method_added", "line": 730, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=333-356\nread comment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "comment_lines", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=320-343\nread exclusive for detail", "file": "spec/fixtures/script.thor", "symbol": "exclusive", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=114-137\nread relative_to_original_destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "relative_to_original_destination_root", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=138-161\nread invoke_with_padding for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_with_padding", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=168-191\nread check_unknown! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=83-106\nread windows? for detail", "file": "spec/helper.rb", "symbol": "windows?", "line": 83, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=78-101\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=62-85\nread source_root for detail", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=42-65\nread completion_options for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_options", "line": 42, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "replacement_present? 메서드가 대체 문자열이 포함되었는지 확인하는지 확인해줘.", "query": "replace present", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lang": "ko", "candidates": [{"text": "File: lib/thor/shell/column_printer.rb\nLine 1: require_relative \"terminal\"", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 11: @base = MyCounter.new([1, 2], options, destination_root: destination_root)", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 7: def bugs", "file": "spec/fixtures/help.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 42: # ==== Returns", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 147: def replacement_present?", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/base.rb\nLine 165: end", "file": "lib/thor/base.rb", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 37: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/A top level command/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 555: expect(Thor::LineEditor).to receive(:readline).and_return(\"m\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 555, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 167: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 112: def private_file_name", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 558: expect(File.binread(file)).to eq(\"START\\n__start__\\nREADME\\n__end__\\n\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 558, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 14: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 35: #", "file": "lib/thor/shell.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 19: map \"-T\" => :animal, [\"-f\", \"--foo\"] => :foo", "file": "spec/fixtures/script.thor", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 136: required? ? :string : :boolean", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 8: def initialize(name, options = {})", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 109: when TrueClass, FalseClass", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 43: FileUtils.mkdir_p(File.dirname(destination))", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 70: describe \"#relative_to_original_destination_root\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 81: expect(File.exist?(file)).to be true", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 52: def render", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 170: output = capture(:stdout) { BoringVendorProvidedCLI.start(%w(say_multiple hello adam)) }", "file": "spec/register_spec.rb", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 61: end", "file": "spec/register_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 5: require 'thor'", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "replacement_present? 메서드가 대체 문자열이 포함되었는지 확인하는지 확인해줘.", "query": "replace present", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "replacement_present? 메서드가 대체 문자열이 포함되었는지 확인하는지 확인해줘.", "query": "replace present", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "replacement_present? 메서드가 대체 문자열이 포함되었는지 확인하는지 확인해줘.", "query": "replace present", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=649-672\nread subcommand_help for detail", "file": "lib/thor.rb", "symbol": "subcommand_help", "line": 649, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=783-806\nread create_command for detail", "file": "lib/thor/base.rb", "symbol": "create_command", "line": 783, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=345-368\nread only_one for detail", "file": "spec/fixtures/script.thor", "symbol": "only_one", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=21-44\nread base for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "base", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=263-286\nread create_command for detail", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=26-49\nread insert_into_file! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=153-176\nread load_thorfile for detail", "file": "lib/thor/util.rb", "symbol": "load_thorfile", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=123-146\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=249-272\nread banner for detail", "file": "lib/thor/group.rb", "symbol": "banner", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=5-28\nread LineEditor for detail", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=7-30\nread command1 for detail", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=147-170\nread replacement_present? for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=172-195\nread animal for detail", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 172, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Estou tentando entender como os valores das opções são armazenados quando o usuário passa argumentos repetidos no terminal. Onde fica a lógica que decide se o resultado deve ser guardado em um array ou mesclado em um hash?", "query": "assign repeatable result", "file": "lib/thor/parser/options.rb", "symbol": "assign_result!", "line": 189, "lang": "pt", "candidates": [{"text": "File: spec/group_spec.rb\nLine 226: out << \": \" << args.join(\", \") unless args.empty?", "file": "spec/group_spec.rb", "symbol": "", "line": 226, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 19: # Set the terminal's foreground ANSI color to black.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 26: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 36: @data = data", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 282: }).print_default).to eq(true)", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 27: expect($stdout).to receive(:print).with(\" conflict README\\n\")", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 189: def assign_result!(option, result)", "file": "lib/thor/parser/options.rb", "symbol": "assign_result!", "line": 189, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/util_spec.rb\nLine 179: allow(ENV).to receive(:[])", "file": "spec/util_spec.rb", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 2: include Thor::Actions", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 88: describe \"with value as boolean\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 147: ARGV.replace %w(list)", "file": "spec/runner_spec.rb", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 11: end", "file": "lib/thor/error.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 6: ruby_lib= ENV[\"RUBYLIB\"].nil? ? lib_path : \"#{lib_path}:#{ENV['RUBYLIB']}\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 111: hide: true", "file": "spec/register_spec.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 7: puts options['fruit']", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 176: desc \"animal KIND\", \"fish around\", :for => :animal", "file": "spec/fixtures/script.thor", "symbol": "", "line": 176, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 11: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 11: expect(out.chomp).to eq('Wow! Now we have colors!')", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 10: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 76: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 373: it \"does not log status if required\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 373, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 148: expect(capture(:stdout) { Thor::Runner.start }).to match(/my_counter N/)", "file": "spec/runner_spec.rb", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 32: # Set the terminal's background HTML color to black.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estou tentando entender como os valores das opções são armazenados quando o usuário passa argumentos repetidos no terminal. Onde fica a lógica que decide se o resultado deve ser guardado em um array ou mesclado em um hash?", "query": "assign repeatable result", "file": "lib/thor/parser/options.rb", "symbol": "assign_result!", "line": 189, "lang": "pt", "candidates": [{"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estou tentando entender como os valores das opções são armazenados quando o usuário passa argumentos repetidos no terminal. Onde fica a lógica que decide se o resultado deve ser guardado em um array ou mesclado em um hash?", "query": "assign repeatable result", "file": "lib/thor/parser/options.rb", "symbol": "assign_result!", "line": 189, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/actions/create_file.rb lines=86-109\nread force_or_skip_or_conflict for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_or_skip_or_conflict", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=110-133\nread invoke_from_option for detail", "file": "lib/thor/group.rb", "symbol": "invoke_from_option", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=274-297\nread Apple for detail", "file": "spec/fixtures/script.thor", "symbol": "Apple", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=110-133\nread G for detail", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=7-30\nread command1 for detail", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=149-172\nread yes? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "yes?", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=2-25\nread Argument for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=797-820\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 797, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=71-94\nread default_banner for detail", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=113-136\nread indentation for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=153-176\nread replace! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replace!", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=166-189\nread _parse_initialization_options for detail", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=37-60\nread diff_lcs_loaded? for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=189-212\nread assign_result! for detail", "file": "lib/thor/parser/options.rb", "symbol": "assign_result!", "line": 189, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/color.rb lines=6-29\nread Thor for detail", "file": "lib/thor/shell/color.rb", "symbol": "Thor", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=138-161\nread subclass_files for detail", "file": "lib/thor/base.rb", "symbol": "subclass_files", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "UTF-8でエンコードされた文字列のエンコーディング名が正しく設定されているか確認するテストケースを追加したいです。\n文字列のエンコーディングを表示し、UTF-8でない場合はエラーメッセージを出力するメソッドを作成してください。", "query": "string encoding check", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "encoding", "line": 9, "lang": "ja", "candidates": [{"text": "File: lib/thor/shell/html.rb\nLine 37: ON_GREEN = \"background-color: green\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 96: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 153: expect(capture(:stdout) { Thor::Runner.start }).to match(/amazing:describe NAME/)", "file": "spec/runner_spec.rb", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 574: it \"invokes the merge tool with arguments when there is no THOR_MERGE\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 574, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 9: def encoding", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 27: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 168: colorless = shell.set_color \"hi!\"", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 1: # encoding: ISO-8859-7", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 78: stringfied_constants.include?(subclass.name.gsub(\"#{klass.name}::\", \"\"))", "file": "lib/thor/util.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 164: expect(content).to match(/my_script:animal TYPE/)", "file": "spec/runner_spec.rb", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 264: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 6: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 58: other.each do |key, value|", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 131: true", "file": "lib/thor/command.rb", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 87: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 149: end", "file": "lib/thor/command.rb", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 37: it \"accepts arrays\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 57: class PluginWithDefault < Thor", "file": "spec/register_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 6: ruby_lib= ENV[\"RUBYLIB\"].nil? ? lib_path : \"#{lib_path}:#{ENV['RUBYLIB']}\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 39: return @diff_lcs_loaded unless @diff_lcs_loaded.nil?", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 9: def encoding", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "encoding", "line": 9, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/encoding_spec.rb\nLine 5: describe \"file's encoding\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 1: # encoding: utf-8", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "UTF-8でエンコードされた文字列のエンコーディング名が正しく設定されているか確認するテストケースを追加したいです。\n文字列のエンコーディングを表示し、UTF-8でない場合はエラーメッセージを出力するメソッドを作成してください。", "query": "string encoding check", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "encoding", "line": 9, "lang": "ja", "candidates": [{"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\ndefines encoding", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "UTF-8でエンコードされた文字列のエンコーディング名が正しく設定されているか確認するテストケースを追加したいです。\n文字列のエンコーディングを表示し、UTF-8でない場合はエラーメッセージを出力するメソッドを作成してください。", "query": "string encoding check", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "encoding", "line": 9, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "UTF-8でエンコードされた文字列のエンコーディング名が正しく設定されているか確認するテストケースを追加したいです。\n文字列のエンコーディングを表示し、UTF-8でない場合はエラーメッセージを出力するメソッドを作成してください。", "query": "string encoding check", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "encoding", "line": 9, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/base.rb lines=472-495\nread commands for detail", "file": "lib/thor/base.rb", "symbol": "commands", "line": 472, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=105-128\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=28-51\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=53-76\nread remaining for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "remaining", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=649-672\nread subcommand_help for detail", "file": "lib/thor.rb", "symbol": "subcommand_help", "line": 649, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=1-24\nread Enum for detail", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=215-238\nread current_is_switch_formatted? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch_formatted?", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "encoding", "line": 9, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=166-189\nread _parse_initialization_options for detail", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=13-36\nread invoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=4-27\nread EncodingWithUtf8 for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=173-196\nread check_unknown_options for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=52-75\nread enum_to_s for detail", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=194-217\nread print_wrapped for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_wrapped", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=80-103\nread Defined for detail", "file": "spec/fixtures/invoke.thor", "symbol": "Defined", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=722-745\nread inherited for detail", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=68-91\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=110-133\nread G for detail", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=350-373\nread remove_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "remove_file", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=276-299\nread thorfiles_relevant_to for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "¿Cómo puedo verificar si el contenido generado es igual al archivo de destino antes de crear el enlace?", "query": "identical? symlink render", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lang": "es", "candidates": [{"text": "File: lib/thor/line_editor/basic.rb\nLine 35: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 71: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 22: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 48: shell.ask \"Is this green?\", :green, limited_to: %w(Yes No Maybe)", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 2: require_relative \"terminal\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 9: # it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 27: class CreateLink < CreateFile #:nodoc:", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/runner.rb\nLine 254: thorfiles = []", "file": "lib/thor/runner.rb", "symbol": "", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 244: def normalize_switch(arg)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 17: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 75: # :white", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 5: describe Thor::Actions::CreateLink, unless: windows? do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 28: # README", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 192: end", "file": "lib/thor/base.rb", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 17: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 34: it \"sets the rakefile application\" do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 617: Options:", "file": "spec/thor_spec.rb", "symbol": "", "line": 617, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 39: def three", "file": "spec/fixtures/group.thor", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 45: expect(Thor::DynamicCommand.new(\"command\").options).to eq({})", "file": "spec/command_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 186: end.compact", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 7: #", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 83: # skipped. If both are false, show the file_collision menu, if the menu", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 120: it \"ignores an 'illegal' %\\w+% encoded instruction\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 91: it \"returns true if the destination file exists\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "¿Cómo puedo verificar si el contenido generado es igual al archivo de destino antes de crear el enlace?", "query": "identical? symlink render", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lang": "es", "candidates": [{"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "¿Cómo puedo verificar si el contenido generado es igual al archivo de destino antes de crear el enlace?", "query": "identical? symlink render", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "¿Cómo puedo verificar si el contenido generado es igual al archivo de destino antes de crear el enlace?", "query": "identical? symlink render", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lang": "es", "candidates": [{"text": "Next: read lib/thor/base.rb lines=208-231\nread disable_required_check? for detail", "file": "lib/thor/base.rb", "symbol": "disable_required_check?", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=546-569\nread banner for detail", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=35-58\nread identical? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "identical?", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=74-97\nread thor_classes_in for detail", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/group_spec.rb lines=206-229\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=4-27\nread Sandbox for detail", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/subcommand_spec.rb lines=59-82\nread exit_on_failure? for detail", "file": "spec/subcommand_spec.rb", "symbol": "exit_on_failure?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=145-168\nread register_klass_file for detail", "file": "lib/thor/base.rb", "symbol": "register_klass_file", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=104-127\nread can_display_colors? for detail", "file": "lib/thor/shell/color.rb", "symbol": "can_display_colors?", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=40-63\nread invoke! for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=772-795\nread basename for detail", "file": "lib/thor/base.rb", "symbol": "basename", "line": 772, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=83-106\nread invoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "invoke!", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=37-60\nread diff_lcs_loaded? for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Como ler uma linha com prompt e opções, escolhendo automaticamente a melhor editora disponível?", "query": "line editor readline", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lang": "pt", "candidates": [{"text": "File: spec/fixtures/encoding_other.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 22: def get_input", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 334: result = Thor::LineEditor.readline(message, options)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 334, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 29: @default.map(&:dump).join(\" \")", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 52: describe \"#sort - simple override\" do", "file": "spec/sort_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 38: super(convert_key(key), *args)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 28: @non_assigned_required = []", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 2: module LineEditor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 185: value = value.to_s", "file": "lib/thor/group.rb", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 39: def required?", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 10: pid= spawn({\"RUBYLIB\" => ruby_lib},", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 5: module LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 96: expect(Thor::LineEditor).to receive(:readline).and_return(\"d\", \"y\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 96, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nLine 115: expect(Thor::LineEditor).to receive(:readline).with(\"Overwrite #{file}? (enter \\\"h\\\" for help) [Ynaqdhm] \", anything).and_return(\"s\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 115, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 2: # frozen_string_literal: true", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 91: cell << f % column.to_s", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 15: def entered?", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 221: allow(Thor::LineEditor).to receive(:readline).and_return(\"Y\")", "file": "spec/runner_spec.rb", "symbol": "", "line": 221, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 78: @pile = arg + @pile", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 60: puts msg", "file": "spec/register_spec.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 17: expect(Thor::LineEditor).to receive(:readline).with(\"\\e[32mIs this green? \\e[0m\", anything).and_return(\"yes\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 267: result, status = Open3.capture2e(*env_splat, command.to_s)", "file": "lib/thor/actions.rb", "symbol": "", "line": 267, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 166: allow(ENV).to receive(:[]).with(\"HOMEDRIVE\").and_return(\"D:/\")", "file": "spec/util_spec.rb", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 109: command, args, opts, config = args", "file": "lib/thor/invocation.rb", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Como ler uma linha com prompt e opções, escolhendo automaticamente a melhor editora disponível?", "query": "line editor readline", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lang": "pt", "candidates": [{"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\ndefines LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Como ler uma linha com prompt e opções, escolhendo automaticamente a melhor editora disponível?", "query": "line editor readline", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lang": "pt", "candidates": [{"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Como ler uma linha com prompt e opções, escolhendo automaticamente a melhor editora disponível?", "query": "line editor readline", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/base.rb lines=709-732\nread find_and_refresh_command for detail", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=4-27\nread TreeApp for detail", "file": "spec/tree_spec.rb", "symbol": "TreeApp", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=310-333\nread display_commands for detail", "file": "lib/thor/runner.rb", "symbol": "display_commands", "line": 310, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=85-108\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=269-292\nread multiple_usages for detail", "file": "spec/fixtures/script.thor", "symbol": "multiple_usages", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=5-28\nread LineEditor for detail", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/option.rb lines=107-130\nread show_default? for detail", "file": "lib/thor/parser/option.rb", "symbol": "show_default?", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=234-257\nread switch_option for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch_option", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=64-87\nread C for detail", "file": "spec/fixtures/invoke.thor", "symbol": "C", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=128-151\nread send for detail", "file": "spec/fixtures/script.thor", "symbol": "send", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=153-176\nread what for detail", "file": "spec/fixtures/script.thor", "symbol": "what", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor.rb lines=4-27\nread Thor for detail", "file": "lib/thor/line_editor.rb", "symbol": "Thor", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=133-156\nread potentially_ambiguous for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=47-70\nread SubcommandTest1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "SubcommandTest1", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=138-161\nread subclass_files for detail", "file": "lib/thor/base.rb", "symbol": "subclass_files", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=32-55\nread echo? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "echo?", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=6-29\nread readline for detail", "file": "lib/thor/line_editor.rb", "symbol": "readline", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=750-773\nread from_superclass for detail", "file": "lib/thor/base.rb", "symbol": "from_superclass", "line": 750, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Es gibt einen Fehler, wenn mehrere Argumente, die sich gegenseitig ausschließen, gleichzeitig übergeben werden. Das System erkennt den Konflikt nicht korrekt, wenn die Anzahl der übergebenen Parameter innerhalb der Ausschlussgruppe nicht stimmt. Es muss sichergestellt werden, dass eine Fehlermeldung ausgelöst wird, sobald zwei oder mehr miteinander inkompatible Optionen gleichzeitig vorhanden sind.", "query": "exclusive argument error", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lang": "de", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nLine 62: it \"copies file from the source relative to the current path\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 55: empty_directory(\"doc\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 60: @usage = usage", "file": "lib/thor.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 1: class Thor", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 38: end", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 144: def check_exclusive!", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/options_spec.rb\nLine 52: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 129: expect(Thor::Util.thor_classes_in(MyScript)).to eq([MyScript::AnotherScript])", "file": "spec/util_spec.rb", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 5: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 55: empty_directory(\"doc\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 4: class Thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 62: def validate!", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 354: it \"accepts a block\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 354, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 86: expect($stdout).to receive(:print).with(\"Your response must be one of: [strawberry, chocolate, vanilla]. Please try again.\\n\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 28: it \"has type equals to :string\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 106: expect(File.read(file)).to eq(\"__start__\\nREADME\\nmore content\\n__end__\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 8: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 245: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 168: expect(Thor::Util.user_home).to eq(\"D:/Documents and Settings/James\")", "file": "spec/util_spec.rb", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 44: options[:fourth]", "file": "spec/fixtures/group.thor", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 19: # ensure that developer errors are shown with full backtrace.", "file": "lib/thor/error.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 107: # invoked. The block receives two parameters, an instance of the current", "file": "lib/thor/group.rb", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 13: end", "file": "spec/util_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Es gibt einen Fehler, wenn mehrere Argumente, die sich gegenseitig ausschließen, gleichzeitig übergeben werden. Das System erkennt den Konflikt nicht korrekt, wenn die Anzahl der übergebenen Parameter innerhalb der Ausschlussgruppe nicht stimmt. Es muss sichergestellt werden, dass eine Fehlermeldung ausgelöst wird, sobald zwei oder mehr miteinander inkompatible Optionen gleichzeitig vorhanden sind.", "query": "exclusive argument error", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lang": "de", "candidates": [{"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Es gibt einen Fehler, wenn mehrere Argumente, die sich gegenseitig ausschließen, gleichzeitig übergeben werden. Das System erkennt den Konflikt nicht korrekt, wenn die Anzahl der übergebenen Parameter innerhalb der Ausschlussgruppe nicht stimmt. Es muss sichergestellt werden, dass eine Fehlermeldung ausgelöst wird, sobald zwei oder mehr miteinander inkompatible Optionen gleichzeitig vorhanden sind.", "query": "exclusive argument error", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lang": "de", "candidates": [{"text": "Next: read lib/thor.rb lines=424-447\nread stop_on_unknown_option? for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=159-182\nread attr_writer for detail", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=113-136\nread indentation for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=55-78\nread Parent for detail", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=25-48\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=185-208\nread Barn for detail", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=62-85\nread validate! for detail", "file": "lib/thor/parser/argument.rb", "symbol": "validate!", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=531-554\nread no_commands for detail", "file": "lib/thor/base.rb", "symbol": "no_commands", "line": 531, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/script_exit_status_spec.rb lines=2-25\nread thor_command for detail", "file": "spec/script_exit_status_spec.rb", "symbol": "thor_command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=311-334\nread MyOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyOptionScript", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=68-91\nread reverse_merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=501-524\nread remove_command for detail", "file": "lib/thor/base.rb", "symbol": "remove_command", "line": 501, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=89-112\nread default for detail", "file": "spec/register_spec.rb", "symbol": "default", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=144-167\nread check_exclusive! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=263-286\nread create_command for detail", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=4-27\nread Thor for detail", "file": "lib/thor/line_editor.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=10-33\nread initialize for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "initialize", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "The logic for determining whether the external library for line-by-line comparison is available or has been successfully required is failing to correctly cache the state after a LoadError, or it's not properly checking the existing presence of the dependency before attempting a require.", "query": "diff lcs loaded", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lang": "en", "candidates": [{"text": "File: lib/thor/shell/lcs_diff.rb\nLine 37: def diff_lcs_loaded? #:nodoc:", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/base_spec.rb\nLine 84: end", "file": "spec/base_spec.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 3: module Terminal", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 15: result < 10 ? DEFAULT_TERMINAL_WIDTH : result", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 2: # frozen_string_literal: true", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 230: expect(FileUtils).to receive(:rm_rf).with(path)", "file": "spec/runner_spec.rb", "symbol": "", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 18: argument(:command, type: :unknown)", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 241: # end", "file": "lib/thor.rb", "symbol": "", "line": 241, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 40: exempt = /\\.gitmodules|\\.marshal|fixtures|vendor|spec|ssl_certs|LICENSE|.devcontainer/", "file": "spec/quality_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 42: expect(capture(:stdout) { base.say_status :padding, \"cool\" }.strip).to eq(\"padding cool\")", "file": "spec/shell_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 51: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 11: allow(ENV).to receive(:[]).with(\"TERM\").and_return(\"ansi\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 129: def method_options(options = nil)", "file": "lib/thor.rb", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 203: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 4: class Thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 16: colwidth = (array.map { |el| el.to_s.size }.max || 0) + 2", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 14: object = Struct.new(:namespace, :arguments).new(\"foo\", [])", "file": "spec/command_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 5: SOME_STRING = \"Some ������\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 1: require \"helper\"", "file": "spec/actions_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 80: end", "file": "lib/thor/error.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 23: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub print_opt --opt output)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 3: $VERBOSE = true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 5: class ColumnPrinter", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 6: def self.readline(prompt, options = {})", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "The logic for determining whether the external library for line-by-line comparison is available or has been successfully required is failing to correctly cache the state after a LoadError, or it's not properly checking the existing presence of the dependency before attempting a require.", "query": "diff lcs loaded", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lang": "en", "candidates": [{"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "The logic for determining whether the external library for line-by-line comparison is available or has been successfully required is failing to correctly cache the state after a LoadError, or it's not properly checking the existing presence of the dependency before attempting a require.", "query": "diff lcs loaded", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lang": "en", "candidates": [{"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "The logic for determining whether the external library for line-by-line comparison is available or has been successfully required is failing to correctly cache the state after a LoadError, or it's not properly checking the existing presence of the dependency before attempting a require.", "query": "diff lcs loaded", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lang": "en", "candidates": [{"text": "Next: read lib/thor/shell/lcs_diff.rb lines=37-60\nread diff_lcs_loaded? for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=367-390\nread concat for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "concat", "line": 367, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=203-226\nread thor_root_glob for detail", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=1-24\nread LCSDiff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "LCSDiff", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=59-82\nread foo for detail", "file": "spec/fixtures/script.thor", "symbol": "foo", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=21-44\nread check_for_extra_spaces for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=93-116\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=27-50\nread revoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=23-46\nread revoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoke!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=174-197\nread list for detail", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=21-44\nread output_diff_line for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "output_diff_line", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/parser/options_spec.rb lines=24-47\nread remaining for detail", "file": "spec/parser/options_spec.rb", "symbol": "remaining", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=112-135\nread are_colors_disabled? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_disabled?", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=231-254\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=709-732\nread find_and_refresh_command for detail", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=78-101\nread glob_pattern for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "glob_pattern", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=313-336\nread show_diff for detail", "file": "lib/thor/shell/basic.rb", "symbol": "show_diff", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=6-29\nread show_diff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "show_diff", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=159-182\nread attr_writer for detail", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "특정 위치에 내용을 삽입할 때, 삽입할 데이터가 블록 형태로 전달될 경우를 제대로 처리하지 못하거나 설정값이 누락되는 버그가 있는 것 같습니다. 특히 기존 파일의 끝에 내용을 추가할 때 기본 동작이 어떻게 설정되는지 확인이 필요합니다.", "query": "inject into file", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lang": "ko", "candidates": [{"text": "File: spec/actions/empty_directory_spec.rb\nLine 94: invoke!", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 73: old_verbose = $VERBOSE", "file": "spec/helper.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 34: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 16: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 26: def insert_into_file!(destination, *args, &block)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/subcommand_spec.rb\nLine 16: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 21: def output_diff_line(diff) #:nodoc:", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 11: if SOME_STRING.encoding.name == \"ISO-8859-7\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 25: # Set the terminal's foreground HTML color to magenta.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 6: option \"--not_help\", :type => :boolean", "file": "spec/fixtures/help.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 50: begin", "file": "spec/helper.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 354: #", "file": "lib/thor/base.rb", "symbol": "", "line": 354, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 42: super(*keys.map{ |key| convert_key(key) })", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 7: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 183: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 183, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 109: class CommandConflict < Thor::Group", "file": "spec/fixtures/group.thor", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 95: end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 74: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 54: it \"copies the file to the specified destination\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 9: add_filter \"/spec\"", "file": "spec/helper.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 28: class ThorTask < Thor", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 90: runner.destination_root = \"/app\"", "file": "spec/actions_spec.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 97: !(instance.public_methods & [name.to_s, name.to_sym]).empty?", "file": "lib/thor/command.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 63: raise ArgumentError, \"An argument cannot be required and have default value.\" if required? && !default.nil?", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "특정 위치에 내용을 삽입할 때, 삽입할 데이터가 블록 형태로 전달될 경우를 제대로 처리하지 못하거나 설정값이 누락되는 버그가 있는 것 같습니다. 특히 기존 파일의 끝에 내용을 추가할 때 기본 동작이 어떻게 설정되는지 확인이 필요합니다.", "query": "inject into file", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "특정 위치에 내용을 삽입할 때, 삽입할 데이터가 블록 형태로 전달될 경우를 제대로 처리하지 못하거나 설정값이 누락되는 버그가 있는 것 같습니다. 특히 기존 파일의 끝에 내용을 추가할 때 기본 동작이 어떻게 설정되는지 확인이 필요합니다.", "query": "inject into file", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "특정 위치에 내용을 삽입할 때, 삽입할 데이터가 블록 형태로 전달될 경우를 제대로 처리하지 못하거나 설정값이 누락되는 버그가 있는 것 같습니다. 특히 기존 파일의 끝에 내용을 추가할 때 기본 동작이 어떻게 설정되는지 확인이 필요합니다.", "query": "inject into file", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/base.rb lines=772-795\nread basename for detail", "file": "lib/thor/base.rb", "symbol": "basename", "line": 772, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=164-187\nread undasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=192-215\nread append_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "append_to_file", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=483-506\nread all_commands for detail", "file": "lib/thor/base.rb", "symbol": "all_commands", "line": 483, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=163-186\nread method_option for detail", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=75-98\nread execute! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "execute!", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=26-49\nread squirrel for detail", "file": "spec/register_spec.rb", "symbol": "squirrel", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=333-356\nread comment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "comment_lines", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=26-49\nread insert_into_file! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/error.rb lines=62-85\nread InvocationError for detail", "file": "lib/thor/error.rb", "symbol": "InvocationError", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=12-35\nread check_for_tab_characters for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=39-62\nread three for detail", "file": "spec/fixtures/group.thor", "symbol": "three", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=398-421\nread CapturableERB for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "CapturableERB", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=158-181\nread parse_string for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_string", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=249-272\nread banner for detail", "file": "lib/thor/group.rb", "symbol": "banner", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=57-80\nread merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=69-92\nread initialize for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Estou tentando entender como o erro recupera as sugestões de escrita. Como ele faz para instanciar o objeto responsável pela verificação ortográfica e obter as correções?", "query": "SpellChecker corrections", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lang": "pt", "candidates": [{"text": "File: lib/thor/rake_compat.rb\nLine 66: Thor::RakeCompat.rake_classes << new_klass", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 175: expect(File.exist?(File.join(destination_root, \"doc\", \"README\"))).to be false", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 45: config[:symbolic] = true if config[:symbolic].nil?", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 29: @switches = arguments", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 116: desc \"with_optional NAME\", \"invoke with optional name\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 5: SOME_STRING = \"Some λέξεις 一些词 🎉\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 181: content = capture(:stdout) { H.help(Thor::Base.shell.new) }", "file": "spec/group_spec.rb", "symbol": "", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 189: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 160: def dasherized?", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 8: def corrections", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/register_spec.rb\nLine 112: )", "file": "spec/register_spec.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 310: action :remove_file, \"doc/README\"", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 310, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 49: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 9: # source:: the relative path to the source root.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 98: expect(create_file(\"doc/config.rb\", {}, skip: true)).not_to be_identical", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 106: BoringVendorProvidedCLI.register(", "file": "spec/register_spec.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 46: it \"sorts them in reverse\" do", "file": "spec/sort_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 68: if klass", "file": "lib/thor/group.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 80: # :on_blue", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 150: file_subclasses << klass unless file_subclasses.include?(klass)", "file": "lib/thor/base.rb", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 13: Thor::LineEditor::Basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estou tentando entender como o erro recupera as sugestões de escrita. Como ele faz para instanciar o objeto responsável pela verificação ortográfica e obter as correções?", "query": "SpellChecker corrections", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lang": "pt", "candidates": [{"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estou tentando entender como o erro recupera as sugestões de escrita. Como ele faz para instanciar o objeto responsável pela verificação ortográfica e obter as correções?", "query": "SpellChecker corrections", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lang": "pt", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=48-71\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=103-126\nread convert_encoded_instructions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "convert_encoded_instructions", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=297-320\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 297, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=81-104\nread call_unexistent_method for detail", "file": "spec/fixtures/script.thor", "symbol": "call_unexistent_method", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=167-190\nread installed for detail", "file": "lib/thor/runner.rb", "symbol": "installed", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=184-207\nread check_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type!", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=72-95\nread format_cell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "format_cell", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=20-43\nread Error for detail", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=58-81\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=129-152\nread HiddenCommand for detail", "file": "lib/thor/command.rb", "symbol": "HiddenCommand", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=4-27\nread EncodingOther for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "EncodingOther", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=3-26\nread ExitStatus for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ExitStatus", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=321-344\nread show_modules for detail", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/error.rb lines=25-48\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 25, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/basic_spec.rb lines=5-28\nread shell for detail", "file": "spec/shell/basic_spec.rb", "symbol": "shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=24-47\nread UndefinedCommandError for detail", "file": "lib/thor/error.rb", "symbol": "UndefinedCommandError", "line": 24, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "查找用于管理命令行输出终端实例的逻辑", "query": "shell configuration logic", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lang": "zh", "candidates": [{"text": "File: lib/thor/actions/empty_directory.rb\nLine 46: ::File.exist?(destination)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 3: class Thor", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nLine 1: require \"helper\"", "file": "spec/sort_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 94: expect(action.identical?).to be true", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 15: def readline", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 7: Thor::Util.load_thorfile(File.expand_path(\"./fixtures/#{filename}\", __dir__))", "file": "spec/encoding_spec.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 4: class Thor", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nLine 10: raise Thor::Error.new(\"planned error\")", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 14: else", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 5: true", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 1: class Thor", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 88: dirname = File.dirname(file_destination).gsub(%r{/\\.$}, \"\")", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 27: describe \"#sort - simple override\" do", "file": "spec/sort_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 4: class EncodingOther < Thor", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 7: class Test < Thor", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nLine 72: expect(@content).to match(/:help.+:a.+:z/m)", "file": "spec/sort_spec.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 1: # encoding: UTF-8", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 90: cell << \"|\" + \" \" * @padding if options[:borders]", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 377: context \"and no force option\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 131: root_file = File.join(Thor::Util.thor_root, \"thor.yml\")", "file": "spec/runner_spec.rb", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 168: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 3: class Thor", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 3: class Thor", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "查找用于管理命令行输出终端实例的逻辑", "query": "shell configuration logic", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lang": "zh", "candidates": [{"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "查找用于管理命令行输出终端实例的逻辑", "query": "shell configuration logic", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "查找用于管理命令行输出终端实例的逻辑", "query": "shell configuration logic", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/shell.rb lines=23-46\nread Shell for detail", "file": "lib/thor/shell.rb", "symbol": "Shell", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/quality_spec.rb lines=2-25\nread check_for_spec_defs_with_single_quotes for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=52-75\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 52, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=168-191\nread check_unknown! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=130-153\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=66-89\nread PluginWithDefaultMultipleArguments for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefaultMultipleArguments", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=714-737\nread bar for detail", "file": "spec/thor_spec.rb", "symbol": "bar", "line": 714, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_link_spec.rb lines=35-58\nread revoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "revoke!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=44-67\nread initialize for detail", "file": "lib/thor/shell.rb", "symbol": "initialize", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=26-49\nread squirrel for detail", "file": "spec/register_spec.rb", "symbol": "squirrel", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/argument_spec.rb lines=5-28\nread argument for detail", "file": "spec/parser/argument_spec.rb", "symbol": "argument", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=64-87\nread relative_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "relative_matches", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=129-152\nread uninstall for detail", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=142-165\nread update for detail", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=72-95\nread handle_no_command_error for detail", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=50-73\nread PluginInheritingFromClassOptionsGroup for detail", "file": "spec/register_spec.rb", "symbol": "PluginInheritingFromClassOptionsGroup", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=4-27\nread Base for detail", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I'm trying to figure out how we handle long text when displaying data in a grid. Is there a way to limit the character count and append an ellipsis if the content is too long?", "query": "truncate ellipsis", "file": "lib/thor/shell/table_printer.rb", "symbol": "truncate", "line": 103, "lang": "en", "candidates": [{"text": "File: lib/thor/runner.rb\nLine 225: def initialize_thorfiles(relevant_to = nil, skip_lookup = false)", "file": "lib/thor/runner.rb", "symbol": "", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 371: content = capture(:stdout) { shell.print_table(@table, indent: 2, truncate: 20) }", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 371, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 301: shell.print_table(list, indent: 2, truncate: true)", "file": "lib/thor.rb", "symbol": "", "line": 301, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 11: Thor::Base.subclasses.concat delete", "file": "spec/runner_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 180: def print_table(array, options = {}) # rubocop:disable Metrics/MethodLength", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 76: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 12: words = unwrapped.split(\" \")", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 213: # \" filter_parameter :password\\n\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 33: # expand %something%, this `something` should be a public method in the class calling", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 58: error_messages << check_for_spec_defs_with_single_quotes(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 36: second", "file": "spec/fixtures/group.thor", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 37: super(base, destination, config)", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 6: attr_reader :stdout, :options", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 33: if use_path_completion?", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 35: sub_help = capture(:stdout) { TestSubcommands::Parent.start(%w(sub help print_opt)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 232: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 103: def truncate(string)", "file": "lib/thor/shell/table_printer.rb", "symbol": "truncate", "line": 103, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 18: # other actions like create_file and directory.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 25: def pop", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 93: # Becomes:", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 316: print_table(list, truncate: true)", "file": "lib/thor/runner.rb", "symbol": "", "line": 316, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 52: action Directory.new(self, source, destination || source, config, &block)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 5: describe Thor::Actions::InjectIntoFile do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm trying to figure out how we handle long text when displaying data in a grid. Is there a way to limit the character count and append an ellipsis if the content is too long?", "query": "truncate ellipsis", "file": "lib/thor/shell/table_printer.rb", "symbol": "truncate", "line": 103, "lang": "en", "candidates": [{"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\ndefines truncate", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "I'm trying to figure out how we handle long text when displaying data in a grid. Is there a way to limit the character count and append an ellipsis if the content is too long?", "query": "truncate ellipsis", "file": "lib/thor/shell/table_printer.rb", "symbol": "truncate", "line": 103, "lang": "en", "candidates": [{"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm trying to figure out how we handle long text when displaying data in a grid. Is there a way to limit the character count and append an ellipsis if the content is too long?", "query": "truncate ellipsis", "file": "lib/thor/shell/table_printer.rb", "symbol": "truncate", "line": 103, "lang": "en", "candidates": [{"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=72-95\nread initialize for detail", "file": "lib/thor/actions.rb", "symbol": "initialize", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=118-141\nread parse_array for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_array", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=286-309\nread is? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "is?", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=9-32\nread error for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "error", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=166-189\nread _parse_initialization_options for detail", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=216-239\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=23-46\nread revoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoke!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=274-297\nread parse_peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_peek", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=1-24\nread Enum for detail", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=143-166\nread content for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=41-64\nread task for detail", "file": "lib/thor/rake_compat.rb", "symbol": "task", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=192-215\nread append_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "append_to_file", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/html.rb lines=79-102\nread can_display_colors? for detail", "file": "lib/thor/shell/html.rb", "symbol": "can_display_colors?", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=113-136\nread invoke_with_conflict_check for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke_with_conflict_check", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=103-126\nread truncate for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "truncate", "line": 103, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "Je suis en train de regarder comment les commandes gèrent leurs paramètres de saisie. Peux-tu m'expliquer comment est initialisé l'état interne qui stocke les arguments et les options après le parsing ?", "query": "initialize args options", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lang": "fr", "candidates": [{"text": "File: spec/rake_compat_spec.rb\nLine 61: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 43: @content = capture(:stdout) { my_script.help(shell) }", "file": "spec/sort_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 573: expect(File.binread(file)).to eq(\"class Application < Base\\n filter_parameters :password\\nend\\n\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 573, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nLine 185: it \"does not raises an error if default is a boolean and it is required\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 172: ENV[\"USERPROFILE\"]", "file": "lib/thor/util.rb", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 34: rescue ArgumentError => e", "file": "lib/thor/command.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 46: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 21: def release", "file": "Thorfile", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 219: # ==== Returns", "file": "lib/thor/group.rb", "symbol": "", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 666: include Thor::Base", "file": "lib/thor.rb", "symbol": "", "line": 666, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 44: expect(base.options.third).to eq(3)", "file": "spec/base_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 19: # Receives a namespace and search for it in the Thor::Base subclasses.", "file": "lib/thor/util.rb", "symbol": "", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 38: # class MyScript < Thor", "file": "lib/thor/shell.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 181: klasses = Thor::Base.subclasses.select do |k|", "file": "lib/thor/runner.rb", "symbol": "", "line": 181, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 15: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 35: module Base", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions.rb\nLine 257: end", "file": "lib/thor/actions.rb", "symbol": "", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 18: def subcommand1", "file": "spec/tree_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 9: paras = message.split(\"\\n\\n\")", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 6: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 270: include Thor::Base", "file": "lib/thor/group.rb", "symbol": "", "line": 270, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 10: end", "file": "spec/command_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je suis en train de regarder comment les commandes gèrent leurs paramètres de saisie. Peux-tu m'expliquer comment est initialisé l'état interne qui stocke les arguments et les options après le parsing ?", "query": "initialize args options", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lang": "fr", "candidates": [{"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Je suis en train de regarder comment les commandes gèrent leurs paramètres de saisie. Peux-tu m'expliquer comment est initialisé l'état interne qui stocke les arguments et les options après le parsing ?", "query": "initialize args options", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je suis en train de regarder comment les commandes gèrent leurs paramètres de saisie. Peux-tu m'expliquer comment est initialisé l'état interne qui stocke les arguments et les options après le parsing ?", "query": "initialize args options", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=129-152\nread subclasses for detail", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=280-303\nread escape_html for detail", "file": "lib/thor/util.rb", "symbol": "escape_html", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=4-27\nread command for detail", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/basic_spec.rb lines=5-28\nread shell for detail", "file": "spec/shell/basic_spec.rb", "symbol": "shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=27-50\nread revoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=153-176\nread load_thorfile for detail", "file": "lib/thor/util.rb", "symbol": "load_thorfile", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=85-108\nread SubcommandWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "SubcommandWithDefault", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=107-130\nread revoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "revoke!", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=92-115\nread long_description for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=6-29\nread Thor for detail", "file": "lib/thor/shell/color.rb", "symbol": "Thor", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=231-254\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=25-48\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=172-195\nread get_options_from_invocations for detail", "file": "lib/thor/group.rb", "symbol": "get_options_from_invocations", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=52-75\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=121-144\nread handle_no_method_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_no_method_error?", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=143-166\nread content for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=434-457\nread disable_required_check! for detail", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=110-133\nread G for detail", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "at_least_one 옵션을 하나 이상 지정해야 하는 옵션들의 이름 목록을 반환하는 메서드를 찾아주세요. 이 메서드는 옵션 관계에서 해당 키의 값을 가져오거나, 없으면 빈 배열을 돌려줍니다.", "query": "at_least_one_option_names", "file": "lib/thor/command.rb", "symbol": "method_at_least_one_option_names", "line": 70, "lang": "ko", "candidates": [{"text": "File: lib/thor/base.rb\nLine 31: end", "file": "lib/thor/base.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 675: end", "file": "lib/thor/base.rb", "symbol": "", "line": 675, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 43: # Stores invocation blocks used on invoke_from_option.", "file": "lib/thor/group.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 51: stream = stream.to_s", "file": "spec/helper.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 411: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 411, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 115: class H < Thor::Group", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 3: class ExitStatus < Thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 68: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 256: expect { wrap_text }.to output(expected_output).to_stdout", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 11: class HashWithIndifferentAccess < ::Hash #:nodoc:", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 70: def method_at_least_one_option_names #:nodoc:", "file": "lib/thor/command.rb", "symbol": "method_at_least_one_option_names", "line": 70, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/group.thor\nLine 5: def self.exit_on_failure?", "file": "spec/fixtures/group.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 136: PluginWithDefaultMultipleArguments,", "file": "spec/register_spec.rb", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 122: @extra << shift while peek", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 212: argument :accessor, :type => :string", "file": "spec/fixtures/script.thor", "symbol": "", "line": 212, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 24: memo", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 115: file = File.join(destination_root, \"docs\", \"components\", \".empty_directory\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 13: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 100: stdout.puts indentation + separator.join + \"+\"", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 29: FOO", "file": "spec/fixtures/group.thor", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 248: :method_at_least_one_option_names, *args, &block)", "file": "lib/thor.rb", "symbol": "", "line": 248, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nLine 4: require \"thor/rake_compat\"", "file": "Thorfile", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 82: color = args.first", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 1: require \"thor\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "at_least_one 옵션을 하나 이상 지정해야 하는 옵션들의 이름 목록을 반환하는 메서드를 찾아주세요. 이 메서드는 옵션 관계에서 해당 키의 값을 가져오거나, 없으면 빈 배열을 돌려줍니다.", "query": "at_least_one_option_names", "file": "lib/thor/command.rb", "symbol": "method_at_least_one_option_names", "line": 70, "lang": "ko", "candidates": [{"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "at_least_one 옵션을 하나 이상 지정해야 하는 옵션들의 이름 목록을 반환하는 메서드를 찾아주세요. 이 메서드는 옵션 관계에서 해당 키의 값을 가져오거나, 없으면 빈 배열을 돌려줍니다.", "query": "at_least_one_option_names", "file": "lib/thor/command.rb", "symbol": "method_at_least_one_option_names", "line": 70, "lang": "ko", "candidates": [{"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=20-43\nread RakeCompat for detail", "file": "lib/thor/rake_compat.rb", "symbol": "RakeCompat", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=70-93\nread method_at_least_one_option_names for detail", "file": "lib/thor/command.rb", "symbol": "method_at_least_one_option_names", "line": 70, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/subcommand_spec.rb lines=50-73\nread foo for detail", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=51-74\nread six for detail", "file": "spec/fixtures/group.thor", "symbol": "six", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=168-191\nread dasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherize", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=108-131\nread are_colors_supported? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=258-281\nread set_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "set_color", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=398-421\nread CapturableERB for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "CapturableERB", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=149-172\nread yes? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "yes?", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=28-51\nread ThorTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "ThorTask", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoker", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=133-156\nread invoke_all for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_all", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=99-122\nread file_level_lookup for detail", "file": "lib/thor/actions/directory.rb", "symbol": "file_level_lookup", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=329-352\nread class_option for detail", "file": "lib/thor/base.rb", "symbol": "class_option", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Check if there's a way to determine if the output should be echoed based on the provided configuration options.", "query": "options fetch echo", "file": "lib/thor/line_editor/basic.rb", "symbol": "echo?", "line": 32, "lang": "en", "candidates": [{"text": "File: lib/thor/runner.rb\nLine 159: filename = install(thor_yaml[name][:location])", "file": "lib/thor/runner.rb", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 10: def self.best_available", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 5: def print_opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 23: when \"-\"", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 52: options[:symbolic]", "file": "spec/fixtures/group.thor", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 6: arguments = opts.map do |type, default|", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 86: expect(File.exist?(@action.destination)).to be false", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 820: else", "file": "lib/thor/base.rb", "symbol": "", "line": 820, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 15: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 259: def baseclass #:nodoc:", "file": "lib/thor/group.rb", "symbol": "", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 95: def print_status", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 91: # ==== Boolean options", "file": "lib/thor/group.rb", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 111: # conditions are met.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 32: def echo?", "file": "lib/thor/line_editor/basic.rb", "symbol": "echo?", "line": 32, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/options.rb\nLine 95: if parsing_options?", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 463: end", "file": "lib/thor/base.rb", "symbol": "", "line": 463, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 134: expect(content).to match(%r{create doc/rdoc\\.rb})", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 12: #", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 25: expect(parse(\"name\", \"+13.3\")[\"numeric\"]).to eq(13.3)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 102: File.expand_path(File.dirname(__FILE__))", "file": "spec/fixtures/group.thor", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 272: protected", "file": "lib/thor/group.rb", "symbol": "", "line": 272, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 23: print_border_separator if options[:borders]", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 72: def format_cell(column, row_size, index)", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Check if there's a way to determine if the output should be echoed based on the provided configuration options.", "query": "options fetch echo", "file": "lib/thor/line_editor/basic.rb", "symbol": "echo?", "line": 32, "lang": "en", "candidates": [{"text": "File: lib/thor/line_editor/basic.rb\ndefines echo?", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nsibling in lib/thor/line_editor", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Check if there's a way to determine if the output should be echoed based on the provided configuration options.", "query": "options fetch echo", "file": "lib/thor/line_editor/basic.rb", "symbol": "echo?", "line": 32, "lang": "en", "candidates": [{"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Check if there's a way to determine if the output should be echoed based on the provided configuration options.", "query": "options fetch echo", "file": "lib/thor/line_editor/basic.rb", "symbol": "echo?", "line": 32, "lang": "en", "candidates": [{"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=32-55\nread echo? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "echo?", "line": 32, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=153-176\nread what for detail", "file": "spec/fixtures/script.thor", "symbol": "what", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=248-271\nread run for detail", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=185-208\nread Barn for detail", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=307-330\nread mix for detail", "file": "spec/fixtures/script.thor", "symbol": "mix", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=10-33\nread initialize for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "initialize", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=145-168\nread chmod for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "chmod", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=174-197\nread list for detail", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=24-47\nread UndefinedCommandError for detail", "file": "lib/thor/error.rb", "symbol": "UndefinedCommandError", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=35-58\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=5-28\nread print_opt for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "print_opt", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=399-422\nread set_eoutvar for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "set_eoutvar", "line": 399, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=15-38\nread SubApp for detail", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=6-29\nread available? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=880-903\nread no_arg for detail", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/application_helper.rb lines=1-24\nread ApplicationHelper for detail", "file": "spec/fixtures/application_helper.rb", "symbol": "ApplicationHelper", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=89-112\nread parse for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=37-60\nread fetch for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "fetch", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "LineEditor", "line": 2, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "패턴을 기반으로 파일 목록을 가져올 때 숨김 파일까지 포함해서 찾는 메서드가 어디에 있나요?", "query": "Dir.glob FNM_DOTMATCH", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/enum.thor\nLine 8: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 41: sub_help = capture(:stdout) { TestSubcommands::Parent.start(%w(help sub)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 218: # Load the Thorfiles. If relevant_to is supplied, looks for specific files", "file": "lib/thor/runner.rb", "symbol": "", "line": 218, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 59: it \"copies only the first level files if recursive\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nLine 12: {out: w, err: [:child, :out]})", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 2: require_relative \"terminal\"", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 76: ensure", "file": "spec/helper.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 11: def invoker", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 62: styles << BOLD if bold", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 39: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/A subcommand/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 88: end", "file": "spec/helper.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 231: @foo = \"FOO\"", "file": "spec/actions_spec.rb", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 299: describe \"when changing existent files\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 299, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 103: def files(lookup)", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/base.rb\nLine 133: # Returns the files where the subclasses are kept.", "file": "lib/thor/base.rb", "symbol": "", "line": 133, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nLine 61: create string: \"name\", numeric: 13", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 50: # Asks something to the user and receives a response.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 50: desc: \"Overwrite files that already exist\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nLine 104: it \"does not fail with files containing regexp characters\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 104, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 152: # prepare_for_invocation in the current class.", "file": "lib/thor/invocation.rb", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 85: render = if source =~ %r{^https?\\://}", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 98: #", "file": "lib/thor/actions.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 6: require \"readline\"", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "패턴을 기반으로 파일 목록을 가져올 때 숨김 파일까지 포함해서 찾는 메서드가 어디에 있나요?", "query": "Dir.glob FNM_DOTMATCH", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "패턴을 기반으로 파일 목록을 가져올 때 숨김 파일까지 포함해서 찾는 메서드가 어디에 있나요?", "query": "Dir.glob FNM_DOTMATCH", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "패턴을 기반으로 파일 목록을 가져올 때 숨김 파일까지 포함해서 찾는 메서드가 어디에 있나요?", "query": "Dir.glob FNM_DOTMATCH", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/actions/create_file.rb lines=60-83\nread invoke! for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=129-152\nread method_options for detail", "file": "lib/thor.rb", "symbol": "method_options", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=114-137\nread handle_argument_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_argument_error?", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=154-177\nread ClassMethods for detail", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=58-81\nread initialize for detail", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=114-137\nread relative_to_original_destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "relative_to_original_destination_root", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=3-26\nread Terminal for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Terminal", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=78-101\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=296-319\nread file_collision_help for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=288-311\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=65-88\nread UnknownArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=103-126\nread files for detail", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/create_link.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=89-112\nread action for detail", "file": "lib/thor/actions.rb", "symbol": "action", "line": 89, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "gib die aktuelle einrückung als zeichenkette zurück", "query": "get indentation string", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lang": "de", "candidates": [{"text": "File: spec/shell/basic_spec.rb\nLine 30: it \"accepts custom indentation amounts\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nLine 68: @content = capture(:stdout) { my_script.help(shell) }", "file": "spec/sort_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 137: Thor::Util.clear_user_home!", "file": "spec/util_spec.rb", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 17: # Class which holds create directory logic. This is the base class for", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 67: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 35: ON_RED = \"background-color: red\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 139: klass = Class.new(Thor) do", "file": "spec/thor_spec.rb", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 48: # Set the terminal's background ANSI color to cyan.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 143: # chmod \"script/server\", 0755", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 101: No added indentation, Inline", "file": "spec/fixtures/script.thor", "symbol": "", "line": 101, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 92: @required_options ||= options.map { |_, o| o.usage if o.required? }.compact.sort.join(\" \")", "file": "lib/thor/command.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 667: No added indentation, Inline", "file": "spec/thor_spec.rb", "symbol": "", "line": 667, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 113: def indentation", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 302: # Uncomment all lines matching a given regex. Preserves indentation before", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 302, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 64: raise ArgumentError, \"An argument cannot have an enum other than an enumerable.\" if @enum && !@enum.is_a?(Enumerable)", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 136: klass = Thor::Base.subclasses.detect { |thor| thor.namespace == namespace && thor.command_exists?(command) }", "file": "lib/thor/util.rb", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 2: require_relative \"terminal\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 69: # In order to print long description verbatim, with indentation and spacing exactly", "file": "lib/thor.rb", "symbol": "", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 242: # ==== Example", "file": "lib/thor/actions.rb", "symbol": "", "line": 242, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 16: r.read", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 60: false", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "gib die aktuelle einrückung als zeichenkette zurück", "query": "get indentation string", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lang": "de", "candidates": [{"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\ndefines indentation", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "gib die aktuelle einrückung als zeichenkette zurück", "query": "get indentation string", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lang": "de", "candidates": [{"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "gib die aktuelle einrückung als zeichenkette zurück", "query": "get indentation string", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lang": "de", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=43-66\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=671-694\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=20-43\nread Error for detail", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=54-77\nread set_color for detail", "file": "lib/thor/shell/html.rb", "symbol": "set_color", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=276-299\nread apple for detail", "file": "spec/fixtures/script.thor", "symbol": "apple", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/base_spec.rb lines=4-27\nread Amazing for detail", "file": "spec/base_spec.rb", "symbol": "Amazing", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=248-271\nread run for detail", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=2-25\nread NestedContext for detail", "file": "lib/thor/nested_context.rb", "symbol": "NestedContext", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=59-82\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=32-55\nread completion_proc for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_proc", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=67-90\nread valid_type? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=113-136\nread indentation for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=12-35\nread exists_and_identical? for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=235-258\nread command_conflict for detail", "file": "spec/fixtures/script.thor", "symbol": "command_conflict", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=143-166\nread content for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=283-306\nread pear for detail", "file": "spec/fixtures/script.thor", "symbol": "pear", "line": 283, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "출력 억제 상태 설정하는 코드 찾아줘", "query": "silence flag", "file": "spec/actions/create_file_spec.rb", "symbol": "silence!", "line": 25, "lang": "ko", "candidates": [{"text": "File: spec/parser/option_spec.rb\nLine 74: expect(parse(:foo, \"bar\").default).to eq(\"bar\")", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 28: super(convert_key(key))", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 9: true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 165: it \"returns path with HOMEDRIVE and HOMEPATH if set\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 5: true", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 34: it \"allows multiple usages\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 16: expect(shell.base).to eq(base)", "file": "spec/shell_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 71: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 11: [", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 332: expect(config).to eq({after: \"__start__\"})", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 332, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 4: class Thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 62: expect(argument(:foo, {", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 25: def silence!", "file": "spec/actions/create_file_spec.rb", "symbol": "silence!", "line": 25, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/error.rb\nLine 92: prepend Correctable if Correctable", "file": "lib/thor/error.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 121: file = File.join(destination_root, \"docs\", \"components\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 17: Rake::Task[\"install\"].execute", "file": "Thorfile", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 15: word = word.gsub(/\\n\\005/, \"\\n\").gsub(/\\005/, \"\\n\")", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 10: def self.best_available", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 21: # and Michael S. Klishin under MIT LICENSE.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 50: class PathCompletion", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 25: def pop", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 12: expect(capture(:stdout) { Thor::Sandbox::EncodingWithUtf8.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 1: # encoding: ISO-8859-7", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "출력 억제 상태 설정하는 코드 찾아줘", "query": "silence flag", "file": "spec/actions/create_file_spec.rb", "symbol": "silence!", "line": 25, "lang": "ko", "candidates": [{"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nsibling in spec/actions", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\ndefines silence!", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "thor", "task": "출력 억제 상태 설정하는 코드 찾아줘", "query": "silence flag", "file": "spec/actions/create_file_spec.rb", "symbol": "silence!", "line": 25, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "출력 억제 상태 설정하는 코드 찾아줘", "query": "silence flag", "file": "spec/actions/create_file_spec.rb", "symbol": "silence!", "line": 25, "lang": "ko", "candidates": [{"text": "Next: read spec/actions/create_file_spec.rb lines=17-40\nread invoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=45-68\nread key? for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "key?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=10-33\nread create_file for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/create_file_spec.rb lines=25-48\nread silence! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "silence!", "line": 25, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/actions/create_file_spec.rb lines=21-44\nread revoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/exit_status.thor lines=9-32\nread error for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "error", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=449-472\nread command_exists? for detail", "file": "lib/thor.rb", "symbol": "command_exists?", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=15-38\nread parse for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "parse", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=350-373\nread check_unknown_options! for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options!", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=750-773\nread from_superclass for detail", "file": "lib/thor/base.rb", "symbol": "from_superclass", "line": 750, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=49-72\nread capture for detail", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=1-24\nread TestSubcommands for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "TestSubcommands", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=26-49\nread squirrel for detail", "file": "spec/register_spec.rb", "symbol": "squirrel", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=129-152\nread subclasses for detail", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=16-39\nread install for detail", "file": "Thorfile", "symbol": "install", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=127-150\nread J for detail", "file": "spec/fixtures/invoke.thor", "symbol": "J", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=64-87\nread invoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=288-311\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 288, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Wie wird die Standardmethode zum Erstellen von Attributen so umgeschrieben, dass sie nicht als CLI-Befehl in der Hilfe angezeigt wird?", "query": "no_commands super", "file": "lib/thor/base.rb", "symbol": "attr_accessor", "line": 163, "lang": "de", "candidates": [{"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 23: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 8: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 362: attr_accessor :output_buffer", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 362, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 8: attr_accessor :some_attribute", "file": "spec/fixtures/script.thor", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 32: # Encoded path note: Since Thor internals use Object#respond_to? to check if it can", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 33: it \"accepts the help short switch and calls the help command on the subcommand\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 163: def attr_accessor(*) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "attr_accessor", "line": 163, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions.rb\nLine 10: attr_accessor :behavior", "file": "lib/thor/actions.rb", "symbol": "", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nLine 401: table = [", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 401, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 59: def self.exit_on_failure?", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 355: it \"does not add attr_accessor as a command\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 355, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 42: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 31: create string: nil, hash: nil", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 8: attr_accessor :base", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nLine 23: end", "file": "Thorfile", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 14: def z; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 398: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 39: def required?", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 99: allow(ENV).to receive(:[]).with(\"NO_COLOR\").and_return(\"\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 121: # class Baz::Foo < Thor::Group", "file": "lib/thor/util.rb", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 35: expect(Thor::LineEditor).to receive(:readline).with(\"\\e[32mIs this green? \\e[0m\", anything).and_return(\"yes\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Wie wird die Standardmethode zum Erstellen von Attributen so umgeschrieben, dass sie nicht als CLI-Befehl in der Hilfe angezeigt wird?", "query": "no_commands super", "file": "lib/thor/base.rb", "symbol": "attr_accessor", "line": 163, "lang": "de", "candidates": [{"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Wie wird die Standardmethode zum Erstellen von Attributen so umgeschrieben, dass sie nicht als CLI-Befehl in der Hilfe angezeigt wird?", "query": "no_commands super", "file": "lib/thor/base.rb", "symbol": "attr_accessor", "line": 163, "lang": "de", "candidates": [{"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Wie wird die Standardmethode zum Erstellen von Attributen so umgeschrieben, dass sie nicht als CLI-Befehl in der Hilfe angezeigt wird?", "query": "no_commands super", "file": "lib/thor/base.rb", "symbol": "attr_accessor", "line": 163, "lang": "de", "candidates": [{"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=149-172\nread remove_invocation for detail", "file": "lib/thor/group.rb", "symbol": "remove_invocation", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=203-226\nread thor_root_glob for detail", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=69-92\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=12-35\nread command2 for detail", "file": "spec/tree_spec.rb", "symbol": "command2", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=661-684\nread sort_commands! for detail", "file": "lib/thor.rb", "symbol": "sort_commands!", "line": 661, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=71-94\nread default_banner for detail", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=163-186\nread attr_accessor for detail", "file": "lib/thor/base.rb", "symbol": "attr_accessor", "line": 163, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=213-236\nread globs_for for detail", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=83-106\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=73-96\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=313-336\nread show_diff for detail", "file": "lib/thor/shell/basic.rb", "symbol": "show_diff", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=449-472\nread command_exists? for detail", "file": "lib/thor.rb", "symbol": "command_exists?", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=8-31\nread initialize for detail", "file": "spec/rake_compat_spec.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=153-176\nread _retrieve_class_and_command for detail", "file": "lib/thor/invocation.rb", "symbol": "_retrieve_class_and_command", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=253-276\nread thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=144-167\nread check_exclusive! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "finde methoden die als versteckt markiert sind", "query": "hidden command check", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 130, "lang": "de", "candidates": [{"text": "File: lib/thor/runner.rb\nLine 169: display_klasses(true, options[\"internal\"])", "file": "lib/thor/runner.rb", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 343: # config:: give :verbose => false to not log the status.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 12: # The start of an HTML bold sequence.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 80: files(lookup).sort.each do |file_source|", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 73: it \"has default value equal to the string\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 38: load File.join(File.dirname(__FILE__), \"fixtures\", \"command.thor\")", "file": "spec/helper.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 146: expect(options[:force]).not_to be_required", "file": "spec/base_spec.rb", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 3: describe Thor::Shell::HTML do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 82: def base_path", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 223: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 67: def valid_type?(type)", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 210: it \"registers the plugin as a subcommand\" do", "file": "spec/register_spec.rb", "symbol": "", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 475: action :gsub_file, \"doc/README\", \"__start__\", \"START\"", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 475, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 26: it \"a command that does not raise a Thor::Error exits with a status of 0\" do", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 45: false", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 5: script_path= \"#{gem_dir}/spec/fixtures/exit_status.thor\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 19: expect(capture(:stdout) { Scripts::MyDefaults.start(%w(barn paint blue --coats 4)) }.strip).to eq(\"4 coats of blue paint\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 241: say file_collision_help(block_given?)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 241, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 130: def hidden?", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 130, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 14: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 5: def when_no_thorfiles_exist", "file": "spec/runner_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 65: include Thor::Actions", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 9: def encoding", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "finde methoden die als versteckt markiert sind", "query": "hidden command check", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 130, "lang": "de", "candidates": [{"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "finde methoden die als versteckt markiert sind", "query": "hidden command check", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 130, "lang": "de", "candidates": [{"text": "Next: read lib/thor.rb lines=649-672\nread subcommand_help for detail", "file": "lib/thor.rb", "symbol": "subcommand_help", "line": 649, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=67-90\nread pretend? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "pretend?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=434-457\nread disable_required_check! for detail", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=66-89\nread with_padding for detail", "file": "lib/thor/shell.rb", "symbol": "with_padding", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=98-121\nread MalformattedArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "MalformattedArgumentError", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=81-104\nread call_unexistent_method for detail", "file": "spec/fixtures/script.thor", "symbol": "call_unexistent_method", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=211-234\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=96-119\nread name_with_dashes for detail", "file": "spec/fixtures/script.thor", "symbol": "name_with_dashes", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=230-253\nread switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch?", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=60-83\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=130-153\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 130, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=31-54\nread except for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=639-662\nread class_options_help for detail", "file": "lib/thor/base.rb", "symbol": "class_options_help", "line": 639, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=203-226\nread thor_root_glob for detail", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=7-30\nread RakeTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "RakeTask", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Thorを継承したサブコマンドのクラスはどこにありますか?", "query": "Thor subcommand class", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lang": "ja", "candidates": [{"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 56: html_colors = colors.map { |color| lookup_color(color) }", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 166: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 38: # Set the terminal's background HTML color to yellow.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 224: ruby = File.join(RbConfig::CONFIG[\"bindir\"], ruby_name)", "file": "lib/thor/util.rb", "symbol": "", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 131: expect(parse(\"asdf\", \"--foo\", \"bar\")).to eq(\"foo\" => \"bar\")", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 7: include Thor::RakeCompat", "file": "Thorfile", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 61: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 35: #", "file": "lib/thor/shell.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 103: def convert_encoded_instructions(filename)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 52: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 33: it \"sets the color when NO_COLOR is ignored because the environment variable is nil\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 53: describe \"#print_default\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 140: it \"gives a list of the available commands\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 70: shell.padding -= 1", "file": "lib/thor/shell.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 259: def baseclass #:nodoc:", "file": "lib/thor/group.rb", "symbol": "", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 40: expect(task).to be", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 10: from_superclass(:get_from_super, 13)", "file": "spec/fixtures/group.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 156: begin", "file": "lib/thor/util.rb", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 27: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 15: class SubApp < Thor", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 42: def completion_options", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 48: when_no_thorfiles_exist do", "file": "spec/runner_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 266: require \"open3\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 266, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Thorを継承したサブコマンドのクラスはどこにありますか?", "query": "Thor subcommand class", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lang": "ja", "candidates": [{"text": "File: spec/base_spec.rb\nsibling in spec", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nsibling in spec", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\ndefines SubApp", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nsibling in spec", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Thorを継承したサブコマンドのクラスはどこにありますか?", "query": "Thor subcommand class", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Thorを継承したサブコマンドのクラスはどこにありますか?", "query": "Thor subcommand class", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/base.rb lines=607-630\nread public_command for detail", "file": "lib/thor/base.rb", "symbol": "public_command", "line": 607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=37-60\nread diff_lcs_loaded? for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=21-44\nread check_for_extra_spaces for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=333-356\nread comment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "comment_lines", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=546-569\nread banner for detail", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=482-505\nread print_exclusive_options for detail", "file": "lib/thor.rb", "symbol": "print_exclusive_options", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=7-30\nread print for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=4-27\nread TreeApp for detail", "file": "spec/tree_spec.rb", "symbol": "TreeApp", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/tree_spec.rb lines=15-38\nread SubApp for detail", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/invoke.thor lines=122-145\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=84-107\nread unshift for detail", "file": "lib/thor/parser/options.rb", "symbol": "unshift", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=138-161\nread say_status for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "say_status", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=7-30\nread command1 for detail", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=326-349\nread unix? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "unix?", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=18-41\nread subcommand1 for detail", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=64-87\nread reverse_merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=4-27\nread Thor for detail", "file": "lib/thor/line_editor.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=12-35\nread command2 for detail", "file": "spec/tree_spec.rb", "symbol": "command2", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=52-75\nread enum_to_s for detail", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_link_spec.rb lines=31-54\nread invoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "invoke!", "line": 31, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Es scheint ein Problem vorzuliegen, wenn die Typvalidierung für Standardwerte von Optionen nicht erzwungen wird. Ich muss die Logik finden, die festlegt, ob eine Fehlermeldung geworfen werden soll, falls der Standardwert nicht dem angegebenen Typ entspricht.", "query": "option default type", "file": "lib/thor/base.rb", "symbol": "check_default_type!", "line": 184, "lang": "de", "candidates": [{"text": "File: lib/thor/parser/options.rb\nLine 61: def remaining", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 4: def shell", "file": "spec/shell_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 18: config = args.last.is_a?(Hash) ? args.pop : {}", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 81: when :array", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 24: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 184: def check_default_type!", "file": "lib/thor/base.rb", "symbol": "check_default_type!", "line": 184, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor.rb\nLine 7: best_available.new(prompt, options).readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 9: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 62: #", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 155: capture(:stderr) { File.const_set(:ALT_SEPARATOR, true) }", "file": "spec/util_spec.rb", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 109: # or tab character, a new line is not appended (print + flush). Otherwise", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 31: @default", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 11: ENV[\"THOR_COLUMNS\"].to_i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 29: # Receives a constant and converts it to a Thor namespace. Since Thor", "file": "lib/thor/util.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 337: expect(action(:remove_file, \"doc/README\", verbose: false)).to be_empty", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 153: \"Your current source paths are: \\n#{source_paths.join(\"\\n\")}\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 10: raise Thor::Error.new(\"planned error\")", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 21: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 96: location = if options[:relative] || is_uri", "file": "lib/thor/runner.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 9: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 75: # Allow shell to be shared between invocations.", "file": "lib/thor/shell.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 22: alias_method :add_link, :create_link", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 34: def invoker(*args)", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Es scheint ein Problem vorzuliegen, wenn die Typvalidierung für Standardwerte von Optionen nicht erzwungen wird. Ich muss die Logik finden, die festlegt, ob eine Fehlermeldung geworfen werden soll, falls der Standardwert nicht dem angegebenen Typ entspricht.", "query": "option default type", "file": "lib/thor/base.rb", "symbol": "check_default_type!", "line": 184, "lang": "de", "candidates": [{"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Es scheint ein Problem vorzuliegen, wenn die Typvalidierung für Standardwerte von Optionen nicht erzwungen wird. Ich muss die Logik finden, die festlegt, ob eine Fehlermeldung geworfen werden soll, falls der Standardwert nicht dem angegebenen Typ entspricht.", "query": "option default type", "file": "lib/thor/base.rb", "symbol": "check_default_type!", "line": 184, "lang": "de", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Es scheint ein Problem vorzuliegen, wenn die Typvalidierung für Standardwerte von Optionen nicht erzwungen wird. Ich muss die Logik finden, die festlegt, ob eine Fehlermeldung geworfen werden soll, falls der Standardwert nicht dem angegebenen Typ entspricht.", "query": "option default type", "file": "lib/thor/base.rb", "symbol": "check_default_type!", "line": 184, "lang": "de", "candidates": [{"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=53-76\nread merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=180-203\nread print_table for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_table", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=184-207\nread check_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type!", "line": 184, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=78-101\nread long_desc for detail", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=649-672\nread subcommand_help for detail", "file": "lib/thor.rb", "symbol": "subcommand_help", "line": 649, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=133-156\nread find_in_source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "find_in_source_paths", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/create_link_spec.rb lines=35-58\nread revoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "revoke!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=21-44\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=52-75\nread render for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "render", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=256-279\nread parse_boolean for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_boolean", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=72-95\nread replace for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "replace", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=71-94\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=67-90\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=57-80\nread PluginWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefault", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "find the constructor that assigns the input string to an instance variable", "query": "readline initialize", "file": "lib/thor/line_editor/readline.rb", "symbol": "initialize", "line": 54, "lang": "en", "candidates": [{"text": "File: spec/shell_spec.rb\nLine 14: it \"sets the base value on the shell if an accessor is available\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 28: def initialize(error)", "file": "lib/thor/error.rb", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 342: option :three", "file": "spec/fixtures/script.thor", "symbol": "", "line": 342, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 72: def initialize(args = [], options = {}, config = {})", "file": "lib/thor/actions.rb", "symbol": "", "line": 72, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 266: require \"open3\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 266, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 23: def four", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 178: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 174: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 8: def initialize(stdout, options = {})", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nLine 29: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 40: def invoke!", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 8: def initialize(stdout, options = {})", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 57: command = Thor::Command.new(\"can_has\", nil, nil, nil, nil, foo: true, bar: :required)", "file": "spec/command_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 14: @action = Thor::Actions::CreateFile.new(@base, destination, contents, {verbose: !@silence}.merge(config))", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 345: invoke! \"doc/README\", \"more content\\n\", before: \"__start__\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 34: # shell:: An instance of the shell to be used.", "file": "lib/thor/shell.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 12: describe \"#initialize\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 79: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 13: def initialize #:nodoc:", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 89: @relative_destination = base.relative_to_original_destination_root(@destination)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 161: def initialize(*args)", "file": "spec/fixtures/script.thor", "symbol": "", "line": 161, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nLine 225: expect(parse(:foo, :boolean).usage).to eq(\"[--foo], [--no-foo], [--skip-foo]\")", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 54: def initialize(text)", "file": "lib/thor/line_editor/readline.rb", "symbol": "initialize", "line": 54, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/verbose.thor\nLine 3: $VERBOSE = true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find the constructor that assigns the input string to an instance variable", "query": "readline initialize", "file": "lib/thor/line_editor/readline.rb", "symbol": "initialize", "line": 54, "lang": "en", "candidates": [{"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\ndefines initialize", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nsibling in lib/thor/line_editor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "find the constructor that assigns the input string to an instance variable", "query": "readline initialize", "file": "lib/thor/line_editor/readline.rb", "symbol": "initialize", "line": 54, "lang": "en", "candidates": [{"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find the constructor that assigns the input string to an instance variable", "query": "readline initialize", "file": "lib/thor/line_editor/readline.rb", "symbol": "initialize", "line": 54, "lang": "en", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=313-336\nread show_diff for detail", "file": "lib/thor/shell/basic.rb", "symbol": "show_diff", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=54-77\nread initialize for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "initialize", "line": 54, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=412-435\nread class_at_least_one_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one_option_names", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=184-207\nread check_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type!", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=634-657\nread find_command_possibilities for detail", "file": "lib/thor.rb", "symbol": "find_command_possibilities", "line": 634, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/runner_spec.rb lines=5-28\nread when_no_thorfiles_exist for detail", "file": "spec/runner_spec.rb", "symbol": "when_no_thorfiles_exist", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=264-287\nread escape_globs for detail", "file": "lib/thor/util.rb", "symbol": "escape_globs", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=49-72\nread values_at for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "values_at", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=110-133\nread G for detail", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/terminal.rb lines=20-43\nread unix? for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "unix?", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=89-112\nread parse for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=49-72\nread invoke! for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke!", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=248-271\nread run for detail", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=224-247\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 224, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "The logic for matching user input against a provided string is flawed. When the input string has more than one character, it incorrectly allows a single-character match based on the first character of that string, which leads to false positives in command validation.", "query": "match single character", "file": "lib/thor/shell/basic.rb", "symbol": "is?", "line": 286, "lang": "en", "candidates": [{"text": "File: spec/fixtures/invoke.thor\nLine 19: p 3", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 1: # frozen_string_literal: true", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 13: attr_reader :private_attribute", "file": "spec/fixtures/script.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 9: # Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 250: expect(runner).to receive(:file_name).and_return(\"rdoc\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 250, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 12: #", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 194: def check_default_type #:nodoc:", "file": "lib/thor/base.rb", "symbol": "", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 102: else", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 105: methods = instance.public_methods(false) + instance.private_methods(false) + instance.protected_methods(false)", "file": "lib/thor/command.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 6: expect(ChildGroup.start).to eq(%w(bar foo baz))", "file": "spec/group_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 38: super(convert_key(key), *args)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 4: #", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 2: module LineEditor", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 353: expect(parse(\"--foo\")[\"foo\"]).to eq(\"foo\")", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 353, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 12: words = unwrapped.split(\" \")", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 9: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 28: def add_to_history?", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 286: def is?(value) #:nodoc:", "file": "lib/thor/shell/basic.rb", "symbol": "is?", "line": 286, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nLine 104: def can_display_colors?", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 5: false", "file": "spec/fixtures/command.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 200: silence(:stdout) { Thor::Runner.start(%w(uninstall random)) }", "file": "spec/runner_spec.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 46: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 27: when \"!\"", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "The logic for matching user input against a provided string is flawed. When the input string has more than one character, it incorrectly allows a single-character match based on the first character of that string, which leads to false positives in command validation.", "query": "match single character", "file": "lib/thor/shell/basic.rb", "symbol": "is?", "line": 286, "lang": "en", "candidates": [{"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "The logic for matching user input against a provided string is flawed. When the input string has more than one character, it incorrectly allows a single-character match based on the first character of that string, which leads to false positives in command validation.", "query": "match single character", "file": "lib/thor/shell/basic.rb", "symbol": "is?", "line": 286, "lang": "en", "candidates": [{"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "The logic for matching user input against a provided string is flawed. When the input string has more than one character, it incorrectly allows a single-character match based on the first character of that string, which leads to false positives in command validation.", "query": "match single character", "file": "lib/thor/shell/basic.rb", "symbol": "is?", "line": 286, "lang": "en", "candidates": [{"text": "Next: read lib/thor.rb lines=163-186\nread method_option for detail", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=33-56\nread part_one for detail", "file": "spec/register_spec.rb", "symbol": "part_one", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=48-71\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=153-176\nread what for detail", "file": "spec/fixtures/script.thor", "symbol": "what", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=583-606\nread start for detail", "file": "lib/thor/base.rb", "symbol": "start", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=9-32\nread option for detail", "file": "spec/parser/option_spec.rb", "symbol": "option", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=286-309\nread is? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "is?", "line": 286, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=213-236\nread globs_for for detail", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=12-35\nread command2 for detail", "file": "spec/tree_spec.rb", "symbol": "command2", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=325-348\nread _shared_configuration for detail", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=147-170\nread replacement_present? for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=190-213\nread thor_root for detail", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=276-299\nread thorfiles_relevant_to for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=67-90\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "trouve la commande de terminal pour afficher les bugs", "query": "thor bugs", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lang": "fr", "candidates": [{"text": "File: Thorfile\nLine 15: desc \"install\", \"Build and install thor-#{Thor::VERSION}.gem into system gems\"", "file": "Thorfile", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 33: # Boolean:: true if it is identical, false otherwise.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 12: {out: w, err: [:child, :out]})", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 31: say \" #{diff.old_element.chomp}\", nil, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 13: BOLD = \"font-weight: bold\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 35: #", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 101: #", "file": "lib/thor/invocation.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 104: Thor.const_set(:Help, Module.new)", "file": "spec/util_spec.rb", "symbol": "", "line": 104, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 8: actual = File.binread(destination).to_s.split(\"\\n\")", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 3: class Help < Thor", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_link_spec.rb\nLine 106: expect(action.identical?).to be true", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 11: load_thorfile(\"encoding_with_utf8.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 195: @assigns[option.human_name] = result", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 28: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 10: pid= spawn({\"RUBYLIB\" => ruby_lib},", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 4: desc \"snack\"", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 355: action(:gsub_file!, \"doc/README\", \"__start__\") { |match| match.gsub(\"__\", \"\").upcase }", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 355, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 10: raise Thor::Error.new(\"planned error\")", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 12: Thor::LineEditor::Readline,", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 10: base = MyCounter.new [1, 2], {}, shell: shell", "file": "spec/shell_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 187: end).to match(/inside foo/)", "file": "spec/actions_spec.rb", "symbol": "", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 10: pid= spawn({\"RUBYLIB\" => ruby_lib},", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "trouve la commande de terminal pour afficher les bugs", "query": "thor bugs", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lang": "fr", "candidates": [{"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\ndefines Help", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "trouve la commande de terminal pour afficher les bugs", "query": "thor bugs", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lang": "fr", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=109-132\nread CommandConflict for detail", "file": "spec/fixtures/group.thor", "symbol": "CommandConflict", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=76-99\nread unshift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "unshift", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=167-190\nread installed for detail", "file": "lib/thor/runner.rb", "symbol": "installed", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=215-238\nread current_is_switch_formatted? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch_formatted?", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=248-271\nread run for detail", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=7-30\nread bugs for detail", "file": "spec/fixtures/help.thor", "symbol": "bugs", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=155-178\nread attr_reader for detail", "file": "lib/thor/base.rb", "symbol": "attr_reader", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=55-78\nread inherited for detail", "file": "spec/fixtures/group.thor", "symbol": "inherited", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=20-43\nread unix? for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "unix?", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=211-234\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/group.thor lines=122-145\nread baz for detail", "file": "spec/fixtures/group.thor", "symbol": "baz", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=43-66\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=130-153\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=296-319\nread file_collision_help for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "busca la clase que hereda de la base para renderizar colores en formato web", "query": "html shell color", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lang": "es", "candidates": [{"text": "File: spec/fixtures/encoding_other.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 139: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 10: def self.best_available", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 16: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 314: require \"tempfile\"", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 314, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 4: class Thor", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 8: class << self", "file": "lib/thor/group.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 3: describe Thor do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 96: end", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 104: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 4: describe Thor::Shell::Basic do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 97: def parse_hash(name)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 722: def inherited(klass)", "file": "lib/thor/base.rb", "symbol": "", "line": 722, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 12: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 3: class ExitStatus < Thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nLine 108: def are_colors_supported?", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 20: stdout.puts value", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 3: class Amazing < Thor", "file": "spec/fixtures/command.thor", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 4: class Thor", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/terminal.rb\nLine 1: class Thor", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 352: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 352, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 44: expect(runner.options.force).not_to be true", "file": "spec/actions_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 35: def revoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 245: expect(remaining).to eq(%w(foo))", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "busca la clase que hereda de la base para renderizar colores en formato web", "query": "html shell color", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lang": "es", "candidates": [{"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "busca la clase que hereda de la base para renderizar colores en formato web", "query": "html shell color", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lang": "es", "candidates": [{"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "busca la clase que hereda de la base para renderizar colores en formato web", "query": "html shell color", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lang": "es", "candidates": [{"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=165-188\nread print_in_columns for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_in_columns", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoker", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/html.rb", "symbol": "Shell", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=619-642\nread handle_argument_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_argument_error", "line": 619, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=258-281\nread set_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "set_color", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=157-180\nread MyChildScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyChildScript", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/html.rb lines=79-102\nread can_display_colors? for detail", "file": "lib/thor/shell/html.rb", "symbol": "can_display_colors?", "line": 79, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=253-276\nread thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=9-32\nread error for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "error", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=21-44\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=73-96\nread ask for detail", "file": "lib/thor/shell/html.rb", "symbol": "ask", "line": 73, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=84-107\nread current_is_value? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=54-77\nread set_color for detail", "file": "lib/thor/shell/html.rb", "symbol": "set_color", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=71-94\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=293-316\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=505-528\nread dispatch for detail", "file": "lib/thor.rb", "symbol": "dispatch", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=121-144\nread handle_no_method_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_no_method_error?", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=9-32\nread HTML for detail", "file": "lib/thor/shell/html.rb", "symbol": "HTML", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=281-304\nread Pear for detail", "file": "spec/fixtures/script.thor", "symbol": "Pear", "line": 281, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "busca el módulo que gestiona las rutas de búsqueda y el comportamiento de las acciones", "query": "source_paths_for_search", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lang": "es", "candidates": [{"text": "File: lib/thor/shell/terminal.rb\nLine 15: result < 10 ? DEFAULT_TERMINAL_WIDTH : result", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 3: describe Thor::Shell do", "file": "spec/shell_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nLine 59: }).print_default).to eq('\"one\" \"two\"')", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 34: expect(parse(\"product\", \"url:http://www.amazon.com/gp/product/123\")[\"hash\"]).to eq(\"url\" => \"http://www.amazon.com/gp/product/123\")", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 20: require \"diff/lcs\" # You need diff/lcs installed to run specs (but not to run Thor).", "file": "spec/helper.rb", "symbol": "", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 29: source = File.join(source_root, source_path, file)", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 70: end", "file": "spec/base_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 1: class Thor", "file": "lib/thor/invocation.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 20: out = capture(:stdout) { shell.say \"Wow! Now we have colors! \", :green }", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 16: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 66: def with_padding", "file": "lib/thor/shell.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 50: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 149: # This method simply retrieves the class and command to be invoked.", "file": "lib/thor/invocation.rb", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 8: # hash['foo'] #=> 'bar'", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 54: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 44: expect(ThorTask.tasks[\"cool\"].description).to eq(\"Say it's cool\")", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 6: class Thor", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 51: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 66: def with_padding", "file": "lib/thor/shell.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 8: class Thor", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/util_spec.rb\nLine 3: module Thor::Util", "file": "spec/util_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "busca el módulo que gestiona las rutas de búsqueda y el comportamiento de las acciones", "query": "source_paths_for_search", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lang": "es", "candidates": [{"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "busca el módulo que gestiona las rutas de búsqueda y el comportamiento de las acciones", "query": "source_paths_for_search", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/inject_into_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/empty_directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> revoke", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/file_manipulation", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "busca el módulo que gestiona las rutas de búsqueda y el comportamiento de las acciones", "query": "source_paths_for_search", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lang": "es", "candidates": [{"text": "Next: read lib/thor/parser/options.rb lines=274-297\nread parse_peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_peek", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=5-28\nread LineEditor for detail", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=199-222\nread printable_commands for detail", "file": "lib/thor/group.rb", "symbol": "printable_commands", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=583-606\nread start for detail", "file": "lib/thor/base.rb", "symbol": "start", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=144-167\nread check_exclusive! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=412-435\nread class_at_least_one_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one_option_names", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=163-186\nread method_option for detail", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=27-50\nread source_root for detail", "file": "lib/thor/actions.rb", "symbol": "source_root", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=59-82\nread foo for detail", "file": "spec/fixtures/script.thor", "symbol": "foo", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=12-35\nread check_for_tab_characters for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=264-287\nread prepare_message for detail", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=6-29\nread snack for detail", "file": "spec/fixtures/enum.thor", "symbol": "snack", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "Ich arbeite gerade an den Testdaten für die View-Komponenten. Kannst du mir zeigen, wo die Hilfsfunktionen für die Test-Fixtures definiert sind?", "query": "helper specs", "file": "spec/fixtures/application_helper.rb", "symbol": "ApplicationHelper", "line": 1, "lang": "de", "candidates": [{"text": "File: spec/shell/color_spec.rb\nLine 66: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 153: expect(capture(:stdout) { Thor::Runner.start }).to match(/amazing:describe NAME/)", "file": "spec/runner_spec.rb", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 10: yield", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 29: desc \"a\", \"First Command\"", "file": "spec/sort_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 26: class Thor::Shell::TestShell < Thor::Shell::Basic; end", "file": "spec/shell_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 38: create string: nil, array: nil", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 101: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 233: # inject_into_module \"app/helpers/application_helper.rb\", \"ApplicationHelper\", \" def help; 'help'; end\\n\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 233, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "ApplicationHelper", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/quality_spec.rb\nLine 2: def check_for_spec_defs_with_single_quotes(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 101: class ExclusiveArgumentError < InvocationError", "file": "lib/thor/error.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 55: This is more info!", "file": "spec/fixtures/script.thor", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 116: \"groupwork\",", "file": "spec/register_spec.rb", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 13: def readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 30: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 35: load File.join(File.dirname(__FILE__), \"fixtures\", \"invoke.thor\")", "file": "spec/helper.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 171: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 597: action :inject_into_module, \"application_helper.rb\", \"ApplicationHelper\", \" def help; 'help'; end\\n\"", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 597, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nLine 143: PluginWithDefaultcommandAndDeclaredArgument,", "file": "spec/register_spec.rb", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 122: desc \"baz\", \"do some bazing\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 9: # require 'rspec/core/rake_task'", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 7: def command1", "file": "spec/tree_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 7: puts \"Hello\"", "file": "spec/base_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 65: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Ich arbeite gerade an den Testdaten für die View-Komponenten. Kannst du mir zeigen, wo die Hilfsfunktionen für die Test-Fixtures definiert sind?", "query": "helper specs", "file": "spec/fixtures/application_helper.rb", "symbol": "ApplicationHelper", "line": 1, "lang": "de", "candidates": [{"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\ndefines ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Ich arbeite gerade an den Testdaten für die View-Komponenten. Kannst du mir zeigen, wo die Hilfsfunktionen für die Test-Fixtures definiert sind?", "query": "helper specs", "file": "spec/fixtures/application_helper.rb", "symbol": "ApplicationHelper", "line": 1, "lang": "de", "candidates": [{"text": "Next: read spec/parser/arguments_spec.rb lines=15-38\nread parse for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "parse", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=101-124\nread map for detail", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=24-47\nread find_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_by_namespace", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=4-27\nread Shell for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=190-213\nread allow_incompatible_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "allow_incompatible_default_type!", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=79-102\nread can_display_colors? for detail", "file": "lib/thor/shell/html.rb", "symbol": "can_display_colors?", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=174-197\nread list for detail", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=28-51\nread ThorTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "ThorTask", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=145-168\nread _shared_configuration for detail", "file": "lib/thor/invocation.rb", "symbol": "_shared_configuration", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=230-253\nread cow for detail", "file": "spec/fixtures/script.thor", "symbol": "cow", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=59-82\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=27-50\nread revoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=14-37\nread ok for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=247-270\nread Arities for detail", "file": "spec/fixtures/script.thor", "symbol": "Arities", "line": 247, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=329-352\nread subcommand for detail", "file": "lib/thor.rb", "symbol": "subcommand", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=85-108\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=84-107\nread unshift for detail", "file": "lib/thor/parser/options.rb", "symbol": "unshift", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=56-79\nread exists? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=95-118\nread print_status for detail", "file": "spec/fixtures/invoke.thor", "symbol": "print_status", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=27-50\nread dynamic_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/application_helper.rb lines=1-24\nread ApplicationHelper for detail", "file": "spec/fixtures/application_helper.rb", "symbol": "ApplicationHelper", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "It seems like passing an invalid symbol to the type option for a command-line parameter results in a generic ArgumentError, but it doesn't specify which part of the CLI structure is misconfigured. Can we improve the error message when a user provides a type that isn't in the allowed list of numeric, hash, array, or string?", "query": "valid_types argument", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lang": "en", "candidates": [{"text": "File: lib/thor/actions/empty_directory.rb\nLine 1: class Thor", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nLine 3: describe Thor do", "file": "spec/sort_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nLine 20: it \"parses arguments in the given order\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 4: describe Thor::Option do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\nLine 3: class Thor", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 1: module LCSDiff", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 1: # module: random", "file": "spec/fixtures/command.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 9: it \"sets the color if specified\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 35: @non_assigned_required << argument", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 1: class Thor", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 139: # config:: give :verbose => false to not log the status.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 138: def say_status(status, color)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 30: def a; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 144: klass = Thor::Util.find_by_namespace(\"\")", "file": "lib/thor/util.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 23: expect(thor_command(\"error\")).to eq(1)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 4: describe Thor::Shell::Basic do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nLine 42: it \"has no default value\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 3: describe Thor::Group do", "file": "spec/group_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 3: class Help < Thor", "file": "spec/fixtures/help.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 23: #", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 104: return string unless @truncate", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 85: end", "file": "spec/group_spec.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "It seems like passing an invalid symbol to the type option for a command-line parameter results in a generic ArgumentError, but it doesn't specify which part of the CLI structure is misconfigured. Can we improve the error message when a user provides a type that isn't in the allowed list of numeric, hash, array, or string?", "query": "valid_types argument", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lang": "en", "candidates": [{"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\ndefines Thor", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "It seems like passing an invalid symbol to the type option for a command-line parameter results in a generic ArgumentError, but it doesn't specify which part of the CLI structure is misconfigured. Can we improve the error message when a user provides a type that isn't in the allowed list of numeric, hash, array, or string?", "query": "valid_types argument", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "It seems like passing an invalid symbol to the type option for a command-line parameter results in a generic ArgumentError, but it doesn't specify which part of the CLI structure is misconfigured. Can we improve the error message when a user provides a type that isn't in the allowed list of numeric, hash, array, or string?", "query": "valid_types argument", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lang": "en", "candidates": [{"text": "Next: read lib/thor/group.rb lines=259-282\nread baseclass for detail", "file": "lib/thor/group.rb", "symbol": "baseclass", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=2-25\nread Argument for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=55-78\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=39-62\nread required? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "required?", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=122-145\nread baz for detail", "file": "spec/fixtures/group.thor", "symbol": "baz", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=249-272\nread banner for detail", "file": "lib/thor/group.rb", "symbol": "banner", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=7-30\nread RakeTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "RakeTask", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=309-332\nread printable_commands for detail", "file": "lib/thor.rb", "symbol": "printable_commands", "line": 309, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=62-85\nread InvocationError for detail", "file": "lib/thor/error.rb", "symbol": "InvocationError", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=75-98\nread execute! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "execute!", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=27-50\nread revoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=55-78\nread Parent for detail", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/group_spec.rb lines=223-246\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=69-92\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=269-292\nread multiple_usages for detail", "file": "spec/fixtures/script.thor", "symbol": "multiple_usages", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=107-130\nread revoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "revoke!", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=21-44\nread base for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "base", "line": 21, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "표준 에러 출력을 반환하는 메서드가 어디에 정의되어 있어?", "query": "return $stderr", "file": "lib/thor/shell/basic.rb", "symbol": "stderr", "line": 282, "lang": "ko", "candidates": [{"text": "File: spec/actions/create_link_spec.rb\nLine 33: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 66: sub_help = capture(:stderr) { SubcommandTest1::Parent.start(%w(child1 foo)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nLine 24: expect(output).to eq(\"output\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 20: out = capture(:stdout) { shell.say \"Wow! Now we have colors! \", :green }", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 10: class Parent < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 147: capture(:stderr) { File.const_set(:ALT_SEPARATOR, false) }", "file": "spec/util_spec.rb", "symbol": "", "line": 147, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 282: def stderr", "file": "lib/thor/shell/basic.rb", "symbol": "stderr", "line": 282, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 76: expect(invoke!).to eq(\" exist doc\\n\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 39: return @diff_lcs_loaded unless @diff_lcs_loaded.nil?", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 195: expect($stderr).to receive(:print).with(\"Running...\\n\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 195, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 31: #", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 21: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 13: raise ArgumentError, \"#{class_name} name can't be nil.\" if name.nil?", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 135: error = capture(:stderr) do", "file": "spec/group_spec.rb", "symbol": "", "line": 135, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nLine 3: gem_dir= File.expand_path(\"#{File.dirname(__FILE__)}/..\")", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 371: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 159: $stderr.puts(\"WARNING: unable to load thorfile #{path.inspect}: #{e.message}\")", "file": "lib/thor/util.rb", "symbol": "", "line": 159, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nLine 71: def two", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 4: DEFAULT_TERMINAL_WIDTH = 80", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 63: const_name = Thor::Util.camel_case(name.to_s).to_sym", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 69: value.class.name.downcase.to_sym", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 60: # end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 324: expect(capture(:stderr) { Barn.start(%w(paintz)) }).to eq(expected)", "file": "spec/base_spec.rb", "symbol": "", "line": 324, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "표준 에러 출력을 반환하는 메서드가 어디에 정의되어 있어?", "query": "return $stderr", "file": "lib/thor/shell/basic.rb", "symbol": "stderr", "line": 282, "lang": "ko", "candidates": [{"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "표준 에러 출력을 반환하는 메서드가 어디에 정의되어 있어?", "query": "return $stderr", "file": "lib/thor/shell/basic.rb", "symbol": "stderr", "line": 282, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "표준 에러 출력을 반환하는 메서드가 어디에 정의되어 있어?", "query": "return $stderr", "file": "lib/thor/shell/basic.rb", "symbol": "stderr", "line": 282, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/group.rb lines=207-230\nread handle_argument_error for detail", "file": "lib/thor/group.rb", "symbol": "handle_argument_error", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=65-88\nread UnknownArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=184-207\nread check_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type!", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=282-305\nread stderr for detail", "file": "lib/thor/shell/basic.rb", "symbol": "stderr", "line": 282, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=230-253\nread cow for detail", "file": "spec/fixtures/script.thor", "symbol": "cow", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=142-165\nread update for detail", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=194-217\nread thor_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "thor_yaml", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=72-95\nread handle_no_command_error for detail", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=121-144\nread handle_no_method_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_no_method_error?", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=104-127\nread F for detail", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=4-27\nread EncodingWithUtf8 for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=27-50\nread included for detail", "file": "lib/thor/rake_compat.rb", "symbol": "included", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=110-133\nread invoke_from_option for detail", "file": "lib/thor/group.rb", "symbol": "invoke_from_option", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=221-244\nread MyDefaults for detail", "file": "spec/fixtures/script.thor", "symbol": "MyDefaults", "line": 221, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I'm trying to figure out how the CLI tool maps user input to specific actions. Where is the data structure that holds the metadata and execution logic for an individual task?", "query": "command metadata structure", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lang": "en", "candidates": [{"text": "File: lib/thor/error.rb\nLine 99: end", "file": "lib/thor/error.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 278: it \"returns a list with all commands defined in this class plus superclasses\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 278, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 121: protected", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 48: else", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 13: puts \"expected #{SOME_STRING.encoding.name} to equal UTF-8\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 49: expect(error_messages.compact).to be_well_formed", "file": "spec/quality_spec.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 5: describe Thor::Actions::CreateLink, unless: windows? do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nLine 8: puts \"Invoked!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 4: class Thor", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 8: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 4: class Thor", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 3: describe Thor::Shell do", "file": "spec/shell_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nLine 64: invoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 103: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 3: class Thor", "file": "lib/thor/shell.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nLine 15: def parse(*args)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 5: attr_reader :name, :description, :enum, :required, :type, :default, :banner", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 1: class Thor", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/base_spec.rb\nLine 244: end", "file": "spec/base_spec.rb", "symbol": "", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 67: describe \"#arguments\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 365: invoke! \"doc/README\", \"more content\\n\", after: /\\A/", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 365, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 11: class Thor", "file": "lib/thor/base.rb", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 172: invoke! \"doc\"", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm trying to figure out how the CLI tool maps user input to specific actions. Where is the data structure that holds the metadata and execution logic for an individual task?", "query": "command metadata structure", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lang": "en", "candidates": [{"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm trying to figure out how the CLI tool maps user input to specific actions. Where is the data structure that holds the metadata and execution logic for an individual task?", "query": "command metadata structure", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lang": "en", "candidates": [{"text": "Next: read lib/thor/actions/file_manipulation.rb lines=398-421\nread CapturableERB for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "CapturableERB", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=21-44\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=283-306\nread pear for detail", "file": "spec/fixtures/script.thor", "symbol": "pear", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=262-285\nread argument for detail", "file": "lib/thor/base.rb", "symbol": "argument", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=43-66\nread ClassOptionGroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "ClassOptionGroupPlugin", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=128-151\nread bar for detail", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=95-118\nread RequiredArgumentMissingError for detail", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=26-49\nread insert_into_file! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=101-124\nread map for detail", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=692-715\nread build_command_tree for detail", "file": "lib/thor.rb", "symbol": "build_command_tree", "line": 692, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=248-271\nread run for detail", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=83-106\nread convert_key for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "convert_key", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Wo wird das Szenario ohne Verknüpfungen definiert?", "query": "no relations", "file": "spec/fixtures/script.thor", "symbol": "no_relations", "line": 351, "lang": "de", "candidates": [{"text": "File: spec/tree_spec.rb\nLine 33: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/subcommand1/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 237: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 237, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 381: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 381, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 37: expect(argument(:foo, type: :string).usage).to eq(\"FOO\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 1: require \"helper\"", "file": "spec/group_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 67: shell.padding += 1", "file": "lib/thor/shell.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 5: describe \"file's encoding\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 13: else", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 2: require \"thor/runner\"", "file": "spec/runner_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 79: @spell_checker ||= DidYouMean::SpellChecker.new(dictionary: error.switches)", "file": "lib/thor/error.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 2: require \"thor/base\"", "file": "spec/encoding_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 256: it \"tracks a single subclass across multiple files\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 5: SOME_STRING = \"Some ������\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 44: expect(runner.options.force).not_to be true", "file": "spec/actions_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 2: include Thor::Actions", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 108: else", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 691: MyOptionScript.command_help(shell, \"no_relations\")", "file": "spec/thor_spec.rb", "symbol": "", "line": 691, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 351: def no_relations", "file": "spec/fixtures/script.thor", "symbol": "no_relations", "line": 351, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nLine 55: else", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 4: class EncodingOther < Thor", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 20: expect(capture(:stdout) { Thor::Sandbox::EncodingImplicit.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 8: SimpleCov.start do", "file": "spec/helper.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 22: @depth += 1", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 12: output_diff_line(diff)", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Wo wird das Szenario ohne Verknüpfungen definiert?", "query": "no relations", "file": "spec/fixtures/script.thor", "symbol": "no_relations", "line": 351, "lang": "de", "candidates": [{"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines no_relations", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Wo wird das Szenario ohne Verknüpfungen definiert?", "query": "no relations", "file": "spec/fixtures/script.thor", "symbol": "no_relations", "line": 351, "lang": "de", "candidates": [{"text": "Next: read spec/actions/empty_directory_spec.rb lines=21-44\nread base for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "base", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=52-75\nread animal for detail", "file": "spec/register_spec.rb", "symbol": "animal", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=66-89\nread PluginWithDefaultMultipleArguments for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefaultMultipleArguments", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=556-579\nread dynamic_command_class for detail", "file": "lib/thor.rb", "symbol": "dynamic_command_class", "line": 556, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=65-88\nread peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=72-95\nread format_cell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "format_cell", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=567-590\nread namespace for detail", "file": "lib/thor/base.rb", "symbol": "namespace", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=314-337\nread uncomment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "uncomment_lines", "line": 314, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=98-121\nread WhinyGenerator for detail", "file": "spec/fixtures/group.thor", "symbol": "WhinyGenerator", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=110-133\nread G for detail", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=62-85\nread source_root for detail", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=351-374\nread no_relations for detail", "file": "spec/fixtures/script.thor", "symbol": "no_relations", "line": 351, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=64-87\nread relative_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "relative_matches", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Il semble y avoir un problème avec la gestion des options mutuellement exclusives lorsqu'elles sont imbriquées dans des blocs de contraintes de type 'au moins un'. Le comportement de validation des options ne semble pas respecter la hiérarchie des règles de présence lorsqu'on mélange des groupes d'exclusivité et de présence minimale.", "query": "exclusive at_least_one", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/script.thor\nLine 286: class MyClassOptionScript < Thor", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/options_spec.rb\nLine 134: it \"correctly recognizes things that look kind of like options, but aren't, as not options\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 583: def start(given_args = ARGV, config = {})", "file": "lib/thor/base.rb", "symbol": "", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 15: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 121: BoringVendorProvidedCLI.register(", "file": "spec/register_spec.rb", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 101: it \"does not change the file if already includes content using before with capture\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 41: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 145: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 126: content = invoke!(\"doc/components\", \"docs/components\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 75: expect(MyClassOptionScript.class_exclusive_option_names.size).to be(1)", "file": "spec/base_spec.rb", "symbol": "", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 2: require \"thor/base\"", "file": "spec/encoding_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 591: content = capture(:stdout) { MyClassOptionScript.help(shell) }", "file": "spec/thor_spec.rb", "symbol": "", "line": 591, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nLine 42: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 62: a[0] == :help ? -1 : a[0] <=> b[0]", "file": "spec/sort_spec.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 34: expect(Thor::Base.shell).to eq(shell.class)", "file": "spec/shell_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 116: }", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 54: end", "file": "spec/base_spec.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 12: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 138: expect(out.chomp).to eq(\"\\e[1m\\e[31m conflict\\e[0m README\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 95: end", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 9: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 2: Correctable = if defined?(DidYouMean::SpellChecker) && defined?(DidYouMean::Correctable) # rubocop:disable Naming/ConstantName", "file": "lib/thor/error.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 58: default: [\"one\",\"two\"]", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Il semble y avoir un problème avec la gestion des options mutuellement exclusives lorsqu'elles sont imbriquées dans des blocs de contraintes de type 'au moins un'. Le comportement de validation des options ne semble pas respecter la hiérarchie des règles de présence lorsqu'on mélange des groupes d'exclusivité et de présence minimale.", "query": "exclusive at_least_one", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lang": "fr", "candidates": [{"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines MyClassOptionScript", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Il semble y avoir un problème avec la gestion des options mutuellement exclusives lorsqu'elles sont imbriquées dans des blocs de contraintes de type 'au moins un'. Le comportement de validation des options ne semble pas respecter la hiérarchie des règles de présence lorsqu'on mélange des groupes d'exclusivité et de présence minimale.", "query": "exclusive at_least_one", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lang": "fr", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=793-816\nread dispatch for detail", "file": "lib/thor/base.rb", "symbol": "dispatch", "line": 793, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=155-178\nread attr_reader for detail", "file": "lib/thor/base.rb", "symbol": "attr_reader", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=80-103\nread Defined for detail", "file": "spec/fixtures/invoke.thor", "symbol": "Defined", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=72-95\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=225-248\nread current_is_value? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_value?", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=50-73\nread PathCompletion for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "PathCompletion", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=43-66\nread show_default? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "show_default?", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=64-87\nread last? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=29-52\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=103-126\nread truncate for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "truncate", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=4-27\nread EncodingWithUtf8 for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=326-349\nread unix? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "unix?", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=276-299\nread _invoke_for_class_method for detail", "file": "lib/thor/group.rb", "symbol": "_invoke_for_class_method", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=72-95\nread handle_no_command_error for detail", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=133-156\nread invoke_all for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_all", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=58-81\nread matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "matches", "line": 58, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "我想看看这个命令行工具类是如何生成帮助信息的展示行。能不能帮我找找负责拼接命令名称和用法说明的那部分逻辑?", "query": "usage banner", "file": "lib/thor/group.rb", "symbol": "banner", "line": 249, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/group.thor\nLine 20: :banner => \"THREE\", :aliases => \"-t\"", "file": "spec/fixtures/group.thor", "symbol": "", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 160: # :banner - String to show on usage notes.", "file": "lib/thor.rb", "symbol": "", "line": 160, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 80: # end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 82: context \"specifying :verbose => false\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 26: it \"a command that does not raise a Thor::Error exits with a status of 0\" do", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 5: attr_reader :name, :description, :enum, :required, :type, :default, :banner", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 257: # :banner - String to show on usage notes.", "file": "lib/thor/base.rb", "symbol": "", "line": 257, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nLine 82: context \"specifying :verbose => false\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 247: it \"uses banner when supplied\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 247, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nLine 182: end.to raise_error(ArgumentError, \"An option cannot be boolean and required.\")", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 47: description = non_namespaced_name", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 48: end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 122: it \"creates the file if the file collision menu returns true\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 1: require \"thor\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 84: sample = if banner && !banner.to_s.empty?", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 84, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nLine 43: it \"uses rake tasks descriptions on thor\" do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 13: puts \"hooray!\"", "file": "spec/register_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 83: # skipped. If both are false, show the file_collision menu, if the menu", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 210: # inject_into_class \"app/controllers/application_controller.rb\", \"ApplicationController\", \" filter_parameter :password\\n\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 208: def disable_required_check?(command_name) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 47: it \"gets usage from rake tasks name\" do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 47: if config[:symbolic]", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 102: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 249: def banner", "file": "lib/thor/group.rb", "symbol": "banner", "line": 249, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "我想看看这个命令行工具类是如何生成帮助信息的展示行。能不能帮我找找负责拼接命令名称和用法说明的那部分逻辑?", "query": "usage banner", "file": "lib/thor/group.rb", "symbol": "banner", "line": 249, "lang": "zh", "candidates": [{"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "我想看看这个命令行工具类是如何生成帮助信息的展示行。能不能帮我找找负责拼接命令名称和用法说明的那部分逻辑?", "query": "usage banner", "file": "lib/thor/group.rb", "symbol": "banner", "line": 249, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "我想看看这个命令行工具类是如何生成帮助信息的展示行。能不能帮我找找负责拼接命令名称和用法说明的那部分逻辑?", "query": "usage banner", "file": "lib/thor/group.rb", "symbol": "banner", "line": 249, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=10-33\nread initialize for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "initialize", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=61-84\nread world for detail", "file": "spec/fixtures/group.thor", "symbol": "world", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=66-89\nread PluginWithDefaultMultipleArguments for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefaultMultipleArguments", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=114-137\nread handle_argument_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_argument_error?", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=100-123\nread E for detail", "file": "spec/fixtures/invoke.thor", "symbol": "E", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=68-91\nread absolute_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "absolute_matches", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=89-112\nread parse for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=714-737\nread bar for detail", "file": "spec/thor_spec.rb", "symbol": "bar", "line": 714, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=363-386\nread check_unknown_options? for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options?", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/parser/argument_spec.rb lines=5-28\nread argument for detail", "file": "spec/parser/argument_spec.rb", "symbol": "argument", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=115-138\nread H for detail", "file": "spec/fixtures/invoke.thor", "symbol": "H", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=47-70\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=4-27\nread Shell for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=45-68\nread invocation_blocks for detail", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=249-272\nread banner for detail", "file": "lib/thor/group.rb", "symbol": "banner", "line": 249, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=96-119\nread print_border_separator for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print_border_separator", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=326-349\nread unix? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "unix?", "line": 326, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Je cherche la classe qui gère les commandes dynamiques pour intercepter les appels de méthodes manquantes. Explique comment elle redéfinit la méthode run pour vérifier l'existence de la méthode avant d'exécuter la logique par défaut.", "query": "dynamic command method missing", "file": "lib/thor/command.rb", "symbol": "DynamicCommand", "line": 137, "lang": "fr", "candidates": [{"text": "File: lib/thor/group.rb\nLine 255: Thor::DynamicCommand.new(namespace, class_options)", "file": "lib/thor/group.rb", "symbol": "", "line": 255, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 557: Thor::DynamicCommand", "file": "lib/thor.rb", "symbol": "", "line": 557, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 219: path = find_in_source_paths(path) unless is_uri", "file": "lib/thor/actions.rb", "symbol": "", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 96: expect(@content).to match(/finished counting/)", "file": "spec/group_spec.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 56: # of the returned String.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 29: para.split(\"\\n\").each do |line|", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 137: class DynamicCommand < Command", "file": "lib/thor/command.rb", "symbol": "DynamicCommand", "line": 137, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/command_spec.rb\nLine 42: expect(Thor::DynamicCommand.new(\"command\").name).to eq(\"command\")", "file": "spec/command_spec.rb", "symbol": "", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 34: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 298: #", "file": "lib/thor/actions.rb", "symbol": "", "line": 298, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 26: shell.padding = 6", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 118: say_status :create, :green", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 93: Regexp.last_match(-1).downcase", "file": "lib/thor/util.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 31: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 19: namespace :hiper_mega do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 124: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 19: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 20: private", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 6: require \"readline\"", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 25: def pop", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 32: chmod(resulting_destination, mode, config)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 42: desc \"one FIRST_NAME\", \"invoke one\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche la classe qui gère les commandes dynamiques pour intercepter les appels de méthodes manquantes. Explique comment elle redéfinit la méthode run pour vérifier l'existence de la méthode avant d'exécuter la logique par défaut.", "query": "dynamic command method missing", "file": "lib/thor/command.rb", "symbol": "DynamicCommand", "line": 137, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche la classe qui gère les commandes dynamiques pour intercepter les appels de méthodes manquantes. Explique comment elle redéfinit la méthode run pour vérifier l'existence de la méthode avant d'exécuter la logique par défaut.", "query": "dynamic command method missing", "file": "lib/thor/command.rb", "symbol": "DynamicCommand", "line": 137, "lang": "fr", "candidates": [{"text": "Next: read lib/thor.rb lines=363-386\nread check_unknown_options? for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options?", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=80-103\nread ask for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=256-279\nread parse_boolean for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_boolean", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=137-160\nread DynamicCommand for detail", "file": "lib/thor/command.rb", "symbol": "DynamicCommand", "line": 137, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=239-262\nread inject_into_module for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_module", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=153-176\nread what for detail", "file": "spec/fixtures/script.thor", "symbol": "what", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=43-66\nread show_default? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "show_default?", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=138-161\nread potentially_ambiguous_but_hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous_but_hidden", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=13-36\nread invoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=32-55\nread echo? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "echo?", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=90-113\nread snake_case for detail", "file": "lib/thor/util.rb", "symbol": "snake_case", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "터미널에 데이터를 표 형식으로 출력하는 기능을 구현 중입니다. 행렬 데이터를 넘겨주면 지정된 옵션에 따라 테두리나 들여쓰기를 적용해 출력해 주는 메서드가 어디에 있나요?\n\n출력 시 첫 번째 열의 너비나 테두리 유무를 설정할 수 있는 옵션이 포함된 구현체를 찾고 있습니다.", "query": "print table", "file": "lib/thor/shell/basic.rb", "symbol": "print_table", "line": 180, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions/create_link.rb\nLine 34: #", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 84: key.is_a?(Symbol) ? key.to_s : key", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 301: shell.print_table(list, indent: 2, truncate: true)", "file": "lib/thor.rb", "symbol": "", "line": 301, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 180: def print_table(array, options = {}) # rubocop:disable Metrics/MethodLength", "file": "lib/thor/shell/basic.rb", "symbol": "print_table", "line": 180, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_file_spec.rb\nLine 58: expect(invoke!).to be_empty", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 129: class HiddenCommand < Command", "file": "lib/thor/command.rb", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 316: print_table(list, truncate: true)", "file": "lib/thor/runner.rb", "symbol": "", "line": 316, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nLine 342: describe \"#print_table\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 342, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 673: shell.print_table(list, indent: 2)", "file": "lib/thor/base.rb", "symbol": "", "line": 673, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 26: say \"+ #{diff.new_element.chomp}\", :green, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 14: expect(File.exist?(destination)).to be true", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 29: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 42: it \"doesn't show hidden commands\" do", "file": "spec/tree_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 1: #!/usr/bin/ruby", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 133: )", "file": "spec/register_spec.rb", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 24: SHELL_DELEGATED_METHODS = [:ask, :error, :set_color, :yes?, :no?, :say, :say_error, :say_status, :print_in_columns, :print_table, :print_wrapped, :file_collision, :terminal_width]", "file": "lib/thor/shell.rb", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 142: content = capture(:stdout) { Thor::Runner.start }", "file": "spec/runner_spec.rb", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 16: else", "file": "lib/thor/shell.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 93: # break old APIs unnecessarily :P", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 53: end", "file": "spec/base_spec.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 381: #", "file": "lib/thor/base.rb", "symbol": "", "line": 381, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 39: def required?", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 40: shell.indent do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "터미널에 데이터를 표 형식으로 출력하는 기능을 구현 중입니다. 행렬 데이터를 넘겨주면 지정된 옵션에 따라 테두리나 들여쓰기를 적용해 출력해 주는 메서드가 어디에 있나요?\n\n출력 시 첫 번째 열의 너비나 테두리 유무를 설정할 수 있는 옵션이 포함된 구현체를 찾고 있습니다.", "query": "print table", "file": "lib/thor/shell/basic.rb", "symbol": "print_table", "line": 180, "lang": "ko", "candidates": [{"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "터미널에 데이터를 표 형식으로 출력하는 기능을 구현 중입니다. 행렬 데이터를 넘겨주면 지정된 옵션에 따라 테두리나 들여쓰기를 적용해 출력해 주는 메서드가 어디에 있나요?\n\n출력 시 첫 번째 열의 너비나 테두리 유무를 설정할 수 있는 옵션이 포함된 구현체를 찾고 있습니다.", "query": "print table", "file": "lib/thor/shell/basic.rb", "symbol": "print_table", "line": 180, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "터미널에 데이터를 표 형식으로 출력하는 기능을 구현 중입니다. 행렬 데이터를 넘겨주면 지정된 옵션에 따라 테두리나 들여쓰기를 적용해 출력해 주는 메서드가 어디에 있나요?\n\n출력 시 첫 번째 열의 너비나 테두리 유무를 설정할 수 있는 옵션이 포함된 구현체를 찾고 있습니다.", "query": "print table", "file": "lib/thor/shell/basic.rb", "symbol": "print_table", "line": 180, "lang": "ko", "candidates": [{"text": "Next: read spec/actions/create_file_spec.rb lines=17-40\nread invoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=99-122\nread aliases_for_usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "aliases_for_usage", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=13-36\nread invoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=367-390\nread concat for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "concat", "line": 367, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=68-91\nread absolute_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "absolute_matches", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=180-203\nread print_table for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_table", "line": 180, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/actions/create_link_spec.rb lines=35-58\nread revoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "revoke!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=6-29\nread WrappedPrinter for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "WrappedPrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=131-154\nread validate_default_type! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate_default_type!", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=43-66\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=61-84\nread world for detail", "file": "spec/fixtures/group.thor", "symbol": "world", "line": 61, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "The method that returns the default parent class for command-line interface construction seems to be returning a hardcoded reference instead of allowing for dynamic inheritance or configuration. This makes it difficult to extend the library with custom base classes.", "query": "return default parent", "file": "lib/thor.rb", "symbol": "baseclass", "line": 552, "lang": "en", "candidates": [{"text": "File: lib/thor/base.rb\nLine 721: # and file into baseclass.", "file": "lib/thor/base.rb", "symbol": "", "line": 721, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 313: exclusive do", "file": "spec/fixtures/script.thor", "symbol": "", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 47: else", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 12: else", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 269: it \"raises an error if a command with reserved word is defined\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 56: create string: nil, numeric: nil", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 158: end.not_to raise_error", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 169: @content = capture(:stdout) { MyCounter.help(Thor::Base.shell.new) }", "file": "spec/base_spec.rb", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 14: raise ArgumentError, \"Type :#{type} is not valid for #{class_name.downcase}s.\" if type && !valid_type?(type)", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 26: it \"uses color to say status\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 90: runner.destination_root = \"/app\"", "file": "spec/actions_spec.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 59: result", "file": "spec/helper.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 12: def initialize(hash = {})", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 7: def bugs", "file": "spec/fixtures/help.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 66: execute!", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 259: def baseclass #:nodoc:", "file": "lib/thor/group.rb", "symbol": "", "line": 259, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nLine 6: puts \"bored. \"", "file": "spec/register_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 69: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 41: expect(argument(:foo, type: :numeric).usage).to eq(\"N\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 8: Bundler::GemHelper.install_tasks", "file": "Thorfile", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 552: def baseclass #:nodoc:", "file": "lib/thor.rb", "symbol": "baseclass", "line": 552, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/directory_spec.rb\nLine 106: it \"copies directories\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 20: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 32: content = capture(:stdout) { Thor::Runner.start(%w(help my_script:zoo)) }", "file": "spec/runner_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "The method that returns the default parent class for command-line interface construction seems to be returning a hardcoded reference instead of allowing for dynamic inheritance or configuration. This makes it difficult to extend the library with custom base classes.", "query": "return default parent", "file": "lib/thor.rb", "symbol": "baseclass", "line": 552, "lang": "en", "candidates": [{"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "The method that returns the default parent class for command-line interface construction seems to be returning a hardcoded reference instead of allowing for dynamic inheritance or configuration. This makes it difficult to extend the library with custom base classes.", "query": "return default parent", "file": "lib/thor.rb", "symbol": "baseclass", "line": 552, "lang": "en", "candidates": [{"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "The method that returns the default parent class for command-line interface construction seems to be returning a hardcoded reference instead of allowing for dynamic inheritance or configuration. This makes it difficult to extend the library with custom base classes.", "query": "return default parent", "file": "lib/thor.rb", "symbol": "baseclass", "line": 552, "lang": "en", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=206-229\nread PackageNameScript for detail", "file": "spec/fixtures/script.thor", "symbol": "PackageNameScript", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=143-166\nread content for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=40-63\nread animal for detail", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=20-43\nread unix? for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "unix?", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=11-34\nread build for detail", "file": "Thorfile", "symbol": "build", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=72-95\nread shift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "shift", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor.rb lines=6-29\nread readline for detail", "file": "lib/thor/line_editor.rb", "symbol": "readline", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=153-176\nread _retrieve_class_and_command for detail", "file": "lib/thor/invocation.rb", "symbol": "_retrieve_class_and_command", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=678-701\nread is_thor_reserved_word? for detail", "file": "lib/thor/base.rb", "symbol": "is_thor_reserved_word?", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=174-197\nread list for detail", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=93-116\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=43-66\nread ClassOptionGroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "ClassOptionGroupPlugin", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=83-106\nread convert_key for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "convert_key", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=46-69\nread use_path_completion? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "use_path_completion?", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=552-575\nread baseclass for detail", "file": "lib/thor.rb", "symbol": "baseclass", "line": 552, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=211-234\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 211, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "trouve la classe qui définit l'option globale et la commande imbriquée", "query": "thor subcommand option", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lang": "fr", "candidates": [{"text": "File: spec/helper.rb\nLine 80: # true if running on windows, used for conditional spec skips", "file": "spec/helper.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 90: sample = \"[#{sample}]\".dup unless required?", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 10: def self.best_available", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 79: # end", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 7: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 34: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 13: # ==== Examples", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 23: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub print_opt --opt output)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 33: ON_BLACK = \"background-color: black\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 521: # end", "file": "lib/thor/base.rb", "symbol": "", "line": 521, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 112: it \"removes the symbolic link of non-existent destination\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 80: class Defined < Thor::Group", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 4: SOME_STRING = \"Some λέξεις 一些词 🎉\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 119: \"foo\"", "file": "spec/fixtures/group.thor", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 1: class Thor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 84: invoke!", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 219: allow(FileUtils).to receive(:mkdir_p)", "file": "spec/runner_spec.rb", "symbol": "", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 77: options = base.options.merge(config)", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 181: end", "file": "spec/util_spec.rb", "symbol": "", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 78: super.merge!(shell: shell)", "file": "lib/thor/shell.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 27: expect($stdout).to receive(:print).with(\" conflict README\\n\")", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 7: SHORT_NUM = /^(-[a-z])#{NUMERIC}$/i", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 10: class Parent < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "trouve la classe qui définit l'option globale et la commande imbriquée", "query": "thor subcommand option", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lang": "fr", "candidates": [{"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\ndefines Parent", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "trouve la classe qui définit l'option globale et la commande imbriquée", "query": "thor subcommand option", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lang": "fr", "candidates": [{"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "trouve la classe qui définit l'option globale et la commande imbriquée", "query": "thor subcommand option", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=473-496\nread stop_on_unknown_option for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option", "line": 473, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=123-146\nread say_status for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "say_status", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=144-167\nread check_exclusive! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=172-195\nread validate_enum_value! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "validate_enum_value!", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=30-53\nread current_command_chain for detail", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=3-26\nread Subcommand for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Subcommand", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=594-617\nread initialize_added for detail", "file": "lib/thor.rb", "symbol": "initialize_added", "line": 594, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=1-24\nread TestSubcommands for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "TestSubcommands", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=8-31\nread encoding for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=10-33\nread Parent for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=5-28\nread print_opt for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "print_opt", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=43-66\nread indent for detail", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=80-103\nread Defined for detail", "file": "spec/fixtures/invoke.thor", "symbol": "Defined", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/base_spec.rb lines=6-29\nread hello for detail", "file": "spec/base_spec.rb", "symbol": "hello", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=129-152\nread uninstall for detail", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=64-87\nread invoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=179-202\nread names_to_switch_names for detail", "file": "lib/thor/parser/options.rb", "symbol": "names_to_switch_names", "line": 179, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Estou tentando descobrir se uma linha específica de código pertence a uma dependência externa ou ao projeto atual. Você pode me mostrar como verificar se um caminho de arquivo está contido nos diretórios de gems instaladas?", "query": "gem path check", "file": "lib/thor.rb", "symbol": "defined_in_gem?", "line": 589, "lang": "pt", "candidates": [{"text": "File: spec/group_spec.rb\nLine 130: end", "file": "spec/group_spec.rb", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 186: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 1: class Thor", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 19: it \"does not use a new line even with colors\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 62: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 1: # module: random", "file": "spec/fixtures/command.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 5: desc :bugs, \"ALL THE BUGZ!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 485: it \"does not replace the content in the file when given a block\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 485, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 4: class Thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 601: content = capture(:stdout) { MyClassOptionScript.help(shell) }", "file": "spec/thor_spec.rb", "symbol": "", "line": 601, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 589: def defined_in_gem?(caller_line) #:nodoc:", "file": "lib/thor.rb", "symbol": "defined_in_gem?", "line": 589, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 15: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 133: warning", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 189: def assign_result!(option, result)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 18: end", "file": "spec/group_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 49: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 59: if VALID_TYPES.include?(value)", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 82: expect(MyClassOptionScript.class_at_least_one_option_names.size).to be(1)", "file": "spec/base_spec.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 123: error.message =~ /^undefined method `#{name}' for #{Regexp.escape(instance.to_s)}$/", "file": "lib/thor/command.rb", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 284: when 1", "file": "lib/thor/group.rb", "symbol": "", "line": 284, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 86: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 293: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 22: expect(parse(:foo, :string).default).to be nil", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 136: # ==== Parameters", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estou tentando descobrir se uma linha específica de código pertence a uma dependência externa ou ao projeto atual. Você pode me mostrar como verificar se um caminho de arquivo está contido nos diretórios de gems instaladas?", "query": "gem path check", "file": "lib/thor.rb", "symbol": "defined_in_gem?", "line": 589, "lang": "pt", "candidates": [{"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Estou tentando descobrir se uma linha específica de código pertence a uma dependência externa ou ao projeto atual. Você pode me mostrar como verificar se um caminho de arquivo está contido nos diretórios de gems instaladas?", "query": "gem path check", "file": "lib/thor.rb", "symbol": "defined_in_gem?", "line": 589, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estou tentando descobrir se uma linha específica de código pertence a uma dependência externa ou ao projeto atual. Você pode me mostrar como verificar se um caminho de arquivo está contido nos diretórios de gems instaladas?", "query": "gem path check", "file": "lib/thor.rb", "symbol": "defined_in_gem?", "line": 589, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/actions/file_manipulation.rb lines=367-390\nread concat for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "concat", "line": 367, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=207-230\nread file_collision for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/command.thor lines=10-33\nread describe for detail", "file": "spec/fixtures/command.thor", "symbol": "describe", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/parser/option_spec.rb lines=9-32\nread option for detail", "file": "spec/parser/option_spec.rb", "symbol": "option", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=52-75\nread animal for detail", "file": "spec/register_spec.rb", "symbol": "animal", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=1-24\nread TestSubcommands for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "TestSubcommands", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=89-112\nread parse for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=67-90\nread valid_type? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=12-35\nread define for detail", "file": "spec/rake_compat_spec.rb", "symbol": "define", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=398-421\nread CapturableERB for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "CapturableERB", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=228-251\nread dispatch for detail", "file": "lib/thor/group.rb", "symbol": "dispatch", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=243-266\nread ChildDefault for detail", "file": "spec/fixtures/script.thor", "symbol": "ChildDefault", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=68-91\nread reverse_merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=123-146\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=137-160\nread DynamicCommand for detail", "file": "lib/thor/command.rb", "symbol": "DynamicCommand", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=173-196\nread check_unknown_options for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=589-612\nread defined_in_gem? for detail", "file": "lib/thor.rb", "symbol": "defined_in_gem?", "line": 589, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=138-161\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 138, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Como é feita a comparação para saber se o conteúdo que vou gravar já existe no destino?", "query": "content identical check", "file": "lib/thor/actions/create_file.rb", "symbol": "identical?", "line": 45, "lang": "pt", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nLine 64: def last?", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 130: expect(Thor::Util.thor_classes_in(MyScript::AnotherScript)).to be_empty", "file": "spec/util_spec.rb", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 111: switch = $1", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 41: # destination:: Relative path to the destination root", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 26: end.compact!", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 159: klass, command = self.class.prepare_for_invocation(nil, name)", "file": "lib/thor/invocation.rb", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 63: raise ArgumentError, \"An argument cannot be required and have default value.\" if required? && !default.nil?", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 24: GREEN = \"\\e[32m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 6: @argument ||= Thor::Argument.new(name, options)", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 45: expect(parse(\"-\")[\"array\"]).to eq(%w(-))", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 3: require \"tempfile\"", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 1: $LOAD_PATH.unshift File.expand_path(\"../lib\", __FILE__)", "file": "Thorfile", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 45: def identical?", "file": "lib/thor/actions/create_file.rb", "symbol": "identical?", "line": 45, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 73: # get \"http://gist.github.com/103208\", \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 58: else", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 108: @destination_stack[0] = File.expand_path(root || \"\")", "file": "lib/thor/actions.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 95: end", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 57: type: :array,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 186: revoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 103: it \"falls back in the namespace:command look up even if a full namespace does not match\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 15: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 43: it \"accepts - as an array argument\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 23: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 75: when :string, :default", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Como é feita a comparação para saber se o conteúdo que vou gravar já existe no destino?", "query": "content identical check", "file": "lib/thor/actions/create_file.rb", "symbol": "identical?", "line": 45, "lang": "pt", "candidates": [{"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Como é feita a comparação para saber se o conteúdo que vou gravar já existe no destino?", "query": "content identical check", "file": "lib/thor/actions/create_file.rb", "symbol": "identical?", "line": 45, "lang": "pt", "candidates": [{"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Como é feita a comparação para saber se o conteúdo que vou gravar já existe no destino?", "query": "content identical check", "file": "lib/thor/actions/create_file.rb", "symbol": "identical?", "line": 45, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/runner.rb lines=129-152\nread uninstall for detail", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=473-496\nread stop_on_unknown_option for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option", "line": 473, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=108-131\nread are_colors_supported? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=123-146\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=123-146\nread say_status for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "say_status", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=155-178\nread attr_reader for detail", "file": "lib/thor/base.rb", "symbol": "attr_reader", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=45-68\nread identical? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "identical?", "line": 45, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/exit_status.thor lines=14-37\nread ok for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=20-43\nread RakeCompat for detail", "file": "lib/thor/rake_compat.rb", "symbol": "RakeCompat", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=377-400\nread merge_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge_tool", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=42-65\nread formatted_usage for detail", "file": "lib/thor/command.rb", "symbol": "formatted_usage", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=189-212\nread assign_result! for detail", "file": "lib/thor/parser/options.rb", "symbol": "assign_result!", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=253-276\nread thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=72-95\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=74-97\nread thor_classes_in for detail", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "zeige die methoden zur konvertierung von namespaces und zum laden von thorfiles", "query": "thor namespace util", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lang": "de", "candidates": [{"text": "File: lib/thor/actions/create_file.rb\nLine 84: # returns true, force it, otherwise skip.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 1: class Thor", "file": "lib/thor/invocation.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 7: true", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 6: class Thor", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 393: File.open(path, \"wb\") { |file| file.write(content) }", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 15: word = word.gsub(/\\n\\005/, \"\\n\").gsub(/\\005/, \"\\n\")", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 206: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 5: describe Thor::Actions::CreateLink, unless: windows? do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 347: create \"--cheese\" => :string", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 347, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 29: # Set the terminal's foreground HTML color to white.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 159: end", "file": "spec/base_spec.rb", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 128: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 6: # Inherit from Thor::Shell::Basic and add set_color behavior. Check", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 3: class Amazing < Thor", "file": "spec/fixtures/command.thor", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 62: private", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 462: [\"Name\", \"Number\", \"Color\"], # rubocop: disable Style/WordArray", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 462, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 102: thor_yaml[as] = {", "file": "lib/thor/runner.rb", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 14: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 53: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 1: class Thor", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nLine 3: describe Thor::Shell::Color do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 3: class Thor", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "zeige die methoden zur konvertierung von namespaces und zum laden von thorfiles", "query": "thor namespace util", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lang": "de", "candidates": [{"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "zeige die methoden zur konvertierung von namespaces und zum laden von thorfiles", "query": "thor namespace util", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lang": "de", "candidates": [{"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "zeige die methoden zur konvertierung von namespaces und zum laden von thorfiles", "query": "thor namespace util", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lang": "de", "candidates": [{"text": "Next: read lib/thor.rb lines=589-612\nread defined_in_gem? for detail", "file": "lib/thor.rb", "symbol": "defined_in_gem?", "line": 589, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=6-29\nread WrappedPrinter for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "WrappedPrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=39-62\nread B for detail", "file": "spec/fixtures/invoke.thor", "symbol": "B", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=493-516\nread print_at_least_one_required_options for detail", "file": "lib/thor.rb", "symbol": "print_at_least_one_required_options", "line": 493, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=291-314\nread gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=143-166\nread content for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=138-161\nread subclass_files for detail", "file": "lib/thor/base.rb", "symbol": "subclass_files", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=12-35\nread define for detail", "file": "spec/rake_compat_spec.rb", "symbol": "define", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=68-91\nread ClearCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "ClearCounter", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=17-40\nread Util for detail", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=4-27\nread Sandbox for detail", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=84-107\nread unshift for detail", "file": "lib/thor/parser/options.rb", "symbol": "unshift", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=24-47\nread find_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_by_namespace", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=58-81\nread namespaces_in_content for detail", "file": "lib/thor/util.rb", "symbol": "namespaces_in_content", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=249-272\nread banner for detail", "file": "lib/thor/group.rb", "symbol": "banner", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=163-186\nread method_option for detail", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=122-145\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=73-96\nread on_conflict_behavior for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "on_conflict_behavior", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Como é feita a busca de nomes de opções exclusivas da classe na hierarquia de herança?", "query": "class exclusive options", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lang": "pt", "candidates": [{"text": "File: lib/thor/nested_context.rb\nLine 22: @depth += 1", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 360: end", "file": "spec/base_spec.rb", "symbol": "", "line": 360, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 66: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 89: content = capture(:stderr) { Thor::Runner.start }", "file": "spec/runner_spec.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 403: def class_exclusive_option_names", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 4: require \"thor/rake_compat\"", "file": "Thorfile", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 260: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 260, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 225: it \"works w/o command options\" do", "file": "spec/register_spec.rb", "symbol": "", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 36: initialize_thorfiles(meth)", "file": "lib/thor/runner.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 485: opts += class_exclusive_option_names", "file": "lib/thor.rb", "symbol": "", "line": 485, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nLine 98: class MalformattedArgumentError < InvocationError", "file": "lib/thor/error.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 86: else", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 70: required: false,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 52: options[:symbolic]", "file": "spec/fixtures/group.thor", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 73: describe \"#class_exclusive_option_names\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 73, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nLine 40: expect(task).to be", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 282: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 189: require \"fileutils\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 23: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 10: def self.best_available", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 70: remove_class_option :third", "file": "spec/fixtures/group.thor", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Como é feita a busca de nomes de opções exclusivas da classe na hierarquia de herança?", "query": "class exclusive options", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lang": "pt", "candidates": [{"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Como é feita a busca de nomes de opções exclusivas da classe na hierarquia de herança?", "query": "class exclusive options", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Como é feita a busca de nomes de opções exclusivas da classe na hierarquia de herança?", "query": "class exclusive options", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/error.rb lines=43-66\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=68-91\nread absolute_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "absolute_matches", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=79-102\nread shift for detail", "file": "lib/thor/parser/options.rb", "symbol": "shift", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=403-426\nread class_exclusive_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=89-112\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=129-152\nread uninstall for detail", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=103-126\nread convert_encoded_instructions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "convert_encoded_instructions", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=83-106\nread invoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "invoke!", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=133-156\nread find_in_source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "find_in_source_paths", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=161-184\nread class_options_help for detail", "file": "lib/thor/group.rb", "symbol": "class_options_help", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=31-54\nread file for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=8-31\nread action for detail", "file": "spec/actions_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell.rb lines=77-100\nread _shared_configuration for detail", "file": "lib/thor/shell.rb", "symbol": "_shared_configuration", "line": 77, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "这个子命令在测试失败时会直接退出进程吗?", "query": "exit_on_failure", "file": "spec/subcommand_spec.rb", "symbol": "exit_on_failure?", "line": 59, "lang": "zh", "candidates": [{"text": "File: lib/thor/runner.rb\nLine 122: desc \"version\", \"Show Thor version\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 57: command = Thor::Command.new(\"can_has\", nil, nil, nil, nil, foo: true, bar: :required)", "file": "spec/command_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 59: def self.exit_on_failure?", "file": "spec/subcommand_spec.rb", "symbol": "exit_on_failure?", "line": 59, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 228: # data:: the data to append to the class, can be also given as a block.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 15: failing_lines << number + 1 if line =~ /\\t/", "file": "spec/quality_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 33: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 307: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 25: # Set the terminal's foreground HTML color to magenta.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 449: def command_exists?(command_name) #:nodoc:", "file": "lib/thor.rb", "symbol": "", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 63: describe \"#run\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 13: p 2", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 70: shell.padding -= 1", "file": "lib/thor/shell.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 691: end", "file": "lib/thor/base.rb", "symbol": "", "line": 691, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 81: end", "file": "lib/thor/command.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 92: base.template(file_source, file_destination[0..-4], config, &@block)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 118: end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 375: expect(File.read(file)).to eq(\"__start__\\nREADME\\n__end__\\nanother stuff\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 375, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 77: def _shared_configuration #:nodoc:", "file": "lib/thor/shell.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 603: expect(File.binread(file)).to eq(\"module ApplicationHelper\\n def help; 'help'; end\\nend\\n\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 603, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 63: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 92: if boolean? && name != \"force\" && !name.match(/\\A(no|skip)[\\-_]/)", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 47: # directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 143: it \"colors a string with a foreground color\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 11: ENV[\"THOR_COLUMNS\"].to_i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "这个子命令在测试失败时会直接退出进程吗?", "query": "exit_on_failure", "file": "spec/subcommand_spec.rb", "symbol": "exit_on_failure?", "line": 59, "lang": "zh", "candidates": [{"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nsibling in spec", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\ndefines exit_on_failure?", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nsibling in spec", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nsibling in spec", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nsibling in spec", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "这个子命令在测试失败时会直接退出进程吗?", "query": "exit_on_failure", "file": "spec/subcommand_spec.rb", "symbol": "exit_on_failure?", "line": 59, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "这个子命令在测试失败时会直接退出进程吗?", "query": "exit_on_failure", "file": "spec/subcommand_spec.rb", "symbol": "exit_on_failure?", "line": 59, "lang": "zh", "candidates": [{"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=129-152\nread HiddenCommand for detail", "file": "lib/thor/command.rb", "symbol": "HiddenCommand", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=48-71\nread Child1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "Child1", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/group_spec.rb lines=223-246\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=351-374\nread no_relations for detail", "file": "spec/fixtures/script.thor", "symbol": "no_relations", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=123-146\nread version for detail", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=78-101\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=58-81\nread initialize for detail", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=55-78\nread Parent for detail", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=583-606\nread start for detail", "file": "lib/thor/base.rb", "symbol": "start", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=28-51\nread add_to_history? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "add_to_history?", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=130-153\nread say_status for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_status", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=59-82\nread exit_on_failure? for detail", "file": "spec/subcommand_spec.rb", "symbol": "exit_on_failure?", "line": 59, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=47-70\nread SubcommandTest1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "SubcommandTest1", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=793-816\nread dispatch for detail", "file": "lib/thor/base.rb", "symbol": "dispatch", "line": 793, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=51-74\nread six for detail", "file": "spec/fixtures/group.thor", "symbol": "six", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=50-73\nread foo for detail", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Locate the exception raised when a command is called without one of its mandatory parameters during execution.", "query": "missing argument error", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lang": "en", "candidates": [{"text": "File: spec/parser/arguments_spec.rb\nLine 57: expect { parse }.to raise_error(Thor::RequiredArgumentMissingError, \"No value provided for required arguments 'string', 'numeric'\")", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 57, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nLine 17: DEFAULT_TERMINAL_WIDTH", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 55: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 6: class << self", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 130: # What to do when the destination file already exists.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 51: exists_and_identical?(\"doc\", \"doc\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 3: require \"bundler\"", "file": "Thorfile", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 9: \"#{filename} uses inconsistent single quotes on lines #{failing_lines.join(', ')}\" unless failing_lines.empty?", "file": "spec/quality_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 116: class ParentGroup < Thor::Group", "file": "spec/fixtures/group.thor", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 13: def readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 74: if identical?", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 192: raise RequiredArgumentMissingError, \"No value provided for required #{class_name} '#{names}'\"", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 192, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nLine 37: list.reverse!", "file": "spec/sort_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 54: desc \"a\", \"First Command\"", "file": "spec/sort_spec.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 348: it \"does not replace if pretending\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 348, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 95: class RequiredArgumentMissingError < InvocationError", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/color_spec.rb\nLine 64: out = capture(:stdout) do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 73: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 18: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 13: $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), \"..\", \"lib\"))", "file": "spec/helper.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 21: it \"sorts them lexicographillay\" do", "file": "spec/sort_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 195: expect { parse }.to raise_error(Thor::RequiredArgumentMissingError, \"No value provided for required options '--foo'\")", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 195, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nLine 363: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 23: expect(thor_command(\"error\")).to eq(1)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Locate the exception raised when a command is called without one of its mandatory parameters during execution.", "query": "missing argument error", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lang": "en", "candidates": [{"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Locate the exception raised when a command is called without one of its mandatory parameters during execution.", "query": "missing argument error", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lang": "en", "candidates": [{"text": "Next: read lib/thor/error.rb lines=20-43\nread Error for detail", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=307-330\nread class_options for detail", "file": "lib/thor/base.rb", "symbol": "class_options", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=427-450\nread remove_argument for detail", "file": "lib/thor/base.rb", "symbol": "remove_argument", "line": 427, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=325-348\nread subcommand_classes for detail", "file": "lib/thor.rb", "symbol": "subcommand_classes", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=72-95\nread replace for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "replace", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=111-134\nread group for detail", "file": "spec/fixtures/group.thor", "symbol": "group", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=123-146\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=671-694\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=27-50\nread dynamic_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=225-248\nread initialize_thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "initialize_thorfiles", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=133-156\nread potentially_ambiguous for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=403-426\nread class_exclusive_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=95-118\nread RequiredArgumentMissingError for detail", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=24-47\nread UndefinedCommandError for detail", "file": "lib/thor/error.rb", "symbol": "UndefinedCommandError", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=531-554\nread no_commands for detail", "file": "lib/thor/base.rb", "symbol": "no_commands", "line": 531, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=15-38\nread entered? for detail", "file": "lib/thor/nested_context.rb", "symbol": "entered?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=100-123\nread private_method? for detail", "file": "lib/thor/command.rb", "symbol": "private_method?", "line": 100, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "심볼과 문자열 키를 구분하지 않고 동일하게 취급하여 값을 가져오거나 설정하는 기능이 구현된 곳을 찾아주세요.", "query": "indifferent access hash", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lang": "ko", "candidates": [{"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 11: class HashWithIndifferentAccess < ::Hash #:nodoc:", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 28: def add_to_history?", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 22: Rake::Task[\"release\"].invoke", "file": "Thorfile", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 211: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 172: config ||= {}", "file": "lib/thor/invocation.rb", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 42: expect(Thor::Util.namespace_from_thor_class(Thor::CoreExt::HashWithIndifferentAccess)).to eq(\"thor:core_ext:hash_with_indifferent_access\")", "file": "spec/util_spec.rb", "symbol": "", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 34: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 16: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 68: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 88: desc \"default\", \"default subcommand\"", "file": "spec/register_spec.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 14: def print(array)", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 46: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 14: def ok", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 66: Thor::RakeCompat.rake_classes << new_klass", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 70: remove_class_option :third", "file": "spec/fixtures/group.thor", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 65: package = :directory", "file": "lib/thor/runner.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 71: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 6: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 71: # supplied to B. This allows lazy parse of options. Let's suppose you have", "file": "lib/thor/invocation.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 17: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 16: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 77: expect(out.chomp).to eq(\"Wow! Now we have colors!\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 139: assigns = Thor::CoreExt::HashWithIndifferentAccess.new(@assigns)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 139, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 27: def print_default", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "심볼과 문자열 키를 구분하지 않고 동일하게 취급하여 값을 가져오거나 설정하는 기능이 구현된 곳을 찾아주세요.", "query": "indifferent access hash", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lang": "ko", "candidates": [{"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "심볼과 문자열 키를 구분하지 않고 동일하게 취급하여 값을 가져오거나 설정하는 기능이 구현된 곳을 찾아주세요.", "query": "indifferent access hash", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lang": "ko", "candidates": [{"text": "Next: read spec/actions/file_manipulation_spec.rb lines=567-590\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=143-166\nread content for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=32-55\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=11-34\nread HashWithIndifferentAccess for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/util.rb lines=90-113\nread snake_case for detail", "file": "lib/thor/util.rb", "symbol": "snake_case", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=27-50\nread delete for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "delete", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=278-301\nread stdout for detail", "file": "lib/thor/shell/basic.rb", "symbol": "stdout", "line": 278, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=47-70\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=224-247\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=20-43\nread unix? for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "unix?", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=31-54\nread except for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=350-373\nread check_unknown_options! for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options!", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=12-35\nread initialize for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "initialize", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=111-134\nread group for detail", "file": "spec/fixtures/group.thor", "symbol": "group", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=127-150\nread ChildGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ChildGroup", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=80-103\nread Defined for detail", "file": "spec/fixtures/invoke.thor", "symbol": "Defined", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=170-193\nread prepend_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "prepend_to_file", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=1-24\nread TestSubcommands for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "TestSubcommands", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=6-29\nread readline for detail", "file": "lib/thor/line_editor.rb", "symbol": "readline", "line": 6, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Estou revisando os arquivos de teste e gostaria de localizar o método que apenas imprime o número cinco no console. Pode me mostrar onde essa função de demonstração está definida?", "query": "p 5", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 91, "lang": "pt", "candidates": [{"text": "File: spec/helper.rb\nLine 47: end", "file": "spec/helper.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 12: puts \"ok\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 3: $VERBOSE = true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 2: include Thor::Actions", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 4: require \"thor/rake_compat\"", "file": "Thorfile", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 686: message.to match(/Exclusive Options:\\n\\s+--five\\s+--six\\s+--seven\\n\\s+--one\\s+--two/)", "file": "spec/thor_spec.rb", "symbol": "", "line": 686, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 47: def five", "file": "spec/fixtures/group.thor", "symbol": "", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nLine 91: def five", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 91, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/command.thor\nLine 14: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 92: MyClassOptionScript.start %w[mix --one --two --three --five]", "file": "spec/base_spec.rb", "symbol": "", "line": 92, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 44: if klass = Thor::RakeCompat.rake_classes.last # rubocop:disable Lint/AssignmentInCondition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 5: require 'thor'", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 335: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 335, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 302: option :five", "file": "spec/fixtures/script.thor", "symbol": "", "line": 302, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 34: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 23: WebMock.disable_net_connect!(allow: \"coveralls.io\")", "file": "spec/helper.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 45: when Array, String, Hash", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 18: # overwrites a thor keyword, SHOULD NOT raise a Thor::Error. This way, we", "file": "lib/thor/error.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 116: class ParentGroup < Thor::Group", "file": "spec/fixtures/group.thor", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 14: # ==== Examples", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 100: stdout.puts indentation + separator.join + \"+\"", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estou revisando os arquivos de teste e gostaria de localizar o método que apenas imprime o número cinco no console. Pode me mostrar onde essa função de demonstração está definida?", "query": "p 5", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 91, "lang": "pt", "candidates": [{"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\ndefines five", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estou revisando os arquivos de teste e gostaria de localizar o método que apenas imprime o número cinco no console. Pode me mostrar onde essa função de demonstração está definida?", "query": "p 5", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 91, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/error.rb lines=36-59\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=215-238\nread current_is_switch_formatted? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch_formatted?", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=68-91\nread reverse_merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=472-495\nread commands for detail", "file": "lib/thor/base.rb", "symbol": "commands", "line": 472, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=434-457\nread disable_required_check! for detail", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=210-233\nread Scripts for detail", "file": "spec/fixtures/script.thor", "symbol": "Scripts", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=783-806\nread create_command for detail", "file": "lib/thor/base.rb", "symbol": "create_command", "line": 783, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=91-114\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 91, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=246-269\nread method_at_least_one for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=61-84\nread namespace for detail", "file": "lib/thor/rake_compat.rb", "symbol": "namespace", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=501-524\nread remove_command for detail", "file": "lib/thor/base.rb", "symbol": "remove_command", "line": 501, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=294-317\nread arguments for detail", "file": "lib/thor/base.rb", "symbol": "arguments", "line": 294, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=234-257\nread switch_option for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch_option", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=4-27\nread Thor for detail", "file": "lib/thor/line_editor.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Comment lire une ligne depuis l'entrée standard avec un prompt et des options dans Thor ?", "query": "thor readline method", "file": "lib/thor/line_editor.rb", "symbol": "readline", "line": 6, "lang": "fr", "candidates": [{"text": "File: spec/actions/create_file_spec.rb\nLine 198: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 50: expect(Thor::LineEditor).to receive(:readline).with(\"Should I overwrite it? \", {}).and_return(\"Sure\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nLine 24: private", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 6: require \"readline\"", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nLine 31: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 14: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 99: end", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 96: expect(Thor::LineEditor).to receive(:readline).and_return(\"d\", \"y\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 96, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 68: def peek", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 128: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 13: unix? ? dynamic_width : DEFAULT_TERMINAL_WIDTH", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 115: expect(Thor::LineEditor).to receive(:readline).with(\"Overwrite #{file}? (enter \\\"h\\\" for help) [Ynaqdhm] \", anything).and_return(\"s\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 115, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 16: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 43: it \"uses rake tasks descriptions on thor\" do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 82: # relative_destination #=> bar/baz", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 334: result = Thor::LineEditor.readline(message, options)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 334, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 41: it \"creates a dynamic command with the given name\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 17: expect(Thor::LineEditor).to receive(:readline).with(\"\\e[32mIs this green? \\e[0m\", anything).and_return(\"yes\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 279: case block.arity", "file": "lib/thor/group.rb", "symbol": "", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 134: content = capture(:stdout) do", "file": "spec/group_spec.rb", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 265: expect(MyChildScript.new).to respond_to(\"animal\")", "file": "spec/base_spec.rb", "symbol": "", "line": 265, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 6: def self.readline(prompt, options = {})", "file": "lib/thor/line_editor.rb", "symbol": "readline", "line": 6, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/arguments.rb\nLine 69: @pile.first", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 227: # The method responsible for dispatching given the args.", "file": "lib/thor/group.rb", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Comment lire une ligne depuis l'entrée standard avec un prompt et des options dans Thor ?", "query": "thor readline method", "file": "lib/thor/line_editor.rb", "symbol": "readline", "line": 6, "lang": "fr", "candidates": [{"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\ndefines readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Comment lire une ligne depuis l'entrée standard avec un prompt et des options dans Thor ?", "query": "thor readline method", "file": "lib/thor/line_editor.rb", "symbol": "readline", "line": 6, "lang": "fr", "candidates": [{"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Comment lire une ligne depuis l'entrée standard avec un prompt et des options dans Thor ?", "query": "thor readline method", "file": "lib/thor/line_editor.rb", "symbol": "readline", "line": 6, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/line_editor.rb lines=6-29\nread readline for detail", "file": "lib/thor/line_editor.rb", "symbol": "readline", "line": 6, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=5-28\nread LineEditor for detail", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=325-348\nread _shared_configuration for detail", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=345-368\nread only_one for detail", "file": "spec/fixtures/script.thor", "symbol": "only_one", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=68-91\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=280-303\nread escape_html for detail", "file": "lib/thor/util.rb", "symbol": "escape_html", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=671-694\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=142-165\nread update for detail", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=65-88\nread peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=265-288\nread optional_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "optional_arg", "line": 265, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=101-124\nread ExclusiveArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "ExclusiveArgumentError", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=4-27\nread Thor for detail", "file": "lib/thor/line_editor.rb", "symbol": "Thor", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=216-239\nread apply for detail", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=310-333\nread display_commands for detail", "file": "lib/thor/runner.rb", "symbol": "display_commands", "line": 310, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=109-132\nread CommandConflict for detail", "file": "spec/fixtures/group.thor", "symbol": "CommandConflict", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=71-94\nread example_default_command for detail", "file": "spec/fixtures/script.thor", "symbol": "example_default_command", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=84-107\nread unshift for detail", "file": "lib/thor/parser/options.rb", "symbol": "unshift", "line": 84, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Muestra un mensaje en la salida estándar, manejando los colores y asegurándose de añadir una nueva línea si el mensaje no termina en salto de línea o tabulación, pero solo si no estamos en modo silencioso.", "query": "stdout print flush", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lang": "es", "candidates": [{"text": "File: lib/thor/util.rb\nLine 129: # namespace", "file": "lib/thor/util.rb", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 108: out = capture(:stdout) do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 366: it \"raises error when value isn't in enum\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 366, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 8: describe \"#say\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nLine 48: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 98: def say(message = \"\", color = nil, force_new_line = (message.to_s !~ /( |\\t)\\Z/))", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 24: say \"- #{diff.old_element.chomp}\", :red, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nLine 72: create string: \"foo\", numeric: 3.0", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 25: failing_lines << number + 1 if line =~ /\\s+\\n$/", "file": "spec/quality_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 256: desc \"one_arg ARG\", \"takes one arg\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 8: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 8: desc \"describe NAME\", \"say that someone is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 213: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 151: describe \"#say\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 151, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\nLine 42: require \"fileutils\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 516: expect { parse(\"--fruits=\", \"apple\", \"banana\", \"strawberry\") }.to raise_error(Thor::MalformattedArgumentError,", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 516, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 180: expect do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 187: result = block.arity == 1 ? yield(destination_root) : yield", "file": "lib/thor/actions.rb", "symbol": "", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 13: BOLD = \"font-weight: bold\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 20: expect(command(bar: :required).formatted_usage(object, false, true)).to eq(\"foo can_has --bar=BAR\")", "file": "spec/command_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 263: shell.say \"Usage:\"", "file": "lib/thor.rb", "symbol": "", "line": 263, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nLine 11: ret = \"#{name} is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 5: desc \"hello\", \"say hello\"", "file": "spec/base_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 18: # end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Muestra un mensaje en la salida estándar, manejando los colores y asegurándose de añadir una nueva línea si el mensaje no termina en salto de línea o tabulación, pero solo si no estamos en modo silencioso.", "query": "stdout print flush", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lang": "es", "candidates": [{"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Muestra un mensaje en la salida estándar, manejando los colores y asegurándose de añadir una nueva línea si el mensaje no termina en salto de línea o tabulación, pero solo si no estamos en modo silencioso.", "query": "stdout print flush", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lang": "es", "candidates": [{"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Muestra un mensaje en la salida estándar, manejando los colores y asegurándose de añadir una nueva línea si el mensaje no termina en salto de línea o tabulación, pero solo si no estamos en modo silencioso.", "query": "stdout print flush", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lang": "es", "candidates": [{"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=783-806\nread create_command for detail", "file": "lib/thor/base.rb", "symbol": "create_command", "line": 783, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=95-118\nread RequiredArgumentMissingError for detail", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/application_helper.rb lines=1-24\nread ApplicationHelper for detail", "file": "spec/fixtures/application_helper.rb", "symbol": "ApplicationHelper", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=100-123\nread E for detail", "file": "spec/fixtures/invoke.thor", "symbol": "E", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=13-36\nread invoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=166-189\nread _parse_initialization_options for detail", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/create_file.rb lines=60-83\nread invoke! for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=589-612\nread defined_in_gem? for detail", "file": "lib/thor.rb", "symbol": "defined_in_gem?", "line": 589, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=280-303\nread escape_html for detail", "file": "lib/thor/util.rb", "symbol": "escape_html", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=274-297\nread parse_peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_peek", "line": 274, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "devolver el primer elemento de la pila sin eliminarlo", "query": "peek arguments", "file": "lib/thor/parser/arguments.rb", "symbol": "peek", "line": 68, "lang": "es", "candidates": [{"text": "File: lib/thor/shell.rb\nLine 70: shell.padding -= 1", "file": "lib/thor/shell.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 119: \"foo\"", "file": "spec/fixtures/group.thor", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 253: # Represents the whole class as a command.", "file": "lib/thor/group.rb", "symbol": "", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 28: desc \"five N\", \"check if number is equal 5\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 26: private", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 89: content = capture(:stderr) { Thor::Runner.start }", "file": "spec/runner_spec.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 68: def peek", "file": "lib/thor/parser/arguments.rb", "symbol": "peek", "line": 68, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 23: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 14: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 65: def peek", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 65, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nLine 9: method_options :forcefully => :boolean", "file": "spec/fixtures/command.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 72: def silence_warnings", "file": "spec/helper.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 20: it \"parses arguments in the given order\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 4: desc \"snack\"", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 17: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 33: desc \"invoker\", \"invoke a b command\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 123: class_eval <<-METHOD, __FILE__, __LINE__ + 1", "file": "lib/thor/group.rb", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 84: Gem.win_platform?", "file": "spec/helper.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 158: else", "file": "lib/thor/runner.rb", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 51: attr_reader :text", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 8: def initialize(stdout, options = {})", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 360: it \"calls the alias of a method if several are provided via #map\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 360, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 7: Thor::Util.load_thorfile(File.expand_path(\"./fixtures/#{filename}\", __dir__))", "file": "spec/encoding_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 35: def dynamic_width_tput", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "devolver el primer elemento de la pila sin eliminarlo", "query": "peek arguments", "file": "lib/thor/parser/arguments.rb", "symbol": "peek", "line": 68, "lang": "es", "candidates": [{"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "devolver el primer elemento de la pila sin eliminarlo", "query": "peek arguments", "file": "lib/thor/parser/arguments.rb", "symbol": "peek", "line": 68, "lang": "es", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=42-65\nread completion_options for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_options", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=322-345\nread quiet? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=223-246\nread strict_args_position? for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position?", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=472-495\nread commands for detail", "file": "lib/thor/base.rb", "symbol": "commands", "line": 472, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=68-91\nread peek for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "peek", "line": 68, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=722-745\nread inherited for detail", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=247-270\nread Arities for detail", "file": "spec/fixtures/script.thor", "symbol": "Arities", "line": 247, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=129-152\nread subclasses for detail", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=276-299\nread apple for detail", "file": "spec/fixtures/script.thor", "symbol": "apple", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=29-52\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=541-564\nread no_commands? for detail", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=122-145\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=194-217\nread thor_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "thor_yaml", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/application.rb lines=1-24\nread Application for detail", "file": "spec/fixtures/application.rb", "symbol": "Application", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=61-84\nread world for detail", "file": "spec/fixtures/group.thor", "symbol": "world", "line": 61, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "encontra a classe de comando thor que gerencia a abertura de portas e pintura", "query": "thor paint open", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lang": "pt", "candidates": [{"text": "File: lib/thor/actions/directory.rb\nLine 8: # empty directory is found, it's copied and all .empty_directory files are", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 10: if SOME_STRING.encoding.name == \"UTF-8\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 43: def one(first_name)", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 35: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 323: # :group:: -- The group for this options. Use by class options to output options in different levels.", "file": "lib/thor/base.rb", "symbol": "", "line": 323, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 267: expect(File.read(file)).to eq(\"__start__\\nREADME\\nmore content\\n__end__\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 267, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 77: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 376: def #456 Lanç...", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 376, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 185: class Barn < Thor", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 37: def diff_lcs_loaded? #:nodoc:", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 12: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 250: MyScript, MyScript::AnotherScript, MyChildScript, Barn,", "file": "spec/base_spec.rb", "symbol": "", "line": 250, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 18: end", "file": "spec/group_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 122: def two", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 45: ON_BLUE = \"\\e[44m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 161: else", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 8: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 62: def validate!", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 256: def parse_boolean(switch)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 37: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/A top level command/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 333: def comment_lines(path, flag, *args)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 106: expect(File.read(file)).to eq(\"__start__\\nREADME\\nmore content\\n__end__\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 6: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 88: expect(@content).to match(/1\\n2\\n3\\n4\\n5\\n/)", "file": "spec/group_spec.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "encontra a classe de comando thor que gerencia a abertura de portas e pintura", "query": "thor paint open", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lang": "pt", "candidates": [{"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\ndefines Barn", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "encontra a classe de comando thor que gerencia a abertura de portas e pintura", "query": "thor paint open", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lang": "pt", "candidates": [{"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=219-242\nread strict_args_position for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/enum.thor lines=6-29\nread snack for detail", "file": "spec/fixtures/enum.thor", "symbol": "snack", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=692-715\nread build_command_tree for detail", "file": "lib/thor.rb", "symbol": "build_command_tree", "line": 692, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=31-54\nread except for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=185-208\nread Barn for detail", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoker", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=259-282\nread baseclass for detail", "file": "lib/thor/group.rb", "symbol": "baseclass", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=72-95\nread format_cell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "format_cell", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=273-296\nread lookup_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "lookup_color", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=205-228\nread save_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "save_yaml", "line": 205, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=280-303\nread escape_html for detail", "file": "lib/thor/util.rb", "symbol": "escape_html", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=657-680\nread print_options for detail", "file": "lib/thor/base.rb", "symbol": "print_options", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=72-95\nread handle_no_command_error for detail", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Il y a un problème avec la gestion des avertissements de dépréciation : le mécanisme de silence via la variable d'environnement ne semble pas fonctionner comme prévu ou n'est pas systématiquement appliqué lors de l'appel de la méthode de notification.", "query": "deprecation warning ENV", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lang": "fr", "candidates": [{"text": "File: spec/actions/inject_into_file_spec.rb\nLine 5: describe Thor::Actions::InjectIntoFile do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 3: LONG_RE = /^(--\\w+(?:-\\w+)*)$/", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 9: describe \"#padding\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 12: pop", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 33: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 80: class Defined < Thor::Group", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 154: if name.nil?", "file": "lib/thor/invocation.rb", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 11: describe Thor::Base do", "file": "spec/base_spec.rb", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 134: namespace = pieces.join(\":\")", "file": "lib/thor/util.rb", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 35: object = Struct.new(:namespace, :arguments).new(\"foo\", [])", "file": "spec/command_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 1: class Thor", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nLine 58: shell.ask \"Is this legacy blue?\", [:blue, true]", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 1: class A < Thor", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 11: class Thor", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/command.rb\nLine 1: class Thor", "file": "lib/thor/command.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 157: expect(ClearCounter.new).not_to respond_to(:second)", "file": "spec/base_spec.rb", "symbol": "", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 82: # @return [TrueClass/FalseClass]", "file": "spec/helper.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 3: # Thor has a special class called Thor::Group. The main difference to Thor class", "file": "lib/thor/group.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nLine 174: def list(search = \"\")", "file": "lib/thor/runner.rb", "symbol": "", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 11: def invoker", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 6: attr_reader :stdout, :options", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 8: puts \"Invoked!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 22: counter = word.length", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Il y a un problème avec la gestion des avertissements de dépréciation : le mécanisme de silence via la variable d'environnement ne semble pas fonctionner comme prévu ou n'est pas systématiquement appliqué lors de l'appel de la méthode de notification.", "query": "deprecation warning ENV", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lang": "fr", "candidates": [{"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Il y a un problème avec la gestion des avertissements de dépréciation : le mécanisme de silence via la variable d'environnement ne semble pas fonctionner comme prévu ou n'est pas systématiquement appliqué lors de l'appel de la méthode de notification.", "query": "deprecation warning ENV", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Il y a un problème avec la gestion des avertissements de dépréciation : le mécanisme de silence via la variable d'environnement ne semble pas fonctionner comme prévu ou n'est pas systématiquement appliqué lors de l'appel de la méthode de notification.", "query": "deprecation warning ENV", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=321-344\nread show_modules for detail", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=224-247\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=109-132\nread CommandConflict for detail", "file": "spec/fixtures/group.thor", "symbol": "CommandConflict", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=6-29\nread Thor for detail", "file": "lib/thor/shell/color.rb", "symbol": "Thor", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=129-152\nread subclasses for detail", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=73-96\nread ask for detail", "file": "lib/thor/shell/html.rb", "symbol": "ask", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/terminal.rb lines=3-26\nread Terminal for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Terminal", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/register_spec.rb lines=94-117\nread with_args for detail", "file": "spec/register_spec.rb", "symbol": "with_args", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=16-39\nread install for detail", "file": "Thorfile", "symbol": "install", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=460-483\nread method_exclusive_option_names for detail", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=120-143\nread I for detail", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/shell/color_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/color_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Comment est-ce que la salutation est formatée quand l'option pour crier est activée ?", "query": "greeting uppercase option", "file": "spec/thor_spec.rb", "symbol": "hi", "line": 767, "lang": "fr", "candidates": [{"text": "File: lib/thor/invocation.rb\nLine 129: end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 33: describe Thor::RakeCompat do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 83: def windows?", "file": "spec/helper.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 142: def update(name)", "file": "lib/thor/runner.rb", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 89: end", "file": "lib/thor/command.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 24: capture(:stdout) { revoker.directory(*args, &block) }", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 155: capture(:stderr) { File.const_set(:ALT_SEPARATOR, true) }", "file": "spec/util_spec.rb", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 17: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 61: def world(&block)", "file": "spec/fixtures/group.thor", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 273: # will load all thor files in the thor.yaml that has \"foo\" e \"foo:bar\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 20: expect(capture(:stdout) { Thor::Sandbox::EncodingImplicit.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 375: expect(parse(\"--foo=bar\", \"--foo\", \"12\")[\"foo\"]).to eq([\"bar\", \"12\"])", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 375, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 56: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 202: desc \"say hi to name\"", "file": "spec/group_spec.rb", "symbol": "", "line": 202, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nLine 66: def destination_root", "file": "spec/helper.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 19: # Receives a namespace and search for it in the Thor::Base subclasses.", "file": "lib/thor/util.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 5: module LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 23: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 87: if force", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 42: require \"fileutils\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 767: def hi(name)", "file": "spec/thor_spec.rb", "symbol": "hi", "line": 767, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 119: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 144: red = shell.set_color \"hi!\", :red", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 144, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nLine 87: elsif colors.all? { |color| color.is_a?(Symbol) || color.is_a?(String) }", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Comment est-ce que la salutation est formatée quand l'option pour crier est activée ?", "query": "greeting uppercase option", "file": "spec/thor_spec.rb", "symbol": "hi", "line": 767, "lang": "fr", "candidates": [{"text": "File: spec/rake_compat_spec.rb\nsibling in spec", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nsibling in spec", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nsibling in spec", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\ndefines hi", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Comment est-ce que la salutation est formatée quand l'option pour crier est activée ?", "query": "greeting uppercase option", "file": "spec/thor_spec.rb", "symbol": "hi", "line": 767, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Comment est-ce que la salutation est formatée quand l'option pour crier est activée ?", "query": "greeting uppercase option", "file": "spec/thor_spec.rb", "symbol": "hi", "line": 767, "lang": "fr", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=311-334\nread MyOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyOptionScript", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=177-200\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 177, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=117-140\nread template for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=321-344\nread show_modules for detail", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=51-74\nread six for detail", "file": "spec/fixtures/group.thor", "symbol": "six", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=619-642\nread handle_argument_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_argument_error", "line": 619, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=69-92\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=164-187\nread undasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=68-91\nread ClearCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "ClearCounter", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=165-188\nread print_in_columns for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_in_columns", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=210-233\nread Scripts for detail", "file": "spec/fixtures/script.thor", "symbol": "Scripts", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=105-128\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 105, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/rake_compat_spec.rb lines=12-35\nread define for detail", "file": "spec/rake_compat_spec.rb", "symbol": "define", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=767-790\nread hi for detail", "file": "spec/thor_spec.rb", "symbol": "hi", "line": 767, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=216-239\nread apply for detail", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "这段代码是如何注册子命令并定义对应的动态方法的?", "query": "register subcommand", "file": "lib/thor.rb", "symbol": "subcommand", "line": 329, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 79: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 77: protected", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 1: require \"helper\"", "file": "spec/encoding_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 200: end", "file": "spec/register_spec.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 271: it \"logs its status\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 39: base.inside(\"doc\") do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 129: subcommand :one, I", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 129, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nLine 22: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 329: def subcommand(subcommand, subcommand_class)", "file": "lib/thor.rb", "symbol": "subcommand", "line": 329, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/runner_spec.rb\nLine 180: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 11: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 16: r.read", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 219: it \"sets a namespace to the class\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 10: class Parent < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 240: subcommand \"barn\", Barn", "file": "spec/fixtures/script.thor", "symbol": "", "line": 240, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 23: module Shell", "file": "lib/thor/shell.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 25: desc \"spec\", \"Run RSpec code examples\"", "file": "Thorfile", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 118: def #{type}?", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 10: def self.banner(command, all = false, subcommand = false)", "file": "lib/thor/runner.rb", "symbol": "", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 726: it \"triggers a subcommand help when passed --help\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 726, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nLine 4: describe \"#subcommand\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 18: it \"includes subcommand name within subcommand usage\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 18, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "这段代码是如何注册子命令并定义对应的动态方法的?", "query": "register subcommand", "file": "lib/thor.rb", "symbol": "subcommand", "line": 329, "lang": "zh", "candidates": [{"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "这段代码是如何注册子命令并定义对应的动态方法的?", "query": "register subcommand", "file": "lib/thor.rb", "symbol": "subcommand", "line": 329, "lang": "zh", "candidates": [{"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "这段代码是如何注册子命令并定义对应的动态方法的?", "query": "register subcommand", "file": "lib/thor.rb", "symbol": "subcommand", "line": 329, "lang": "zh", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/command.thor lines=3-26\nread Amazing for detail", "file": "spec/fixtures/command.thor", "symbol": "Amazing", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=286-309\nread is? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "is?", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=289-312\nread display_klasses for detail", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=6-29\nread available? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=41-64\nread task for detail", "file": "lib/thor/rake_compat.rb", "symbol": "task", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=34-57\nread invoker for detail", "file": "spec/fixtures/invoke.thor", "symbol": "invoker", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=93-116\nread method_missing for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "method_missing", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=14-37\nread print for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=168-191\nread user_home for detail", "file": "lib/thor/util.rb", "symbol": "user_home", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=592-615\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=329-352\nread subcommand for detail", "file": "lib/thor.rb", "symbol": "subcommand", "line": 329, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=185-208\nread Barn for detail", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=21-44\nread base for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "base", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=216-239\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/runner_spec.rb lines=5-28\nread when_no_thorfiles_exist for detail", "file": "spec/runner_spec.rb", "symbol": "when_no_thorfiles_exist", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=163-186\nread attr_accessor for detail", "file": "lib/thor/base.rb", "symbol": "attr_accessor", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "명령어 삭제하고 옵션에 따라 메서드까지 정의 해제하는 로직 찾아줘", "query": "remove command undefine", "file": "lib/thor/base.rb", "symbol": "remove_command", "line": 501, "lang": "ko", "candidates": [{"text": "File: lib/thor/util.rb\nLine 284: end", "file": "lib/thor/util.rb", "symbol": "", "line": 284, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 79: # :on_yellow", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 151: remove_command(name)", "file": "lib/thor/group.rb", "symbol": "", "line": 151, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nLine 67: create string: nil, hash: nil, array: nil, numeric: nil", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 9: end", "file": "spec/group_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 4: require \"thor/rake_compat\"", "file": "Thorfile", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 13: w.close", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 10: desc \"build\", \"Build thor-#{Thor::VERSION}.gem into the pkg directory\"", "file": "Thorfile", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 21: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 313: item << banner(command, false, subcommand)", "file": "lib/thor.rb", "symbol": "", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 12: puts opts[\"forcefully\"] ? ret.upcase : ret", "file": "spec/fixtures/command.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 30: WHITE = \"color: white\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 204: allow($stdout).to receive(:tty?).and_return(true)", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 157: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 158: remove_command :name_with_dashes", "file": "spec/fixtures/script.thor", "symbol": "", "line": 158, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 284: describe \"#remove_command\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 284, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 501: def remove_command(*names)", "file": "lib/thor/base.rb", "symbol": "remove_command", "line": 501, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/command.thor\nLine 6: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 29: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 50: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 238: # at_least_one do", "file": "lib/thor.rb", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 39: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/A subcommand/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 311: expect(File.exist?(file)).to be false", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 8: describe \"#initialize\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "명령어 삭제하고 옵션에 따라 메서드까지 정의 해제하는 로직 찾아줘", "query": "remove command undefine", "file": "lib/thor/base.rb", "symbol": "remove_command", "line": 501, "lang": "ko", "candidates": [{"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "명령어 삭제하고 옵션에 따라 메서드까지 정의 해제하는 로직 찾아줘", "query": "remove command undefine", "file": "lib/thor/base.rb", "symbol": "remove_command", "line": 501, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "명령어 삭제하고 옵션에 따라 메서드까지 정의 해제하는 로직 찾아줘", "query": "remove command undefine", "file": "lib/thor/base.rb", "symbol": "remove_command", "line": 501, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=31-54\nread except for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=592-615\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=4-27\nread Shell for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=68-91\nread reverse_merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=274-297\nread Apple for detail", "file": "spec/fixtures/script.thor", "symbol": "Apple", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=501-524\nread remove_command for detail", "file": "lib/thor/base.rb", "symbol": "remove_command", "line": 501, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=478-501\nread disable_required_check for detail", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=10-33\nread create_file for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=62-85\nread validate! for detail", "file": "lib/thor/parser/argument.rb", "symbol": "validate!", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=113-136\nread invoke_with_conflict_check for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke_with_conflict_check", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=371-394\nread capture for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "capture", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=280-303\nread escape_html for detail", "file": "lib/thor/util.rb", "symbol": "escape_html", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=320-343\nread exclusive for detail", "file": "spec/fixtures/script.thor", "symbol": "exclusive", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=285-308\nread run_ruby_script for detail", "file": "lib/thor/actions.rb", "symbol": "run_ruby_script", "line": 285, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "find die methode die immer false zurückgibt", "query": "returns false", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous_but_hidden", "line": 138, "lang": "de", "candidates": [{"text": "File: spec/base_spec.rb\nLine 56: describe \"#argument\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 11: # config:: give :verbose => false to not log the status.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 169: (str.length > 1 ? \"--\" : \"-\") + str.tr(\"_\", \"-\")", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 24: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 138: def potentially_ambiguous_but_hidden", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous_but_hidden", "line": 138, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/nested_context.rb\nLine 27: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 22: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 24: argument(:command, type: :string, default: \"bar\", required: true)", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 6: def load_thorfile(filename)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 25: else", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 37: load File.join(File.dirname(__FILE__), \"fixtures\", \"subcommand.thor\")", "file": "spec/helper.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 46: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 35: expect(FileUtils).not_to receive(:chmod_R)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 133: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 20: GREEN = \"color: green\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 74: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 5: describe \"file's encoding\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 6: # the destination is not given it's assumed to be equal to the source.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 68: it \"prints none arrays as default\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 84: @long_desc_wrap = options[:wrap] != false", "file": "lib/thor.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 62: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 68: describe \"with value as string\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 279: expect(MyChildScript.new).to respond_to(\"foo\")", "file": "spec/base_spec.rb", "symbol": "", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 5: module LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find die methode die immer false zurückgibt", "query": "returns false", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous_but_hidden", "line": 138, "lang": "de", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines potentially_ambiguous_but_hidden", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find die methode die immer false zurückgibt", "query": "returns false", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous_but_hidden", "line": 138, "lang": "de", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=77-100\nread required_arguments_for for detail", "file": "lib/thor/command.rb", "symbol": "required_arguments_for", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=138-161\nread potentially_ambiguous_but_hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous_but_hidden", "line": 138, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/util.rb lines=280-303\nread escape_html for detail", "file": "lib/thor/util.rb", "symbol": "escape_html", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=427-450\nread remove_argument for detail", "file": "lib/thor/base.rb", "symbol": "remove_argument", "line": 427, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=27-50\nread source_root for detail", "file": "lib/thor/actions.rb", "symbol": "source_root", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=709-732\nread find_and_refresh_command for detail", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=190-213\nread allow_incompatible_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "allow_incompatible_default_type!", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=190-213\nread thor_root for detail", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=47-70\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=16-39\nread install for detail", "file": "Thorfile", "symbol": "install", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=778-801\nread baseclass for detail", "file": "lib/thor/base.rb", "symbol": "baseclass", "line": 778, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=144-167\nread check_exclusive! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=350-373\nread check_unknown_options! for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options!", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=613-636\nread normalize_command_name for detail", "file": "lib/thor.rb", "symbol": "normalize_command_name", "line": 613, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=105-128\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=62-85\nread source_root for detail", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "limited_to 옵션을 기본값과 함께 어떻게 가져오나요?", "query": "completion options limited_to", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_options", "line": 42, "lang": "ko", "candidates": [{"text": "File: spec/actions/directory_spec.rb\nLine 5: describe Thor::Actions::Directory do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 27: def dynamic_width", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 42: # MyScript.new [1.0], { :foo => :bar }, :shell => Thor::Shell::Basic.new", "file": "lib/thor/shell.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 52: describe \"#sort - simple override\" do", "file": "spec/sort_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 54: Rake::Task[task.name.to_sym].invoke(*args)", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 47: end", "file": "lib/thor/util.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 324: it \"accepts a switch assignment\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 324, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 776: # SIGNATURE: Sets the baseclass. This is where the superclass lookup", "file": "lib/thor/base.rb", "symbol": "", "line": 776, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 29: # rdoc.rb", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 99: #", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 13: case name", "file": "lib/thor/invocation.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 361: it \"overwrites earlier values with later values\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 361, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 162: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 30: destination = File.join(destination_root, destination_path, file)", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 41: ON_BLUE = \"background-color: blue\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 280: elsif option.string? && !option.required?", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 5: desc :bugs, \"ALL THE BUGZ!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 261: end", "file": "spec/base_spec.rb", "symbol": "", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 23: config = args.last.is_a?(Hash) ? args.pop : {}", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 42: def completion_options", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_options", "line": 42, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 22: def get_input", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 173: Encoding.default_external = encoding_original", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 95: def print_status", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "limited_to 옵션을 기본값과 함께 어떻게 가져오나요?", "query": "completion options limited_to", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_options", "line": 42, "lang": "ko", "candidates": [{"text": "File: lib/thor/line_editor/basic.rb\nsibling in lib/thor/line_editor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\ndefines completion_options", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "limited_to 옵션을 기본값과 함께 어떻게 가져오나요?", "query": "completion options limited_to", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_options", "line": 42, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "limited_to 옵션을 기본값과 함께 어떻게 가져오나요?", "query": "completion options limited_to", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_options", "line": 42, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=194-217\nread print_wrapped for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_wrapped", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=367-390\nread concat for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "concat", "line": 367, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=3-26\nread EncodingImplicit for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "EncodingImplicit", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=161-184\nread initialize for detail", "file": "spec/fixtures/script.thor", "symbol": "initialize", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=274-297\nread Apple for detail", "file": "spec/fixtures/script.thor", "symbol": "Apple", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=104-127\nread can_display_colors? for detail", "file": "lib/thor/shell/color.rb", "symbol": "can_display_colors?", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=39-62\nread three for detail", "file": "spec/fixtures/group.thor", "symbol": "three", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=714-737\nread bar for detail", "file": "spec/thor_spec.rb", "symbol": "bar", "line": 714, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=358-381\nread class_exclusive for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=100-123\nread private_method? for detail", "file": "lib/thor/command.rb", "symbol": "private_method?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=174-197\nread normalize_aliases for detail", "file": "lib/thor/parser/option.rb", "symbol": "normalize_aliases", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=446-469\nread remove_class_option for detail", "file": "lib/thor/base.rb", "symbol": "remove_class_option", "line": 446, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=42-65\nread completion_options for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_options", "line": 42, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=412-435\nread class_at_least_one_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one_option_names", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=165-188\nread print_in_columns for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_in_columns", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "コマンドライン引数のデフォルト値の型チェックを無効化する方法を探しています。オプションの型とデフォルト値が一致しない場合にエラーを回避するためのメソッドはどこにありますか?", "query": "check_default_type false", "file": "lib/thor/base.rb", "symbol": "allow_incompatible_default_type!", "line": 190, "lang": "ja", "candidates": [{"text": "File: lib/thor/shell.rb\nLine 48: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 81: it \"returns the at least one of option names for the class\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 9: content = content.to_s.split(\"\\n\")", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 168: # Get invocations array and merge options from invocations. Those", "file": "lib/thor/group.rb", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 21: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 84: def unshift(arg, is_value: false)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 315: args.push Thor::Options.to_switches(config)", "file": "lib/thor/actions.rb", "symbol": "", "line": 315, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 1: require \"helper\"", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 36: expect(command({bar: :required}, [\"can_has FOO\", \"can_has BAR\"]).formatted_usage(object, false)).to eq(\"can_has FOO --bar=BAR\\ncan_has BAR --bar=BAR\")", "file": "spec/command_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 35: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 166: expect(output).to include(\"hello\")", "file": "spec/register_spec.rb", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 379: yield", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 379, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 4: class TreeApp < Thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 11: [", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 35: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 32: capture(:stdout) { action.invoke! }", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 287: desc \"exec\", \"Run a command\"", "file": "spec/thor_spec.rb", "symbol": "", "line": 287, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 10: class Parent < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 3: require_relative \"basic\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 30: # source:: Relative path to the source of this file", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 190: def allow_incompatible_default_type!", "file": "lib/thor/base.rb", "symbol": "allow_incompatible_default_type!", "line": 190, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 98: \"+\" + \"-\" * (maxima + 2 * @padding)", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 158: def parse_string(name)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "コマンドライン引数のデフォルト値の型チェックを無効化する方法を探しています。オプションの型とデフォルト値が一致しない場合にエラーを回避するためのメソッドはどこにありますか?", "query": "check_default_type false", "file": "lib/thor/base.rb", "symbol": "allow_incompatible_default_type!", "line": 190, "lang": "ja", "candidates": [{"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "コマンドライン引数のデフォルト値の型チェックを無効化する方法を探しています。オプションの型とデフォルト値が一致しない場合にエラーを回避するためのメソッドはどこにありますか?", "query": "check_default_type false", "file": "lib/thor/base.rb", "symbol": "allow_incompatible_default_type!", "line": 190, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "コマンドライン引数のデフォルト値の型チェックを無効化する方法を探しています。オプションの型とデフォルト値が一致しない場合にエラーを回避するためのメソッドはどこにありますか?", "query": "check_default_type false", "file": "lib/thor/base.rb", "symbol": "allow_incompatible_default_type!", "line": 190, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=385-408\nread actually_gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "actually_gsub_file", "line": 385, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=47-70\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=47-70\nread SubcommandTest1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "SubcommandTest1", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=556-579\nread dynamic_command_class for detail", "file": "lib/thor.rb", "symbol": "dynamic_command_class", "line": 556, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=101-124\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=205-228\nread save_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "save_yaml", "line": 205, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=36-59\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=64-87\nread reverse_merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=93-116\nread method_missing for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "method_missing", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=309-332\nread printable_commands for detail", "file": "lib/thor.rb", "symbol": "printable_commands", "line": 309, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=258-281\nread command_help for detail", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=190-213\nread allow_incompatible_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "allow_incompatible_default_type!", "line": 190, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "デフォルト値を取得している処理はどこにありますか?", "query": "options.defaulted_value", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 59, "lang": "ja", "candidates": [{"text": "File: spec/register_spec.rb\nLine 212: expect(secret_output).to eq(\"I love nuts\\n\")", "file": "spec/register_spec.rb", "symbol": "", "line": 212, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 104: it \"prints a message to the user containing a default and sets the default if only enter is pressed\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 111: end.to raise_error(Thor::AtLeastOneRequiredArgumentError, \"Not found at least one of required options '--three', '--four'\")", "file": "spec/base_spec.rb", "symbol": "", "line": 111, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 16: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 277: # No problem for boolean types", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 43: def four", "file": "spec/fixtures/group.thor", "symbol": "", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 86: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 512: expect(Thor::LineEditor).to receive(:readline).and_return(\"y\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 512, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 175: expect(colorless).to eq(\"hi!\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 119: end", "file": "spec/base_spec.rb", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 12: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 335: at_least_one :after1, :after2, :for => :at_least_one", "file": "spec/fixtures/script.thor", "symbol": "", "line": 335, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 6: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 43: def namespace_from_thor_class(constant)", "file": "lib/thor/util.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 30: # blog.rb", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 59: def four", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 59, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/thor_spec.rb\nLine 602: expect(content).to match(/Required At Least One:\\n\\s+--three\\s+--four\\n/)", "file": "spec/thor_spec.rb", "symbol": "", "line": 602, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 41: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 10: Object.const_defined?(:Readline)", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 60: false", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 139: \"subcommands ftw\"", "file": "spec/register_spec.rb", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 16: def install", "file": "Thorfile", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 296: class_option :four", "file": "spec/fixtures/script.thor", "symbol": "", "line": 296, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "デフォルト値を取得している処理はどこにありますか?", "query": "options.defaulted_value", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 59, "lang": "ja", "candidates": [{"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\ndefines four", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "デフォルト値を取得している処理はどこにありますか?", "query": "options.defaulted_value", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 59, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=109-132\nread CommandConflict for detail", "file": "spec/fixtures/group.thor", "symbol": "CommandConflict", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=59-82\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 59, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=263-286\nread gsub_file! for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=251-274\nread error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "error", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=83-106\nread invoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "invoke!", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=248-271\nread parsing_options? for detail", "file": "lib/thor/parser/options.rb", "symbol": "parsing_options?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=149-172\nread remove_invocation for detail", "file": "lib/thor/group.rb", "symbol": "remove_invocation", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=159-182\nread attr_writer for detail", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/color_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/color_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=629-652\nread exit_on_failure? for detail", "file": "lib/thor/base.rb", "symbol": "exit_on_failure?", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/rake_compat_spec.rb lines=8-31\nread initialize for detail", "file": "spec/rake_compat_spec.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=2-25\nread Argument for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=194-217\nread check_default_type for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Thorコマンドラインインターフェースのテスト用スクリプトで、追加のサブコマンドを実装しているクラスを探しています。このクラスは`baz`という名前のコマンドハンドラを定義しており、その振る舞いをシナリオとして検証したいのです。", "query": "Thor command baz", "file": "spec/fixtures/script.thor", "symbol": "AnotherScript", "line": 121, "lang": "ja", "candidates": [{"text": "File: lib/thor/invocation.rb\nLine 18: end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 20: #", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 1: require_relative \"line_editor/basic\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 59: relative_matches", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 121: class AnotherScript < Thor", "file": "spec/fixtures/script.thor", "symbol": "AnotherScript", "line": 121, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/basic.rb\nLine 155: #", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 250: MyScript, MyScript::AnotherScript, MyChildScript, Barn,", "file": "spec/base_spec.rb", "symbol": "", "line": 250, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 33: options.fetch(:echo, true)", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 155: @temp_dir = Dir.mktmpdir(\"thor\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 97: else", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 21: it \"sorts them lexicographillay\" do", "file": "spec/sort_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 235: expect(File.read(file)).to eq(\"__start__\\nREADME\\nmore content\\n__end__\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 127: command.run(self, *args)", "file": "lib/thor/invocation.rb", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 273: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 50: # option is set to true, it also adds bold to the string. This is based", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 122: PluginInheritingFromClassOptionsGroup,", "file": "spec/register_spec.rb", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 9: true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 274: end", "file": "spec/base_spec.rb", "symbol": "", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 29: para.split(\"\\n\").each do |line|", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 361: allow(Thor::Util).to receive(:ruby_command).and_return(\"/opt/jruby\")", "file": "spec/actions_spec.rb", "symbol": "", "line": 361, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 241: instance.invoke_command(all_commands[command])", "file": "lib/thor/group.rb", "symbol": "", "line": 241, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 55: expect(argument(:foo, {", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 129: expect(Thor::Util.thor_classes_in(MyScript)).to eq([MyScript::AnotherScript])", "file": "spec/util_spec.rb", "symbol": "", "line": 129, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 27: end", "file": "spec/base_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Thorコマンドラインインターフェースのテスト用スクリプトで、追加のサブコマンドを実装しているクラスを探しています。このクラスは`baz`という名前のコマンドハンドラを定義しており、その振る舞いをシナリオとして検証したいのです。", "query": "Thor command baz", "file": "spec/fixtures/script.thor", "symbol": "AnotherScript", "line": 121, "lang": "ja", "candidates": [{"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\ndefines AnotherScript", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Thorコマンドラインインターフェースのテスト用スクリプトで、追加のサブコマンドを実装しているクラスを探しています。このクラスは`baz`という名前のコマンドハンドラを定義しており、その振る舞いをシナリオとして検証したいのです。", "query": "Thor command baz", "file": "spec/fixtures/script.thor", "symbol": "AnotherScript", "line": 121, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=121-144\nread AnotherScript for detail", "file": "spec/fixtures/script.thor", "symbol": "AnotherScript", "line": 121, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/arguments.rb lines=97-120\nread parse_hash for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_hash", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=130-153\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=122-145\nread baz for detail", "file": "spec/fixtures/group.thor", "symbol": "baz", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=100-123\nread E for detail", "file": "spec/fixtures/invoke.thor", "symbol": "E", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=100-123\nread private_method? for detail", "file": "lib/thor/command.rb", "symbol": "private_method?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=83-106\nread usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "usage", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=172-195\nread get_options_from_invocations for detail", "file": "lib/thor/group.rb", "symbol": "get_options_from_invocations", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=289-312\nread display_klasses for detail", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=89-112\nread parse for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=293-316\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=127-150\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=168-191\nread check_unknown! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=41-64\nread task for detail", "file": "lib/thor/rake_compat.rb", "symbol": "task", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=98-121\nread MalformattedArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "MalformattedArgumentError", "line": 98, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I'm trying to set up a test case for a CLI tool that intentionally crashes. Can you show me the implementation of the command that triggers an error when a specific flag is passed?", "query": "thor fail method", "file": "spec/fixtures/group.thor", "symbol": "BrokenCounter", "line": 77, "lang": "en", "candidates": [{"text": "File: spec/shell_spec.rb\nLine 11: expect(base.shell).to eq(shell)", "file": "spec/shell_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 24: expect(Thor::Util.find_by_namespace(\"app:broken:counter\")).to eq(BrokenCounter)", "file": "spec/util_spec.rb", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 126: # Thor::Util.namespace_to_thor_class(\"foo:bar:baz\") #=> Foo::Bar, \"baz\"", "file": "lib/thor/util.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 27: exec \"bundle exec rspec spec\"", "file": "Thorfile", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 49: def invoke!", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 4: def to_s", "file": "lib/thor/error.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 57: expect { parse }.to raise_error(Thor::RequiredArgumentMissingError, \"No value provided for required arguments 'string', 'numeric'\")", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 63: expect(BrokenCounter.start(%w(1 2 --third 3))[0]).to be nil", "file": "spec/base_spec.rb", "symbol": "", "line": 63, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 261: content = capture(:stderr) { Thor::Runner.start(%W(install #{location})) }", "file": "spec/runner_spec.rb", "symbol": "", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 15: def parse(*args)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 78: end", "file": "spec/helper.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 80: class Defined < Thor::Group", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 127: elsif flag == /\\z/", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 77: class BrokenCounter < MyCounter", "file": "spec/fixtures/group.thor", "symbol": "BrokenCounter", "line": 77, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/script_exit_status_spec.rb\nLine 24: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 53: # invoke \"b:hello\", [\"Erik\"]", "file": "lib/thor/invocation.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 9: @command ||= Thor::Command.new(:can_has, \"I can has cheezburger\", \"I can has cheezburger\\nLots and lots of it\", nil, usage, options)", "file": "spec/command_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 28: def initialize(error)", "file": "lib/thor/error.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 100: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 128: expect(MyCounter.start(%w(1 2 -y 3))[5]).to eq(3)", "file": "spec/base_spec.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 8: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 21: expect(BrokenCounter.start(%w(1 2 --third 3))).to eq([nil, 2, 3, false, 5, nil])", "file": "spec/group_spec.rb", "symbol": "", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 116: ensure", "file": "spec/base_spec.rb", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm trying to set up a test case for a CLI tool that intentionally crashes. Can you show me the implementation of the command that triggers an error when a specific flag is passed?", "query": "thor fail method", "file": "spec/fixtures/group.thor", "symbol": "BrokenCounter", "line": 77, "lang": "en", "candidates": [{"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\ndefines BrokenCounter", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm trying to set up a test case for a CLI tool that intentionally crashes. Can you show me the implementation of the command that triggers an error when a specific flag is passed?", "query": "thor fail method", "file": "spec/fixtures/group.thor", "symbol": "BrokenCounter", "line": 77, "lang": "en", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=52-75\nread animal for detail", "file": "spec/register_spec.rb", "symbol": "animal", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=40-63\nread invoke! for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=309-332\nread printable_commands for detail", "file": "lib/thor.rb", "symbol": "printable_commands", "line": 309, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=215-238\nread strict_args_position! for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=280-303\nread escape_html for detail", "file": "lib/thor/util.rb", "symbol": "escape_html", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=307-330\nread class_options for detail", "file": "lib/thor/base.rb", "symbol": "class_options", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/command_spec.rb lines=72-95\nread handle_no_command_error for detail", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=350-373\nread remove_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "remove_file", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=186-209\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=657-680\nread print_options for detail", "file": "lib/thor/base.rb", "symbol": "print_options", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=649-672\nread subcommand_help for detail", "file": "lib/thor.rb", "symbol": "subcommand_help", "line": 649, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=458-481\nread group for detail", "file": "lib/thor/base.rb", "symbol": "group", "line": 458, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=77-100\nread BrokenCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "BrokenCounter", "line": 77, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/arguments.rb lines=84-107\nread current_is_value? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=64-87\nread last? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=9-32\nread terminal_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "terminal_width", "line": 9, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Je travaille sur la gestion des modules de la CLI. Peux-tu m'expliquer comment la suppression d'un composant est gérée, notamment pour la partie nettoyage des fichiers sur le disque ?", "query": "remove module file", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lang": "fr", "candidates": [{"text": "File: lib/thor.rb\nLine 308: # Returns commands ready to be printed.", "file": "lib/thor.rb", "symbol": "", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 53: given_destination", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 26: it \"a command that does not raise a Thor::Error exits with a status of 0\" do", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 10: def self.best_available", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 3: class Amazing < Thor", "file": "spec/fixtures/command.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 1: require \"rake\"", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 5: attr_reader :name, :description, :enum, :required, :type, :default, :banner", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 116: }", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 129: def uninstall(name)", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Thorfile\nLine 28: end", "file": "Thorfile", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 27: def self.included(base)", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 14: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 2: class NestedContext", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 10: def describe(name, opts)", "file": "spec/fixtures/command.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 2: module LineEditor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 107: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 193: describe \"uninstall\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 193, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 1: # encoding: ISO-8859-7", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 8: # hash['foo'] #=> 'bar'", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 32: failure_message do |actual|", "file": "spec/quality_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 7: class Test < Thor", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 38: end", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 16: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 14: require \"thor\"", "file": "spec/helper.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je travaille sur la gestion des modules de la CLI. Peux-tu m'expliquer comment la suppression d'un composant est gérée, notamment pour la partie nettoyage des fichiers sur le disque ?", "query": "remove module file", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Je travaille sur la gestion des modules de la CLI. Peux-tu m'expliquer comment la suppression d'un composant est gérée, notamment pour la partie nettoyage des fichiers sur le disque ?", "query": "remove module file", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lang": "fr", "candidates": [{"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> group", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> open-uri", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> ../thor", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je travaille sur la gestion des modules de la CLI. Peux-tu m'expliquer comment la suppression d'un composant est gérée, notamment pour la partie nettoyage des fichiers sur le disque ?", "query": "remove module file", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lang": "fr", "candidates": [{"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=172-195\nread get_options_from_invocations for detail", "file": "lib/thor/group.rb", "symbol": "get_options_from_invocations", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=46-69\nread use_path_completion? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "use_path_completion?", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=546-569\nread banner for detail", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=89-112\nread default for detail", "file": "spec/register_spec.rb", "symbol": "default", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=473-496\nread stop_on_unknown_option for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option", "line": 473, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=113-136\nread invoke_with_conflict_check for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke_with_conflict_check", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=375-398\nread with_output_buffer for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "with_output_buffer", "line": 375, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=17-40\nread invoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=75-98\nread execute! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "execute!", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=213-236\nread globs_for for detail", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=95-118\nread RequiredArgumentMissingError for detail", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=138-161\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=129-152\nread uninstall for detail", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=114-137\nread relative_to_original_destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "relative_to_original_destination_root", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=56-79\nread exists? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "배열 요소를 터미널 너비에 맞춰 열 형태로 출력하는 로직 찾아줘", "query": "terminal column print", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lang": "ko", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nLine 629: it \"uncomments all matching lines in the file\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 64: end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 399: #", "file": "lib/thor.rb", "symbol": "", "line": 399, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 202: end", "file": "spec/register_spec.rb", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 48: shell.ask \"Is this green?\", :green, limited_to: %w(Yes No Maybe)", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 49: check_requirement!", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 4: class EncodingWithUtf8 < Thor", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 3: class Thor", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/tree_spec.rb\nLine 18: def subcommand1", "file": "spec/tree_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 4: describe Thor::Options do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 89: #", "file": "lib/thor.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 3: class Thor", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 1: class MyScript < Thor", "file": "spec/fixtures/script.thor", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 1: # frozen_string_literal: true", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 5: describe Thor::Actions::InjectIntoFile do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 127: say_status :file_clash, :red", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 53: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 22: Rake::Task[\"release\"].invoke", "file": "Thorfile", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 392: #", "file": "lib/thor/base.rb", "symbol": "", "line": 392, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 110: end", "file": "spec/group_spec.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 26: say \"+ #{diff.new_element.chomp}\", :green, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "배열 요소를 터미널 너비에 맞춰 열 형태로 출력하는 로직 찾아줘", "query": "terminal column print", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lang": "ko", "candidates": [{"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\ndefines Thor", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "배열 요소를 터미널 너비에 맞춰 열 형태로 출력하는 로직 찾아줘", "query": "terminal column print", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "배열 요소를 터미널 너비에 맞춰 열 형태로 출력하는 로직 찾아줘", "query": "terminal column print", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=458-481\nread group for detail", "file": "lib/thor/base.rb", "symbol": "group", "line": 458, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=307-330\nread class_options for detail", "file": "lib/thor/base.rb", "symbol": "class_options", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=31-54\nread GroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "GroupPlugin", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=91-114\nread required_options for detail", "file": "lib/thor/command.rb", "symbol": "required_options", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=110-133\nread invoke_from_option for detail", "file": "lib/thor/group.rb", "symbol": "invoke_from_option", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=73-96\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=40-63\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=37-60\nread fetch for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "fetch", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=94-117\nread with_args for detail", "file": "spec/register_spec.rb", "symbol": "with_args", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=108-131\nread long_description_unwrapped for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description_unwrapped", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=225-248\nread current_is_value? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_value?", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=123-146\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=438-461\nread disable_required_check? for detail", "file": "lib/thor.rb", "symbol": "disable_required_check?", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=14-37\nread print for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=4-27\nread Shell for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "我目前在处理模块的更新逻辑,需要找到那个在 thor_yaml 中查找模块位置并执行安装流程的方法。请帮我定位这个负责根据本地或远程位置替换旧文件并保存新状态的方法。", "query": "update module", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lang": "zh", "candidates": [{"text": "File: spec/actions_spec.rb\nLine 389: it \"converts options hash to switches\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 389, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 22: Rake::Task[\"release\"].invoke", "file": "Thorfile", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 13: else", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 18: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 7: best_available.new(prompt, options).readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 78: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 216: describe \"install/update\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 216, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 399: #", "file": "lib/thor.rb", "symbol": "", "line": 399, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 142: def update(name)", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/directory.rb\nLine 48: #", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 10: # config:: give :verbose => false to not log the status.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 57: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 40: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub help)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 42: #", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 72: it \"forwards arguments to the invoked command\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 53: #", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 10: Object.const_defined?(:Readline)", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 33: expect(File.exist?(File.join(destination_root, \"doc/config.rb\"))).to be true", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 84: expect(Thor::Runner.start).to eq([1, 2, 3, nil, nil, nil])", "file": "spec/runner_spec.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 18: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 8: desc \"error\", \"exit with a planned error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 113: raise \"Expected Thor class, got #{klass}\" unless klass <= Thor::Base", "file": "lib/thor/invocation.rb", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 1: # module: random", "file": "spec/fixtures/command.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "我目前在处理模块的更新逻辑,需要找到那个在 thor_yaml 中查找模块位置并执行安装流程的方法。请帮我定位这个负责根据本地或远程位置替换旧文件并保存新状态的方法。", "query": "update module", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lang": "zh", "candidates": [{"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "我目前在处理模块的更新逻辑,需要找到那个在 thor_yaml 中查找模块位置并执行安装流程的方法。请帮我定位这个负责根据本地或远程位置替换旧文件并保存新状态的方法。", "query": "update module", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> open-uri", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> group", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> ../thor", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "我目前在处理模块的更新逻辑,需要找到那个在 thor_yaml 中查找模块位置并执行安装流程的方法。请帮我定位这个负责根据本地或远程位置替换旧文件并保存新状态的方法。", "query": "update module", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=118-141\nread parse_array for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_array", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoker", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/basic_spec.rb lines=5-28\nread shell for detail", "file": "spec/shell/basic_spec.rb", "symbol": "shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=72-95\nread format_cell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "format_cell", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=142-165\nread update for detail", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/error.rb lines=73-96\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=207-230\nread handle_argument_error for detail", "file": "lib/thor/group.rb", "symbol": "handle_argument_error", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=216-239\nread apply for detail", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=55-78\nread Parent for detail", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=172-195\nread animal for detail", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=79-102\nread can_display_colors? for detail", "file": "lib/thor/shell/html.rb", "symbol": "can_display_colors?", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=121-144\nread AnotherScript for detail", "file": "spec/fixtures/script.thor", "symbol": "AnotherScript", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=309-332\nread printable_commands for detail", "file": "lib/thor.rb", "symbol": "printable_commands", "line": 309, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=6-29\nread show_diff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "show_diff", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=83-106\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "사용자가 입력한 명령어가 하이픈(-)을 포함하고 있을 때 이를 언더스코어(_)로 변환하여 처리하는 로직과, 입력된 이름이 여러 명령어와 모호하게 매칭될 경우 에러를 발생시키는 부분에 문제가 있는 것 같습니다. 명령어 별칭(alias)을 확인하고 모호한 명령어를 구분하는 프로세스를 확인해 주세요.", "query": "normalize command ambiguity", "file": "lib/thor.rb", "symbol": "normalize_command_name", "line": 613, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/invoke.thor\nLine 104: class F < Thor::Group", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 227: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 271: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 34: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 124: status = if behavior == :invoke", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 85: # class Rspec::RR < Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 29: # Hack. Make rakefile point to invoker, so rdoc task is generated properly.", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 708: # current command hash.", "file": "lib/thor/base.rb", "symbol": "", "line": 708, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 33: keys.each { |key| hash.delete(convert_key(key)) }", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 613: def normalize_command_name(meth) #:nodoc:", "file": "lib/thor.rb", "symbol": "normalize_command_name", "line": 613, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_file.rb\nLine 64: File.open(destination, \"wb\", config[:perm]) { |f| f.write render }", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 145: else", "file": "lib/thor/command.rb", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 135: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 143: if (instance.methods & [name.to_s, name.to_sym]).empty?", "file": "lib/thor/command.rb", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 22: # Make initializer aware of invocations and the initialization args.", "file": "lib/thor/invocation.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 16: r.read", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 28: if @type == :array and @default.is_a?(Array)", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 59: }).print_default).to eq('\"one\" \"two\"')", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 354: expect(File.read(file)).to eq(\"__start__\\nanother stuff\\nREADME\\n__end__\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 354, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 10: # ==== Parameters", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 21: it \"sorts them lexicographillay\" do", "file": "spec/sort_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 161: end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 51: # insert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 31: # If a command is not found on Thor::Runner, method missing is invoked and", "file": "lib/thor/runner.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "사용자가 입력한 명령어가 하이픈(-)을 포함하고 있을 때 이를 언더스코어(_)로 변환하여 처리하는 로직과, 입력된 이름이 여러 명령어와 모호하게 매칭될 경우 에러를 발생시키는 부분에 문제가 있는 것 같습니다. 명령어 별칭(alias)을 확인하고 모호한 명령어를 구분하는 프로세스를 확인해 주세요.", "query": "normalize command ambiguity", "file": "lib/thor.rb", "symbol": "normalize_command_name", "line": 613, "lang": "ko", "candidates": [{"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "사용자가 입력한 명령어가 하이픈(-)을 포함하고 있을 때 이를 언더스코어(_)로 변환하여 처리하는 로직과, 입력된 이름이 여러 명령어와 모호하게 매칭될 경우 에러를 발생시키는 부분에 문제가 있는 것 같습니다. 명령어 별칭(alias)을 확인하고 모호한 명령어를 구분하는 프로세스를 확인해 주세요.", "query": "normalize command ambiguity", "file": "lib/thor.rb", "symbol": "normalize_command_name", "line": 613, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "사용자가 입력한 명령어가 하이픈(-)을 포함하고 있을 때 이를 언더스코어(_)로 변환하여 처리하는 로직과, 입력된 이름이 여러 명령어와 모호하게 매칭될 경우 에러를 발생시키는 부분에 문제가 있는 것 같습니다. 명령어 별칭(alias)을 확인하고 모호한 명령어를 구분하는 프로세스를 확인해 주세요.", "query": "normalize command ambiguity", "file": "lib/thor.rb", "symbol": "normalize_command_name", "line": 613, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=121-144\nread handle_no_method_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_no_method_error?", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=427-450\nread remove_argument for detail", "file": "lib/thor/base.rb", "symbol": "remove_argument", "line": 427, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/base_spec.rb lines=4-27\nread Amazing for detail", "file": "spec/base_spec.rb", "symbol": "Amazing", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=446-469\nread remove_class_option for detail", "file": "lib/thor/base.rb", "symbol": "remove_class_option", "line": 446, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=129-152\nread HiddenCommand for detail", "file": "lib/thor/command.rb", "symbol": "HiddenCommand", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=263-286\nread create_command for detail", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=24-47\nread find_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_by_namespace", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=64-87\nread C for detail", "file": "spec/fixtures/invoke.thor", "symbol": "C", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=613-636\nread normalize_command_name for detail", "file": "lib/thor.rb", "symbol": "normalize_command_name", "line": 613, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/group.rb lines=110-133\nread invoke_from_option for detail", "file": "lib/thor/group.rb", "symbol": "invoke_from_option", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=27-50\nread included for detail", "file": "lib/thor/rake_compat.rb", "symbol": "included", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=126-149\nread validate! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate!", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=104-127\nread can_display_colors? for detail", "file": "lib/thor/shell/color.rb", "symbol": "can_display_colors?", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=113-136\nread indentation for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=27-50\nread source_root for detail", "file": "lib/thor/actions.rb", "symbol": "source_root", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Comment annuler une injection de code ?", "query": "revoke injection", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "revoke!", "line": 107, "lang": "fr", "candidates": [{"text": "File: spec/actions/create_link_spec.rb\nLine 10: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 25: let(:destination) { \"doc/config.rb\" }", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 107: def revoke!", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "revoke!", "line": 107, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/html_spec.rb\nLine 29: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 15: #", "file": "lib/thor/group.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 19: # Set the terminal's foreground ANSI color to black.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 18: end", "file": "Thorfile", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 9: @stdout = stdout", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 110: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 13: counter = words.first.length", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 138: end", "file": "lib/thor/group.rb", "symbol": "", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 37: # source:: the relative path to the source root.", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 190: FileUtils.cd(destination_root) { result = block.arity == 1 ? yield(destination_root) : yield }", "file": "lib/thor/actions.rb", "symbol": "", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 404: end", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 404, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 21: RUBY_PLATFORM =~ /(aix|darwin|linux|(net|free|open)bsd|cygwin|solaris)/i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 12: @invoker ||= MyCounter.new([1, 2], options, destination_root: destination_root)", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 14: elsif RbConfig::CONFIG[\"host_os\"] =~ /mswin|mingw/ && !ENV[\"ANSICON\"]", "file": "lib/thor/shell.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 134: true", "file": "spec/fixtures/script.thor", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 131: content = invoke!(\"doc\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 63: default_command :say", "file": "spec/register_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 76: human_name.upcase", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 21: #", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 42: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Comment annuler une injection de code ?", "query": "revoke injection", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "revoke!", "line": 107, "lang": "fr", "candidates": [{"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Comment annuler une injection de code ?", "query": "revoke injection", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "revoke!", "line": 107, "lang": "fr", "candidates": [{"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Comment annuler une injection de code ?", "query": "revoke injection", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "revoke!", "line": 107, "lang": "fr", "candidates": [{"text": "Next: read spec/sort_spec.rb lines=58-81\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=180-203\nread print_table for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_table", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=1-24\nread Thor for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=80-103\nread ask for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=156-179\nread check_at_least_one! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_at_least_one!", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=65-88\nread UnknownArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=100-123\nread force_on_collision? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_on_collision?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=278-301\nread stdout for detail", "file": "lib/thor/shell/basic.rb", "symbol": "stdout", "line": 278, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=165-188\nread print_in_columns for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_in_columns", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=478-501\nread disable_required_check for detail", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=13-36\nread invoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/directory_spec.rb lines=23-46\nread revoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoke!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=107-130\nread revoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "revoke!", "line": 107, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=350-373\nread check_unknown_options! for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options!", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=26-49\nread insert_into_file! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "서브커맨드를 등록하고 실패 시 종료 여부를 설정하는 메인 CLI 클래스 구조 좀 보여줘", "query": "subcommand exit_on_failure", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lang": "ko", "candidates": [{"text": "File: spec/register_spec.rb\nLine 110: \"Nothing to see here. Move along.\",", "file": "spec/register_spec.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 123: expect { check_unknown! }.to raise_error(Thor::UnknownArgumentError) do |error|", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 31: #", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 178: end", "file": "spec/group_spec.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 59: @formats << if options[:borders]", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 78: \"N\"", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 7: def bugs", "file": "spec/fixtures/help.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 100: def private_method?(instance)", "file": "lib/thor/command.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 135: # Check if the peek is numeric format and return a Float or Integer.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 5: desc :bugs, \"ALL THE BUGZ!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 6: def self.readline(prompt, options = {})", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 11: if SOME_STRING.encoding.name == \"ISO-8859-7\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 10: class Parent < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\nLine 13: # ==== Examples", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 256: end", "file": "lib/thor/group.rb", "symbol": "", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 191: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 32: describe \"#set_color\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 55: class Parent < Thor", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/option_spec.rb\nLine 104: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 158: # :aliases - Aliases for this option.", "file": "lib/thor.rb", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 5: @shell ||= Thor::Base.shell.new", "file": "spec/sort_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 224: self.name = name.upcase if options[:loud]", "file": "spec/group_spec.rb", "symbol": "", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 20: module RakeCompat", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "서브커맨드를 등록하고 실패 시 종료 여부를 설정하는 메인 CLI 클래스 구조 좀 보여줘", "query": "subcommand exit_on_failure", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lang": "ko", "candidates": [{"text": "File: spec/register_spec.rb\nsibling in spec", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\ndefines Parent", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nsibling in spec", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nsibling in spec", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "서브커맨드를 등록하고 실패 시 종료 여부를 설정하는 메인 CLI 클래스 구조 좀 보여줘", "query": "subcommand exit_on_failure", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "서브커맨드를 등록하고 실패 시 종료 여부를 설정하는 메인 CLI 클래스 구조 좀 보여줘", "query": "subcommand exit_on_failure", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lang": "ko", "candidates": [{"text": "Next: read spec/subcommand_spec.rb lines=50-73\nread foo for detail", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=203-226\nread current_is_switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch?", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=269-292\nread can_display_colors? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "can_display_colors?", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=55-78\nread Parent for detail", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/subcommand_spec.rb lines=59-82\nread exit_on_failure? for detail", "file": "spec/subcommand_spec.rb", "symbol": "exit_on_failure?", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/subcommand_spec.rb lines=47-70\nread SubcommandTest1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "SubcommandTest1", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=27-50\nread revoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=249-272\nread banner for detail", "file": "lib/thor/group.rb", "symbol": "banner", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=104-127\nread camel_case for detail", "file": "lib/thor/util.rb", "symbol": "camel_case", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=53-76\nread merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=398-421\nread CapturableERB for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "CapturableERB", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=34-57\nread invoker for detail", "file": "spec/fixtures/invoke.thor", "symbol": "invoker", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=243-266\nread ChildDefault for detail", "file": "spec/fixtures/script.thor", "symbol": "ChildDefault", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=73-96\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=163-186\nread method_option for detail", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=123-146\nread version for detail", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=59-82\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=320-343\nread subcommands for detail", "file": "lib/thor.rb", "symbol": "subcommands", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=48-71\nread Child1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "Child1", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=57-80\nread PluginWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefault", "line": 57, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Estoy intentando implementar una funcionalidad para añadir código a archivos existentes de forma segura. ¿Dónde está la lógica que gestiona la inserción de contenido antes o después de una línea específica y que lanza un aviso si no se detectan cambios?", "query": "insert content file", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lang": "es", "candidates": [{"text": "File: lib/thor/shell.rb\nLine 76: #", "file": "lib/thor/shell.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 35: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 23: config = args.last.is_a?(Hash) ? args.pop : {}", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 32: `stty size 2>/dev/null`.split[1].to_i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 20: def unix?", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 3: class Thor", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/sort_spec.rb\nLine 64: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 14: def print(array)", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 186: # In pretend mode, just yield down to the block", "file": "lib/thor/actions.rb", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 4: class Thor", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nLine 57: class AmbiguousCommandError < Error", "file": "lib/thor/error.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 3: describe Thor::Actions do", "file": "spec/actions_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nLine 519: expect(help).to match(/h \\- help, show this help/)", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 519, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 4: class TreeApp < Thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\nLine 3: class Thor", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nLine 41: config.before do", "file": "spec/helper.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 6: def load_thorfile(filename)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 7: # and is placed in the destination without the extension .tt. If any", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 26: def spec", "file": "Thorfile", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 36: it \"returns usage for string types\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 52: expect(ThorTask::HiperMega.tasks[\"super\"].description).to eq(\"super\")", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 136: # Shortcut to say_status shell method.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 3: describe Thor do", "file": "spec/sort_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estoy intentando implementar una funcionalidad para añadir código a archivos existentes de forma segura. ¿Dónde está la lógica que gestiona la inserción de contenido antes o después de una línea específica y que lanza un aviso si no se detectan cambios?", "query": "insert content file", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lang": "es", "candidates": [{"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Estoy intentando implementar una funcionalidad para añadir código a archivos existentes de forma segura. ¿Dónde está la lógica que gestiona la inserción de contenido antes o después de una línea específica y que lanza un aviso si no se detectan cambios?", "query": "insert content file", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estoy intentando implementar una funcionalidad para añadir código a archivos existentes de forma segura. ¿Dónde está la lógica que gestiona la inserción de contenido antes o después de una línea específica y que lanza un aviso si no se detectan cambios?", "query": "insert content file", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lang": "es", "candidates": [{"text": "Next: read lib/thor/base.rb lines=793-816\nread dispatch for detail", "file": "lib/thor/base.rb", "symbol": "dispatch", "line": 793, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=9-32\nread empty_directory for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "empty_directory", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/error.rb lines=69-92\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=259-282\nread baseclass for detail", "file": "lib/thor/group.rb", "symbol": "baseclass", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/encoding_spec.rb lines=6-29\nread load_thorfile for detail", "file": "spec/encoding_spec.rb", "symbol": "load_thorfile", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=276-299\nread _invoke_for_class_method for detail", "file": "lib/thor/group.rb", "symbol": "_invoke_for_class_method", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=286-309\nread is? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "is?", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=249-272\nread banner for detail", "file": "lib/thor/group.rb", "symbol": "banner", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=43-66\nread ClassOptionGroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "ClassOptionGroupPlugin", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=460-483\nread method_exclusive_option_names for detail", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=69-92\nread initialize for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/create_link_spec.rb lines=31-54\nread invoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "invoke!", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=26-49\nread insert_into_file! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/quality_spec.rb lines=12-35\nread check_for_tab_characters for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "查找处理命令状态输出并根据标志位决定插入位置的方法", "query": "say_status behavior warning", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "say_status", "line": 123, "lang": "zh", "candidates": [{"text": "File: lib/thor/group.rb\nLine 54: # usage. Check invoke_from_option for more information.", "file": "lib/thor/group.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 16: desc \"subcommand1\", \"A subcommand\"", "file": "spec/tree_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 78: it \"copies and evaluates files within excluding/ directory when no exclude_pattern is present\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 24: SHELL_DELEGATED_METHODS = [:ask, :error, :set_color, :yes?, :no?, :say, :say_error, :say_status, :print_in_columns, :print_table, :print_wrapped, :file_collision, :terminal_width]", "file": "lib/thor/shell.rb", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 231: expect(klass.start(%w(jose))).to eq([\"Hi jose\"])", "file": "spec/group_spec.rb", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 397: TABLE", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 397, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 174: say_status :inside, dir, verbose", "file": "lib/thor/actions.rb", "symbol": "", "line": 174, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 185: end", "file": "lib/thor/util.rb", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 75: say_status :identical, :blue", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 90: base.empty_directory(dirname, config)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 29: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 36: # Set the terminal's background HTML color to green.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 96: say_status :finished, :counting", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 96, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nLine 104: location: location,", "file": "lib/thor/runner.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 79: private :can_has", "file": "spec/command_spec.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 83: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 30: else", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 57: say_status :remove, :red", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 57, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 118: end", "file": "lib/thor/group.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 17: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 11: ENV[\"THOR_COLUMNS\"].to_i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 132: describe \"#say_status\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 132, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 123: def say_status(behavior, warning: nil, color: nil)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "say_status", "line": 123, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "查找处理命令状态输出并根据标志位决定插入位置的方法", "query": "say_status behavior warning", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "say_status", "line": 123, "lang": "zh", "candidates": [{"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "查找处理命令状态输出并根据标志位决定插入位置的方法", "query": "say_status behavior warning", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "say_status", "line": 123, "lang": "zh", "candidates": [{"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "查找处理命令状态输出并根据标志位决定插入位置的方法", "query": "say_status behavior warning", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "say_status", "line": 123, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/parser/argument.rb lines=62-85\nread validate! for detail", "file": "lib/thor/parser/argument.rb", "symbol": "validate!", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=77-100\nread to_hash for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "to_hash", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=47-70\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=384-407\nread diff_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "diff_tool", "line": 384, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=59-82\nread no_or_skip? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=172-195\nread validate_enum_value! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "validate_enum_value!", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=231-254\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/basic_spec.rb lines=5-28\nread shell for detail", "file": "spec/shell/basic_spec.rb", "symbol": "shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=783-806\nread create_command for detail", "file": "lib/thor/base.rb", "symbol": "create_command", "line": 783, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=123-146\nread say_status for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "say_status", "line": 123, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/actions_spec.rb lines=12-35\nread file for detail", "file": "spec/actions_spec.rb", "symbol": "file", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=21-44\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=228-251\nread dispatch for detail", "file": "lib/thor/group.rb", "symbol": "dispatch", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=85-108\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=221-244\nread command_exists? for detail", "file": "lib/thor/group.rb", "symbol": "command_exists?", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=1-24\nread Enum for detail", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=26-49\nread insert_into_file! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "このディレクトリの再帰的なコピー処理で、.tt 拡張子のテンプレートファイルの扱いや、%記号で囲まれたプレースホルダーの置換ロジックを確認したいのですが、どこに実装されていますか?また、空ディレクトリや .empty_directory ファイルの処理も合わせて教えてください。", "query": "directory copy template", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lang": "ja", "candidates": [{"text": "File: lib/thor/line_editor/basic.rb\nLine 8: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 110: class G < Thor::Group", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 195: '/home/apps\\\\{1\\\\}/tasks/*.thor',", "file": "spec/util_spec.rb", "symbol": "", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 12: autoload :Actions, File.expand_path(\"actions\", __dir__)", "file": "lib/thor/base.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 32: ENV[\"THOR_SHELL\"] = \"\"", "file": "spec/shell_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 4: class Thor", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 9: module Actions", "file": "lib/thor/actions.rb", "symbol": "", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 110: # Receives a hash of options and just execute the block if some", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 3: describe Thor::Actions do", "file": "spec/actions_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 4: describe Thor::Actions::EmptyDirectory do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 4: module Actions", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 4: describe Thor::Actions::EmptyDirectory do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 48: description << task.arg_names.map { |n| n.to_s.upcase }.join(\" \")", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/command.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 27: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 13: Test.start(ARGV)", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 14: puts \"expected #{SOME_STRING.encoding.name} to equal UTF-8\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 43: # By default all options are optional, unless :required is given.", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 4: module Actions", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 4: module Actions", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/encoding_spec.rb\nLine 17: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 8: puts \"Invoked!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 15: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 32: #", "file": "lib/thor/shell.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "このディレクトリの再帰的なコピー処理で、.tt 拡張子のテンプレートファイルの扱いや、%記号で囲まれたプレースホルダーの置換ロジックを確認したいのですが、どこに実装されていますか?また、空ディレクトリや .empty_directory ファイルの処理も合わせて教えてください。", "query": "directory copy template", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lang": "ja", "candidates": [{"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "このディレクトリの再帰的なコピー処理で、.tt 拡張子のテンプレートファイルの扱いや、%記号で囲まれたプレースホルダーの置換ロジックを確認したいのですが、どこに実装されていますか?また、空ディレクトリや .empty_directory ファイルの処理も合わせて教えてください。", "query": "directory copy template", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "このディレクトリの再帰的なコピー処理で、.tt 拡張子のテンプレートファイルの扱いや、%記号で囲まれたプレースホルダーの置換ロジックを確認したいのですが、どこに実装されていますか?また、空ディレクトリや .empty_directory ファイルの処理も合わせて教えてください。", "query": "directory copy template", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/script_exit_status_spec.rb lines=2-25\nread thor_command for detail", "file": "spec/script_exit_status_spec.rb", "symbol": "thor_command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=138-161\nread say_status for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "say_status", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=1-24\nread TestSubcommands for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "TestSubcommands", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=203-226\nread method_exclusive for detail", "file": "lib/thor.rb", "symbol": "method_exclusive", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=58-81\nread initialize for detail", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=730-753\nread method_added for detail", "file": "lib/thor/base.rb", "symbol": "method_added", "line": 730, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=203-226\nread current_is_switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch?", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=87-110\nread not_debugging? for detail", "file": "lib/thor/command.rb", "symbol": "not_debugging?", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=1-24\nread LCSDiff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "LCSDiff", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=30-53\nread current_command_chain for detail", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=111-134\nread group for detail", "file": "spec/fixtures/group.thor", "symbol": "group", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=153-176\nread what for detail", "file": "spec/fixtures/script.thor", "symbol": "what", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=64-87\nread invoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=246-269\nread method_at_least_one for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=71-94\nread default_banner for detail", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=76-99\nread unshift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "unshift", "line": 76, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "설정 값에 따라 인자 전달 순서를 엄격하게 제한하는지 여부를 확인하는 로직이 제대로 동작하지 않습니다.", "query": "strict arguments position", "file": "lib/thor/base.rb", "symbol": "strict_args_position?", "line": 223, "lang": "ko", "candidates": [{"text": "File: lib/thor/shell/basic.rb\nLine 264: def prepare_message(message, *color)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 223: def strict_args_position?(config) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "strict_args_position?", "line": 223, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 12: else", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 33: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 47: def five", "file": "spec/fixtures/group.thor", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 103: end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 31: # If a command is not found on Thor::Runner, method missing is invoked and", "file": "lib/thor/runner.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 569: expect(Thor::LineEditor).to receive(:readline).and_return(\"m\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 569, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 40: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 1: require \"tmpdir\"", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 68: #", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 182: #", "file": "lib/thor.rb", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 179: end", "file": "lib/thor/group.rb", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 123: #", "file": "lib/thor/util.rb", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 192: end", "file": "lib/thor/group.rb", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 53: klass.send :define_method, non_namespaced_name do |*args|", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 34: expect(shell.set_color(\"\", :blue)).to eq \"<htmlcontent>\"", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 16: puts \"COOL\"", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/command.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 46: end", "file": "spec/command_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 20: private", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 41: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 170: # Prints a table.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 13: w.close", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "설정 값에 따라 인자 전달 순서를 엄격하게 제한하는지 여부를 확인하는 로직이 제대로 동작하지 않습니다.", "query": "strict arguments position", "file": "lib/thor/base.rb", "symbol": "strict_args_position?", "line": 223, "lang": "ko", "candidates": [{"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "설정 값에 따라 인자 전달 순서를 엄격하게 제한하는지 여부를 확인하는 로직이 제대로 동작하지 않습니다.", "query": "strict arguments position", "file": "lib/thor/base.rb", "symbol": "strict_args_position?", "line": 223, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "설정 값에 따라 인자 전달 순서를 엄격하게 제한하는지 여부를 확인하는 로직이 제대로 동작하지 않습니다.", "query": "strict arguments position", "file": "lib/thor/base.rb", "symbol": "strict_args_position?", "line": 223, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/shell.rb lines=4-27\nread Base for detail", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/script_exit_status_spec.rb lines=2-25\nread thor_command for detail", "file": "spec/script_exit_status_spec.rb", "symbol": "thor_command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=223-246\nread strict_args_position? for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position?", "line": 223, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=286-309\nread is? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "is?", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=263-286\nread gsub_file! for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=122-145\nread invoke_command for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_command", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=613-636\nread normalize_command_name for detail", "file": "lib/thor.rb", "symbol": "normalize_command_name", "line": 613, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=333-356\nread comment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "comment_lines", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=350-373\nread remove_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "remove_file", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=179-202\nread boom for detail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/tree_spec.rb lines=12-35\nread command2 for detail", "file": "spec/tree_spec.rb", "symbol": "command2", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=385-408\nread actually_gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "actually_gsub_file", "line": 385, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=84-107\nread unshift for detail", "file": "lib/thor/parser/options.rb", "symbol": "unshift", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_link_spec.rb lines=35-58\nread revoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "revoke!", "line": 35, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "How does this library handle adding a new command when the target class is a group versus a standard subclass?", "query": "register subcommand group", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lang": "en", "candidates": [{"text": "File: lib/thor/actions/directory.rb\nLine 86: case file_source", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 720: # Every time someone inherits from a Thor class, register the klass", "file": "lib/thor/base.rb", "symbol": "", "line": 720, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 6: super(name.to_s, description, long_description, wrap_long_description, usage, options || {}, options_relation || {})", "file": "lib/thor/command.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 37: def register(klass, subcommand_name, usage, description, options = {})", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nLine 7: puts options['fruit']", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 121: destination", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 23: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 87: opts = parse(\"-fba\")", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 99: BoringVendorProvidedCLI.register(", "file": "spec/register_spec.rb", "symbol": "", "line": 99, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 98: class WhinyGenerator < Thor::Group", "file": "spec/fixtures/group.thor", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 27: autoload :Basic, File.expand_path(\"shell/basic\", __dir__)", "file": "lib/thor/shell.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 322: # :default:: -- Default value for this argument.", "file": "lib/thor/base.rb", "symbol": "", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 184: create({})", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 113: file = File.join(destination_root, \"doc/config.rb\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 15: def hidden?", "file": "lib/thor/command.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 232: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 259: # gsub_file! 'README', /rake/, :green do |match|", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 12: @invoker ||= WhinyGenerator.new([1, 2], {}, destination_root: destination_root)", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 40: it \"returns usage for numeric types\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 21: def push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 28: # ==== Parameters", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 15: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 3: class Thor", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 32: invoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "How does this library handle adding a new command when the target class is a group versus a standard subclass?", "query": "register subcommand group", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lang": "en", "candidates": [{"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "How does this library handle adding a new command when the target class is a group versus a standard subclass?", "query": "register subcommand group", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lang": "en", "candidates": [{"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "How does this library handle adding a new command when the target class is a group versus a standard subclass?", "query": "register subcommand group", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lang": "en", "candidates": [{"text": "Next: read lib/thor/command.rb lines=21-44\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=164-187\nread undasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=114-137\nread handle_argument_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_argument_error?", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=709-732\nread find_and_refresh_command for detail", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=78-101\nread long_desc for detail", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=750-773\nread from_superclass for detail", "file": "lib/thor/base.rb", "symbol": "from_superclass", "line": 750, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=56-79\nread exists? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=79-102\nread shift for detail", "file": "lib/thor/parser/options.rb", "symbol": "shift", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=100-123\nread E for detail", "file": "spec/fixtures/invoke.thor", "symbol": "E", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=59-82\nread foo for detail", "file": "spec/fixtures/script.thor", "symbol": "foo", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=137-160\nread DynamicCommand for detail", "file": "lib/thor/command.rb", "symbol": "DynamicCommand", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=43-66\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=160-183\nread dasherized? for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherized?", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=797-820\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 797, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "finde eine thor gruppe mit einer privaten methode foo und einer methode baz", "query": "thor group private foo", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lang": "de", "candidates": [{"text": "File: spec/fixtures/invoke.thor\nLine 78: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 61: self", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 253: # :force => true, to force the replacement regardless of runner behavior.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 185: @check_default_type = true", "file": "lib/thor/base.rb", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 13: Help.start(ARGV)", "file": "spec/fixtures/help.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 319: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 319, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 149: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 73: end", "file": "spec/register_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 70: # ask(\"What is your name?\")", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 10: def self.best_available", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 6: def load_thorfile(filename)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 116: class ParentGroup < Thor::Group", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/options_spec.rb\nLine 209: expect { parse(\"--bar\") }.to raise_error(Thor::RequiredArgumentMissingError)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 14: subcommand \"sub\", Subcommand", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 21: RUBY_PLATFORM =~ /(aix|darwin|linux|(net|free|open)bsd|cygwin|solaris)/i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 64: end", "file": "spec/helper.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 99: context \"protected methods\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 3: class Subcommand < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 296: it \"does not log status if required\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 386: # class_option :one", "file": "lib/thor/base.rb", "symbol": "", "line": 386, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 45: @all_commands = all_commands", "file": "lib/thor/error.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 178: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 179: allow(ENV).to receive(:[])", "file": "spec/util_spec.rb", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 29: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "finde eine thor gruppe mit einer privaten methode foo und einer methode baz", "query": "thor group private foo", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lang": "de", "candidates": [{"text": "File: spec/fixtures/group.thor\ndefines ParentGroup", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "finde eine thor gruppe mit einer privaten methode foo und einer methode baz", "query": "thor group private foo", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lang": "de", "candidates": [{"text": "Next: read lib/thor/group.rb lines=249-272\nread banner for detail", "file": "lib/thor/group.rb", "symbol": "banner", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=458-481\nread group for detail", "file": "lib/thor/base.rb", "symbol": "group", "line": 458, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/arguments.rb lines=59-82\nread no_or_skip? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=3-26\nread Terminal for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Terminal", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=58-81\nread matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "matches", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=72-95\nread handle_no_command_error for detail", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=68-91\nread absolute_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "absolute_matches", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=297-320\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 297, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=172-195\nread validate_enum_value! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "validate_enum_value!", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=216-239\nread apply for detail", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=154-177\nread ClassMethods for detail", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=114-137\nread handle_argument_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_argument_error?", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=168-191\nread check_unknown! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=156-179\nread check_at_least_one! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_at_least_one!", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=247-270\nread Arities for detail", "file": "spec/fixtures/script.thor", "symbol": "Arities", "line": 247, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=285-308\nread run_ruby_script for detail", "file": "lib/thor/actions.rb", "symbol": "run_ruby_script", "line": 285, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "thor 기반으로 기본 명령어랑 서브커맨드 설정된 파일 찾아줘", "query": "thor subcommand default", "file": "spec/fixtures/script.thor", "symbol": "MyDefaults", "line": 221, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 4: class Thor", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 158: expect(bold).to eq(\"\\e[37m\\e[1mhi!\\e[0m\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 36: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 23: def four", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 57: next unless filename =~ included", "file": "spec/quality_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 12: expect(Thor::Util.find_by_namespace(\"\")).to eq(Scripts::MyDefaults)", "file": "spec/util_spec.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 221: class MyDefaults < Thor", "file": "spec/fixtures/script.thor", "symbol": "MyDefaults", "line": 221, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Thorfile\nLine 3: require \"bundler\"", "file": "Thorfile", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 46: super(convert_key(key))", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 220: expect(Scripts::MyDefaults.namespace).to eq(\"default\")", "file": "spec/base_spec.rb", "symbol": "", "line": 220, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nLine 99: def aliases_for_usage", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 87: opts = parse(\"-fba\")", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 14: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 54: #", "file": "lib/thor/util.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 271: klass = Class.new(Thor::Group)", "file": "spec/base_spec.rb", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 8: # destination:: the relative path to the destination root.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 57: type: :array,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 6: barn_help = capture(:stdout) { Scripts::MyDefaults.start(%w(barn)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 20: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 46: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 10: def self.best_available", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 24: expect(parse(\"name\", \"+13\")[\"numeric\"]).to eq(13)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 80: \"key:value\"", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "thor 기반으로 기본 명령어랑 서브커맨드 설정된 파일 찾아줘", "query": "thor subcommand default", "file": "spec/fixtures/script.thor", "symbol": "MyDefaults", "line": 221, "lang": "ko", "candidates": [{"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines MyDefaults", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "thor 기반으로 기본 명령어랑 서브커맨드 설정된 파일 찾아줘", "query": "thor subcommand default", "file": "spec/fixtures/script.thor", "symbol": "MyDefaults", "line": 221, "lang": "ko", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=403-426\nread class_exclusive_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=8-31\nread action for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=1-24\nread Thor for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=108-131\nread are_colors_supported? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=59-82\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=460-483\nread method_exclusive_option_names for detail", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=629-652\nread exit_on_failure? for detail", "file": "lib/thor/base.rb", "symbol": "exit_on_failure?", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=194-217\nread thor_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "thor_yaml", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=83-106\nread invoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "invoke!", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=31-54\nread GroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "GroupPlugin", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=221-244\nread MyDefaults for detail", "file": "spec/fixtures/script.thor", "symbol": "MyDefaults", "line": 221, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=567-590\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=314-337\nread uncomment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "uncomment_lines", "line": 314, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=398-421\nread CapturableERB for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "CapturableERB", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "파일 내용을 변경하면서 정규식 대체를 수행하는 메서드 찾기", "query": "gsub file", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "actually_gsub_file", "line": 385, "lang": "ko", "candidates": [{"text": "File: spec/parser/option_spec.rb\nLine 245: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 30: Thor::Base.shell = nil", "file": "spec/shell_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 376: context \"with revoke behavior\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 376, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 385: def actually_gsub_file(path, flag, args, error_on_no_change, &block)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "actually_gsub_file", "line": 385, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell_spec.rb\nLine 17: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 85: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 3: NUMERIC = /[-+]?(\\d*\\.\\d+|\\d+)/", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 33: desc \"invoker\", \"invoke a b command\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 54: data.call", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 5: script_path= \"#{gem_dir}/spec/fixtures/exit_status.thor\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 9: def terminal_width", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 53: expect(invoke!(\"doc/README\", \"more specific content\\n\")).to(", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 283: desc 'pear', 'pear'; def pear; end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 7: true", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 98: # Shows the file collision menu to the user and gets the result.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 30: Thor::Base.shell = Thor::Shell::Basic", "file": "spec/helper.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 31: say \" #{diff.old_element.chomp}\", nil, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 61: invoke_with_conflict_check do", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 5: SOME_STRING = \"Some λέξεις 一些词 🎉\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 8: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 31: @default", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "파일 내용을 변경하면서 정규식 대체를 수행하는 메서드 찾기", "query": "gsub file", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "actually_gsub_file", "line": 385, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "파일 내용을 변경하면서 정규식 대체를 수행하는 메서드 찾기", "query": "gsub file", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "actually_gsub_file", "line": 385, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "파일 내용을 변경하면서 정규식 대체를 수행하는 메서드 찾기", "query": "gsub file", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "actually_gsub_file", "line": 385, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/actions.rb lines=248-271\nread run for detail", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=4-27\nread TreeApp for detail", "file": "spec/tree_spec.rb", "symbol": "TreeApp", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=123-146\nread version for detail", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=163-186\nread method_option for detail", "file": "lib/thor.rb", "symbol": "method_option", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=296-319\nread file_collision_help for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=446-469\nread remove_class_option for detail", "file": "lib/thor/base.rb", "symbol": "remove_class_option", "line": 446, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=59-82\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=308-331\nread thor for detail", "file": "lib/thor/actions.rb", "symbol": "thor", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=269-292\nread multiple_usages for detail", "file": "spec/fixtures/script.thor", "symbol": "multiple_usages", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=594-617\nread initialize_added for detail", "file": "lib/thor.rb", "symbol": "initialize_added", "line": 594, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=73-96\nread on_conflict_behavior for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "on_conflict_behavior", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=326-349\nread unix? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "unix?", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=385-408\nread actually_gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "actually_gsub_file", "line": 385, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions.rb lines=99-122\nread destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "destination_root", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "테스트용 스크립트에서 실행 결과로 항상 참을 반환하는 메서드 찾아줘", "query": "spec fixtures true", "file": "spec/fixtures/script.thor", "symbol": "send", "line": 128, "lang": "ko", "candidates": [{"text": "File: lib/thor/invocation.rb\nLine 116: klass.send(:dispatch, command, args, opts, config) do |instance|", "file": "lib/thor/invocation.rb", "symbol": "", "line": 116, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nLine 23: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub print_opt --opt output)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 70: # :green", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 88: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 650: expect(capture(:stdout) { MyScript.command_help(shell, \"long_description\") }).to eq(<<-HELP)", "file": "spec/thor_spec.rb", "symbol": "", "line": 650, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 87: URI.send(:open, source, config.fetch(:http_headers, {})) { |input| input.binmode.read }", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 87, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nLine 8: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 5: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 46: @assigns[argument.human_name] = send(:\"parse_#{argument.type}\", argument.human_name)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 41: base.with_padding do", "file": "spec/shell_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 60: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 267: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 267, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 11: class_option \"opt\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 60: no_commands do", "file": "spec/fixtures/group.thor", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 5: class_option \"fruit\", :aliases => \"-f\", :type => :string, :enum => %w(apple banana)", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 9: capture(:stdout) { runner.send(*args, &block) }", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nLine 192: allow(ENV).to receive(:[]).with(\"NO_COLOR\").and_return(nil)", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 13: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 128: def send", "file": "spec/fixtures/script.thor", "symbol": "send", "line": 128, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 107: expect(@action.send(:convert_encoded_instructions, \"%file_name%.txt\")).to eq(\"expected.txt\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 107, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nLine 4: desc \"print_opt\", \"My method\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 103: if name.nil?", "file": "lib/thor/invocation.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 203: content = capture(:stdout) { MyCounter.send(:class_options_help, Thor::Base.shell.new, hash) }", "file": "spec/base_spec.rb", "symbol": "", "line": 203, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 300: # ==== Examples", "file": "lib/thor/actions.rb", "symbol": "", "line": 300, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "테스트용 스크립트에서 실행 결과로 항상 참을 반환하는 메서드 찾아줘", "query": "spec fixtures true", "file": "spec/fixtures/script.thor", "symbol": "send", "line": 128, "lang": "ko", "candidates": [{"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\ndefines send", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "테스트용 스크립트에서 실행 결과로 항상 참을 반환하는 메서드 찾아줘", "query": "spec fixtures true", "file": "spec/fixtures/script.thor", "symbol": "send", "line": 128, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/encoding_spec.rb lines=6-29\nread load_thorfile for detail", "file": "spec/encoding_spec.rb", "symbol": "load_thorfile", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=4-27\nread EncodingOther for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "EncodingOther", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=350-373\nread check_unknown_options! for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options!", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=307-330\nread class_options for detail", "file": "lib/thor/base.rb", "symbol": "class_options", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=59-82\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=64-87\nread reverse_merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=128-151\nread send for detail", "file": "spec/fixtures/script.thor", "symbol": "send", "line": 128, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=72-95\nread replace for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "replace", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=39-62\nread B for detail", "file": "spec/fixtures/invoke.thor", "symbol": "B", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=66-89\nread PluginWithDefaultMultipleArguments for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefaultMultipleArguments", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "スクリプトの実行エラー時に標準エラー出力にメッセージを表示する方法を知りたいです。", "query": "error output stderr", "file": "lib/thor/shell/basic.rb", "symbol": "error", "line": 251, "lang": "ja", "candidates": [{"text": "File: lib/thor/shell/lcs_diff.rb\nLine 36: # for diff.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 480: end", "file": "lib/thor.rb", "symbol": "", "line": 480, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 16: # rb-readline does not allow Readline.completion_proc= to receive nil.", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 9: def terminal_width", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 428: expect(parse(\"--skip-foo=f\")[\"skip-foo\"]).to eq(false)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 428, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 539: it \"raises error when value isn't in Array enum\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 539, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 8: push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 7: class Test < Thor", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 157: [self.class, name.to_s]", "file": "lib/thor/invocation.rb", "symbol": "", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 157: end", "file": "lib/thor/actions.rb", "symbol": "", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 38: it \"raises an error if the source does not exist\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 251: def error(statement)", "file": "lib/thor/shell/basic.rb", "symbol": "error", "line": 251, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_file_spec.rb\nLine 184: it \"does not raise an error if the file does not exist\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 184, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 114: def handle_argument_error?(instance, error, caller)", "file": "lib/thor/command.rb", "symbol": "", "line": 114, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 43: options.fetch(:limited_to, [])", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 39: alias rake_namespace namespace", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 13: counter = words.first.length", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 7: # Injects the given content into a file, raising an error if the contents of", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nLine 15: class SubApp < Thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 12: pop", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 245: # Run a regular expression replacement on a file, raising an error if the", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 245, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 256: def parse_boolean(switch)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 506: expect(options).to eq(\"other\" => \"method default\")", "file": "spec/thor_spec.rb", "symbol": "", "line": 506, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 26: attr_reader :error", "file": "lib/thor/error.rb", "symbol": "", "line": 26, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "スクリプトの実行エラー時に標準エラー出力にメッセージを表示する方法を知りたいです。", "query": "error output stderr", "file": "lib/thor/shell/basic.rb", "symbol": "error", "line": 251, "lang": "ja", "candidates": [{"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "スクリプトの実行エラー時に標準エラー出力にメッセージを表示する方法を知りたいです。", "query": "error output stderr", "file": "lib/thor/shell/basic.rb", "symbol": "error", "line": 251, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "スクリプトの実行エラー時に標準エラー出力にメッセージを表示する方法を知りたいです。", "query": "error output stderr", "file": "lib/thor/shell/basic.rb", "symbol": "error", "line": 251, "lang": "ja", "candidates": [{"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=350-373\nread check_unknown_options! for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options!", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=288-311\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=167-190\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=17-40\nread revoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "revoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=128-151\nread bar for detail", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=251-274\nread error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "error", "line": 251, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=94-117\nread with_args for detail", "file": "spec/register_spec.rb", "symbol": "with_args", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=60-83\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=72-95\nread handle_no_command_error for detail", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=60-83\nread invoke! for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=71-94\nread example_default_command for detail", "file": "spec/fixtures/script.thor", "symbol": "example_default_command", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=21-44\nread output_diff_line for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "output_diff_line", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=25-48\nread pop for detail", "file": "lib/thor/nested_context.rb", "symbol": "pop", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=168-191\nread check_unknown! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=83-106\nread windows? for detail", "file": "spec/helper.rb", "symbol": "windows?", "line": 83, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "상속 구조를 결정하는 메서드 찾아줘", "query": "superclass lookup", "file": "lib/thor/base.rb", "symbol": "baseclass", "line": 778, "lang": "ko", "candidates": [{"text": "File: spec/actions/create_file_spec.rb\nLine 153: create_file(\"doc/config\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 44: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 28: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 13: counter = words.first.length", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 5: File.readlines(filename).each_with_index do |line, number|", "file": "spec/quality_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 5: describe \"file's encoding\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 778: def baseclass #:nodoc:", "file": "lib/thor/base.rb", "symbol": "baseclass", "line": 778, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 472: context \"and no force option\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 472, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 2: class Option < Argument #:nodoc:", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 63: required: false,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 45: false", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 111: saned - caller", "file": "lib/thor/command.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 552: def baseclass #:nodoc:", "file": "lib/thor.rb", "symbol": "", "line": 552, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nLine 29: desc \"a\", \"First Command\"", "file": "spec/sort_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 122: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 19: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 180: raise MalformattedArgumentError, message % [name, switch.enum_to_s, value]", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 4: module Actions", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 243: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 15: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 368: it \"uses maximum terminal width\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 368, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 259: def baseclass #:nodoc:", "file": "lib/thor/group.rb", "symbol": "", "line": 259, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nLine 152: end.to raise_error(ArgumentError, 'Expected hash default value for \\'--foo-bar\\'; got \"baz\" (string)')", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "상속 구조를 결정하는 메서드 찾아줘", "query": "superclass lookup", "file": "lib/thor/base.rb", "symbol": "baseclass", "line": 778, "lang": "ko", "candidates": [{"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "상속 구조를 결정하는 메서드 찾아줘", "query": "superclass lookup", "file": "lib/thor/base.rb", "symbol": "baseclass", "line": 778, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "상속 구조를 결정하는 메서드 찾아줘", "query": "superclass lookup", "file": "lib/thor/base.rb", "symbol": "baseclass", "line": 778, "lang": "ko", "candidates": [{"text": "Next: read spec/fixtures/encoding_implicit.thor lines=8-31\nread encoding for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=320-343\nread exclusive for detail", "file": "spec/fixtures/script.thor", "symbol": "exclusive", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=20-43\nread unix? for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "unix?", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=778-801\nread baseclass for detail", "file": "lib/thor/base.rb", "symbol": "baseclass", "line": 778, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/quality_spec.rb lines=21-44\nread check_for_extra_spaces for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=7-30\nread command1 for detail", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=90-113\nread snake_case for detail", "file": "lib/thor/util.rb", "symbol": "snake_case", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=288-311\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=282-305\nread stderr for detail", "file": "lib/thor/shell/basic.rb", "symbol": "stderr", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=127-150\nread ChildGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ChildGroup", "line": 127, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "The method responsible for formatting the full name string is incorrectly prioritizing the suffix from the options hash over the provided first name argument, resulting in a 'Lastname, Firstname' output which should be verified against our naming conventions.", "query": "name formatting string", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lang": "en", "candidates": [{"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 26: end.compact!", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 256: desc \"one_arg ARG\", \"takes one arg\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 256, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 103: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 57: end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 7: #", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 54: dup.merge!(other)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 8: def encoding", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 158: # When at least one is required of the options A and B,", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 158, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nLine 475: table = [", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 475, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 4: SOME_STRING = \"Some λέξεις 一些词 🎉\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 43: def one(first_name)", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 11: @prompt = prompt", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 57: # array of acceptable answers. If one of those is not supplied,", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 57, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 301: #", "file": "lib/thor/base.rb", "symbol": "", "line": 301, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 160: def dasherized?", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 10: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 3: require \"bundler\"", "file": "Thorfile", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 190: # option :one", "file": "lib/thor.rb", "symbol": "", "line": 190, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 49: # Set color by using a string or one of the defined constants. If a third", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nLine 246: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 58: error_messages << check_for_spec_defs_with_single_quotes(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 50: expect(MyCounter.desc).to eq(\"Description:\\n This generator runs three commands: one, two and three.\\n\")", "file": "spec/group_spec.rb", "symbol": "", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 85: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "The method responsible for formatting the full name string is incorrectly prioritizing the suffix from the options hash over the provided first name argument, resulting in a 'Lastname, Firstname' output which should be verified against our naming conventions.", "query": "name formatting string", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lang": "en", "candidates": [{"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\ndefines one", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "The method responsible for formatting the full name string is incorrectly prioritizing the suffix from the options hash over the provided first name argument, resulting in a 'Lastname, Firstname' output which should be verified against our naming conventions.", "query": "name formatting string", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lang": "en", "candidates": [{"text": "Next: read lib/thor.rb lines=634-657\nread find_command_possibilities for detail", "file": "lib/thor.rb", "symbol": "find_command_possibilities", "line": 634, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=27-50\nread source_root for detail", "file": "lib/thor/actions.rb", "symbol": "source_root", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=9-32\nread option for detail", "file": "spec/parser/option_spec.rb", "symbol": "option", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=449-472\nread command_exists? for detail", "file": "lib/thor.rb", "symbol": "command_exists?", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=79-102\nread shift for detail", "file": "lib/thor/parser/options.rb", "symbol": "shift", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=274-297\nread parse_peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_peek", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=52-75\nread enum_to_s for detail", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=92-115\nread long_description for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=9-32\nread error for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "error", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=43-66\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/arguments.rb lines=118-141\nread parse_array for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_array", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=194-217\nread thor_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "thor_yaml", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=9-32\nread empty_directory for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "empty_directory", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=159-182\nread attr_writer for detail", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=347-370\nread ask_filtered for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_filtered", "line": 347, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=133-156\nread find_in_source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "find_in_source_paths", "line": 133, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Wo wird dieser String zurückgegeben?", "query": "\"bar\" string", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lang": "de", "candidates": [{"text": "File: spec/helper.rb\nLine 67: File.join(File.dirname(__FILE__), \"sandbox\")", "file": "spec/helper.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 39: expect(parse(:foo, :bar).type).to eq(:string)", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 6: attr_writer :shell", "file": "lib/thor/shell.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 10: class Parent < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 57: when Symbol", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 18: # This parse quick options given as method_options. It makes several", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 48: message = namespace ? \"#{message} in #{namespace.inspect} namespace.\" : \"#{message}.\"", "file": "lib/thor/error.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 300: # class_options :foo => false, :bar => :required, :baz => :string", "file": "lib/thor/base.rb", "symbol": "", "line": 300, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 41: expect(FileUtils).to receive(:chmod_R).with(0755, file)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 71: # Sets the absolute destination value from a relative destination value.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 272: # Load Thorfiles relevant to the given method. If you provide \"foo:bar\" it", "file": "lib/thor/runner.rb", "symbol": "", "line": 272, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 128: def bar", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 17: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 74: if identical?", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 15: expect(command(bar: :required).formatted_usage(object)).to eq(\"foo:can_has --bar=BAR\")", "file": "spec/command_spec.rb", "symbol": "", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 29: autoload :HTML, File.expand_path(\"shell/html\", __dir__)", "file": "lib/thor/shell.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 21: # parse :foo => \"bar\"", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 14: it \"sets the base value on the shell if an accessor is available\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 174: [options, args]", "file": "spec/thor_spec.rb", "symbol": "", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 118: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 56: describe \"#start\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 10: def describe(name, opts)", "file": "spec/fixtures/command.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 42: # MyScript.new [1.0], { :foo => :bar }, :shell => Thor::Shell::Basic.new", "file": "lib/thor/shell.rb", "symbol": "", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nLine 7: class RakeTask < Rake::TaskLib", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Wo wird dieser String zurückgegeben?", "query": "\"bar\" string", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lang": "de", "candidates": [{"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\ndefines bar", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Wo wird dieser String zurückgegeben?", "query": "\"bar\" string", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lang": "de", "candidates": [{"text": "Next: read lib/thor/base.rb lines=215-238\nread strict_args_position! for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=320-343\nread exclusive for detail", "file": "spec/fixtures/script.thor", "symbol": "exclusive", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=128-151\nread bar for detail", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=47-70\nread hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "hidden", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=62-85\nread validate! for detail", "file": "lib/thor/parser/argument.rb", "symbol": "validate!", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=67-90\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=38-61\nread part_two for detail", "file": "spec/register_spec.rb", "symbol": "part_two", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=64-87\nread invoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=472-495\nread commands for detail", "file": "lib/thor/base.rb", "symbol": "commands", "line": 472, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=94-117\nread with_args for detail", "file": "spec/register_spec.rb", "symbol": "with_args", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/html.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "ディレクトリの作成処理を修正しています。指定した保存先が既に存在するかどうかを判定しているロジックはどこにありますか?", "query": "file exists check", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lang": "ja", "candidates": [{"text": "File: lib/thor/actions/inject_into_file.rb\nLine 50: #", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 19: exit_status.exitstatus", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 2: require_relative \"line_editor/readline\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 21: include Rake::DSL if defined?(Rake::DSL)", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 10: # data:: the data to append to the file.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 45: def exists?", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nLine 47: else", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 33: expect(FileUtils.identical?(source, destination)).to be true", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 16: expect(shell.base).to eq(base)", "file": "spec/shell_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 21: map \"animal_prison\" => \"zoo\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 78: def spell_checker", "file": "lib/thor/error.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 163: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 14: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 24: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 98: # Besides giving an instance, you can also give a class to invoke:", "file": "lib/thor/invocation.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 177: expect(@content).to match(/finished counting/)", "file": "spec/group_spec.rb", "symbol": "", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 184: end", "file": "spec/register_spec.rb", "symbol": "", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 21: it \"returns the shell in use\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 33: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 73: File.expand_path(File.join(File.dirname(__FILE__), \"bundle\"))", "file": "spec/fixtures/group.thor", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 209: expect(parse(:foo, :numeric).usage).to eq(\"[--foo=N]\")", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 72: describe \"when directory exists\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 171: #", "file": "lib/thor/group.rb", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "ディレクトリの作成処理を修正しています。指定した保存先が既に存在するかどうかを判定しているロジックはどこにありますか?", "query": "file exists check", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lang": "ja", "candidates": [{"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "ディレクトリの作成処理を修正しています。指定した保存先が既に存在するかどうかを判定しているロジックはどこにありますか?", "query": "file exists check", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "ディレクトリの作成処理を修正しています。指定した保存先が既に存在するかどうかを判定しているロジックはどこにありますか?", "query": "file exists check", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=194-217\nread thor_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "thor_yaml", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=83-106\nread convert_key for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "convert_key", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=110-133\nread invoke_from_option for detail", "file": "lib/thor/group.rb", "symbol": "invoke_from_option", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=133-156\nread find_in_source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "find_in_source_paths", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=41-64\nread slice for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "slice", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=278-301\nread stdout for detail", "file": "lib/thor/shell/basic.rb", "symbol": "stdout", "line": 278, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=133-156\nread potentially_ambiguous for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/thor_spec.rb lines=880-903\nread no_arg for detail", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/html.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/html.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=154-177\nread ClassMethods for detail", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=281-304\nread Pear for detail", "file": "spec/fixtures/script.thor", "symbol": "Pear", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=261-284\nread two_args for detail", "file": "spec/fixtures/script.thor", "symbol": "two_args", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=259-282\nread baseclass for detail", "file": "lib/thor/group.rb", "symbol": "baseclass", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=103-126\nread files for detail", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "NO_COLOR 환경 변수가 설정되어 있는지 확인해야 합니다. 이 환경 변수가 null이거나 비어 있지 않다면 색상이 비활성화된 것으로 간주해야 합니다.", "query": "NO_COLOR check", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_disabled?", "line": 112, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions/directory.rb\nLine 86: case file_source", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 13: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 331: # comment_lines 'config/initializers/session_store.rb', /cookie_store/", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 331, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 169: option(\"foo\", type: :string, default: :bar, check_default_type: true)", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 26: def spec", "file": "Thorfile", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 14: it \"respects explicit non-UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 199: yaml || {}", "file": "lib/thor/runner.rb", "symbol": "", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 42: ARGV.replace []", "file": "spec/helper.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 326: super.merge!(destination_root: destination_root)", "file": "lib/thor/actions.rb", "symbol": "", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 14: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 336: gsub_file(path, /^(\\s*)([^#\\n]*#{flag})/, '\\1# \\2', *args)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 336, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 231: #", "file": "lib/thor.rb", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 20: :banner => \"THREE\", :aliases => \"-t\"", "file": "spec/fixtures/group.thor", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 129: class HiddenCommand < Command", "file": "lib/thor/command.rb", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 30: Thor::Base.shell = Thor::Shell::Basic", "file": "spec/helper.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 388: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 388, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 4: module Sandbox #:nodoc:", "file": "lib/thor/util.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 4: class TreeApp < Thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 591: describe \"#inject_into_module\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 591, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 58: module_eval <<-METHOD, __FILE__, __LINE__ + 1", "file": "lib/thor/shell.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 112: def are_colors_disabled?", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_disabled?", "line": 112, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/options_spec.rb\nLine 153: create(foo: :string, bar: :required)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 272: # Load Thorfiles relevant to the given method. If you provide \"foo:bar\" it", "file": "lib/thor/runner.rb", "symbol": "", "line": 272, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "NO_COLOR 환경 변수가 설정되어 있는지 확인해야 합니다. 이 환경 변수가 null이거나 비어 있지 않다면 색상이 비활성화된 것으로 간주해야 합니다.", "query": "NO_COLOR check", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_disabled?", "line": 112, "lang": "ko", "candidates": [{"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "NO_COLOR 환경 변수가 설정되어 있는지 확인해야 합니다. 이 환경 변수가 null이거나 비어 있지 않다면 색상이 비활성화된 것으로 간주해야 합니다.", "query": "NO_COLOR check", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_disabled?", "line": 112, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "NO_COLOR 환경 변수가 설정되어 있는지 확인해야 합니다. 이 환경 변수가 null이거나 비어 있지 않다면 색상이 비활성화된 것으로 간주해야 합니다.", "query": "NO_COLOR check", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_disabled?", "line": 112, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/runner.rb lines=167-190\nread installed for detail", "file": "lib/thor/runner.rb", "symbol": "installed", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=123-146\nread version for detail", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=493-516\nread print_at_least_one_required_options for detail", "file": "lib/thor.rb", "symbol": "print_at_least_one_required_options", "line": 493, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=6-29\nread Thor for detail", "file": "lib/thor/shell/color.rb", "symbol": "Thor", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=20-43\nread RakeCompat for detail", "file": "lib/thor/rake_compat.rb", "symbol": "RakeCompat", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=247-270\nread Arities for detail", "file": "spec/fixtures/script.thor", "symbol": "Arities", "line": 247, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=72-95\nread handle_no_command_error for detail", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=104-127\nread can_display_colors? for detail", "file": "lib/thor/shell/color.rb", "symbol": "can_display_colors?", "line": 104, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=85-108\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=123-146\nread say_status for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "say_status", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=207-230\nread handle_argument_error for detail", "file": "lib/thor/group.rb", "symbol": "handle_argument_error", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=112-135\nread are_colors_disabled? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_disabled?", "line": 112, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/terminal.rb lines=27-50\nread dynamic_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=83-106\nread usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "usage", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=27-50\nread included for detail", "file": "lib/thor/rake_compat.rb", "symbol": "included", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=472-495\nread commands for detail", "file": "lib/thor/base.rb", "symbol": "commands", "line": 472, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=71-94\nread default_banner for detail", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=101-124\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Je cherche à comprendre comment sont générées les données de test pour les scripts de démonstration. Peux-tu me montrer la méthode qui permet de retourner un type d'entité spécifique sous forme de liste ?", "query": "return type array", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 40, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/enum.thor\nLine 4: desc \"snack\"", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 551: # If you change the namespace:", "file": "lib/thor/base.rb", "symbol": "", "line": 551, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 29: it \"prints a tree of all commands\" do", "file": "spec/tree_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 51: desc \"animal\"", "file": "spec/register_spec.rb", "symbol": "", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nLine 31: # #=> Option foo with default value 2 and type numeric", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 611: # +normalize_command_name+ also converts names like +animal-prison+", "file": "lib/thor.rb", "symbol": "", "line": 611, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 165: end", "file": "spec/base_spec.rb", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 14: ].detect(&:available?)", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 205: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 205, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 158: create_file(\"doc/config/config.rb\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 9: options[:required] = false unless options.key?(:required)", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 1: # encoding: ISO-8859-7", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 267: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 267, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 8: #", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 68: else", "file": "lib/thor/base.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 420: expect(options[:param].type).to eq(:numeric)", "file": "spec/thor_spec.rb", "symbol": "", "line": 420, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 8: full_command= \"ruby #{script_path} #{command}\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 212: # apply \"http://gist.github.com/103208\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 212, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 73: ARGV.replace %w(my_script:animal horse)", "file": "spec/runner_spec.rb", "symbol": "", "line": 73, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 63: const_name = Thor::Util.camel_case(name.to_s).to_sym", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 40: def animal(type)", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 40, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/thor_spec.rb\nLine 52: _, options = MyChildScript.start(%w(animal horse --other=fish))", "file": "spec/thor_spec.rb", "symbol": "", "line": 52, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 50: expect(MyScript.commands.keys).to include(\"animal\")", "file": "spec/base_spec.rb", "symbol": "", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nLine 26: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche à comprendre comment sont générées les données de test pour les scripts de démonstration. Peux-tu me montrer la méthode qui permet de retourner un type d'entité spécifique sous forme de liste ?", "query": "return type array", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 40, "lang": "fr", "candidates": [{"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines animal", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche à comprendre comment sont générées les données de test pour les scripts de démonstration. Peux-tu me montrer la méthode qui permet de retourner un type d'entité spécifique sous forme de liste ?", "query": "return type array", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 40, "lang": "fr", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=98-121\nread WhinyGenerator for detail", "file": "spec/fixtures/group.thor", "symbol": "WhinyGenerator", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=225-248\nread current_is_value? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_value?", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=13-36\nread invoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=230-253\nread switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch?", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=304-327\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=142-165\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=31-54\nread except for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=294-317\nread arguments for detail", "file": "lib/thor/base.rb", "symbol": "arguments", "line": 294, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/html_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/html_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=38-61\nread part_two for detail", "file": "spec/register_spec.rb", "symbol": "part_two", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=90-113\nread snake_case for detail", "file": "lib/thor/util.rb", "symbol": "snake_case", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=156-179\nread check_at_least_one! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_at_least_one!", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=40-63\nread animal for detail", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 40, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=8-31\nread encoding for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "encoding", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "gemのビルドやリリース、テストを実行するためのコマンドラインインターフェースの実装を探しています。これらを実行するためのタスク定義はどこにありますか?", "query": "thor gem release", "file": "Thorfile", "symbol": "Default", "line": 6, "lang": "ja", "candidates": [{"text": "File: lib/thor/base.rb\nLine 189: # either specify `check_default_type: false` or call `allow_incompatible_default_type!`", "file": "lib/thor/base.rb", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 7: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 90: else", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 11: # class Default < Thor", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 11: # config:: give :verbose => false to not log the status.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 26: it \"returns the full destination with the destination_root\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 69: end", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 35: def initialize(base, destination, data, config = {})", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 57: class AmbiguousCommandError < Error", "file": "lib/thor/error.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 157: # :default - Default value for this argument. It cannot be required and have default values.", "file": "lib/thor.rb", "symbol": "", "line": 157, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 257: end.to raise_error(Thor::Error, \"The content of #{destination_root}/doc/README did not change\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 58: error_messages << check_for_spec_defs_with_single_quotes(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 55: expect(argument(:foo, {", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 256: # :default - Default value for this argument. It cannot be required and have default values.", "file": "lib/thor/base.rb", "symbol": "", "line": 256, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nLine 6: def self.readline(prompt, options = {})", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 8: # Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 225: # ==== Parameters", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 43: @content = capture(:stdout) { my_script.help(shell) }", "file": "spec/sort_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 200: # regular argument is encountered. All remaining arguments are passed to", "file": "lib/thor/base.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 181: expect(@content).to match(/# Default: 3/)", "file": "spec/base_spec.rb", "symbol": "", "line": 181, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nLine 100: class E < Thor::Group", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 243: end", "file": "spec/base_spec.rb", "symbol": "", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 14: puts \"expected #{SOME_STRING.encoding.name} to equal UTF-8\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 6: class Default < Thor", "file": "Thorfile", "symbol": "Default", "line": 6, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "gemのビルドやリリース、テストを実行するためのコマンドラインインターフェースの実装を探しています。これらを実行するためのタスク定義はどこにありますか?", "query": "thor gem release", "file": "Thorfile", "symbol": "Default", "line": 6, "lang": "ja", "candidates": [{"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\ndefines Default", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "gemのビルドやリリース、テストを実行するためのコマンドラインインターフェースの実装を探しています。これらを実行するためのタスク定義はどこにありますか?", "query": "thor gem release", "file": "Thorfile", "symbol": "Default", "line": 6, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "gemのビルドやリリース、テストを実行するためのコマンドラインインターフェースの実装を探しています。これらを実行するためのタスク定義はどこにありますか?", "query": "thor gem release", "file": "Thorfile", "symbol": "Default", "line": 6, "lang": "ja", "candidates": [{"text": "Next: read Thorfile lines=16-39\nread install for detail", "file": "Thorfile", "symbol": "install", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=91-114\nread required_options for detail", "file": "lib/thor/command.rb", "symbol": "required_options", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=671-694\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=78-101\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=39-62\nread required? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "required?", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=325-348\nread _shared_configuration for detail", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=296-319\nread file_collision_help for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/base_spec.rb lines=6-29\nread hello for detail", "file": "spec/base_spec.rb", "symbol": "hello", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=69-92\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=41-64\nread slice for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "slice", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=138-161\nread say_status for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "say_status", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=26-49\nread squirrel for detail", "file": "spec/register_spec.rb", "symbol": "squirrel", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=21-44\nread release for detail", "file": "Thorfile", "symbol": "release", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Thorfile lines=26-49\nread spec for detail", "file": "Thorfile", "symbol": "spec", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=174-197\nread list for detail", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=11-34\nread build for detail", "file": "Thorfile", "symbol": "build", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=363-386\nread check_unknown_options? for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options?", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=6-29\nread Default for detail", "file": "Thorfile", "symbol": "Default", "line": 6, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "Where is the CLI tool defined that uses Thor and has custom command mappings and hidden methods?", "query": "Thor command mapping", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lang": "en", "candidates": [{"text": "File: spec/fixtures/verbose.thor\nLine 5: require 'thor'", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 7: _, options = MyScript.start(args)", "file": "spec/thor_spec.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 28: expect(Thor::Util.find_by_namespace(\"scripts:my_script\")).to eq(Scripts::MyScript)", "file": "spec/util_spec.rb", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 1: class MyScript < Thor", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nLine 60: protected", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 17: def invoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 15: return if array.empty?", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 15: true", "file": "lib/thor/runner.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 45: def key?(key)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 9: true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 144: end.not_to raise_error", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 438: expect(content).to eq(<<-TABLE)", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 516: # class MyScript < Thor", "file": "lib/thor/base.rb", "symbol": "", "line": 516, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nLine 37: it \"escapes HTML content when not using the default colors\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 38: # class MyScript < Thor", "file": "lib/thor/shell.rb", "symbol": "", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 38: describe \"with_padding\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 26: def insert_into_file!(destination, *args, &block)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 45: error_messages << check_for_tab_characters(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 455: # ==== Parameters", "file": "lib/thor/base.rb", "symbol": "", "line": 455, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 245: end", "file": "lib/thor/group.rb", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 116: class_option :defined, :type => :boolean, :default => true", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 113: else", "file": "lib/thor.rb", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 50: expect(MyScript.commands.keys).to include(\"animal\")", "file": "spec/base_spec.rb", "symbol": "", "line": 50, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Where is the CLI tool defined that uses Thor and has custom command mappings and hidden methods?", "query": "Thor command mapping", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lang": "en", "candidates": [{"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines MyScript", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Where is the CLI tool defined that uses Thor and has custom command mappings and hidden methods?", "query": "Thor command mapping", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lang": "en", "candidates": [{"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=293-316\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=39-62\nread required? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "required?", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=27-50\nread dynamic_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=49-72\nread values_at for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "values_at", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=360-383\nread answer_match for detail", "file": "lib/thor/shell/basic.rb", "symbol": "answer_match", "line": 360, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=159-182\nread attr_writer for detail", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=326-349\nread unix? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "unix?", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=40-63\nread animal for detail", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=371-394\nread capture for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "capture", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=325-348\nread _shared_configuration for detail", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=5-28\nread parse for detail", "file": "spec/parser/option_spec.rb", "symbol": "parse", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=57-80\nread merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=138-161\nread subclass_files for detail", "file": "lib/thor/base.rb", "symbol": "subclass_files", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=64-87\nread relative_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "relative_matches", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=122-145\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=133-156\nread find_in_source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "find_in_source_paths", "line": 133, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "O método que faz uma pergunta ao usuário e retorna verdadeiro apenas se a resposta for uma negação (como 'n' ou 'no') está apresentando comportamento inconsistente.", "query": "ask return false", "file": "lib/thor/shell/basic.rb", "symbol": "no?", "line": 156, "lang": "pt", "candidates": [{"text": "File: spec/fixtures/help.thor\nLine 11: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 36: @config = {verbose: true}.merge(config)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 110: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 35: invoke :b, :one, [\"Jose\"]", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 51: # it gets a default shell from Thor::Base.shell.", "file": "lib/thor/shell.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 56: desc \"child1\", \"child1 description\"", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 14: else", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 40: # initialize the invoker are used to initialize the invoked.", "file": "lib/thor/invocation.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 77: \"fail\"", "file": "spec/command_spec.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 40: options[:third]", "file": "spec/fixtures/group.thor", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 60: invoke! \".\", \"commands\", recursive: false", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 152: describe \".register-ing a Thor subclass\" do", "file": "spec/register_spec.rb", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 20: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 9: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 103: def convert_encoded_instructions(filename)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 112: create Hash[bar: true], Hash[bar: false]", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 96: say_status :finished, :counting", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 22: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 70: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 25: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 4: class Thor", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 20: out = capture(:stdout) { shell.say \"Wow! Now we have colors! \", :green }", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 28: %w(config.rb README).each do |file|", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 156: def no?(statement, color = nil)", "file": "lib/thor/shell/basic.rb", "symbol": "no?", "line": 156, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "O método que faz uma pergunta ao usuário e retorna verdadeiro apenas se a resposta for uma negação (como 'n' ou 'no') está apresentando comportamento inconsistente.", "query": "ask return false", "file": "lib/thor/shell/basic.rb", "symbol": "no?", "line": 156, "lang": "pt", "candidates": [{"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "O método que faz uma pergunta ao usuário e retorna verdadeiro apenas se a resposta for uma negação (como 'n' ou 'no') está apresentando comportamento inconsistente.", "query": "ask return false", "file": "lib/thor/shell/basic.rb", "symbol": "no?", "line": 156, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "O método que faz uma pergunta ao usuário e retorna verdadeiro apenas se a resposta for uma negação (como 'n' ou 'no') está apresentando comportamento inconsistente.", "query": "ask return false", "file": "lib/thor/shell/basic.rb", "symbol": "no?", "line": 156, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/invocation.rb lines=102-125\nread invoke for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=167-190\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=99-122\nread aliases_for_usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "aliases_for_usage", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=438-461\nread disable_required_check? for detail", "file": "lib/thor.rb", "symbol": "disable_required_check?", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=62-85\nread InvocationError for detail", "file": "lib/thor/error.rb", "symbol": "InvocationError", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=168-191\nread dasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherize", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=547-570\nread shell for detail", "file": "spec/thor_spec.rb", "symbol": "shell", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=11-34\nread HashWithIndifferentAccess for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/parser/option_spec.rb lines=5-28\nread parse for detail", "file": "spec/parser/option_spec.rb", "symbol": "parse", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=18-41\nread subcommand1 for detail", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=89-112\nread default for detail", "file": "spec/register_spec.rb", "symbol": "default", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=49-72\nread invoke! for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke!", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=156-179\nread no? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "no?", "line": 156, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/create_link.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "我想知道 current_is_value? 方法在什么情况下会返回 true?特别是关于 @is_treated_as_value 和 parsing_options? 的逻辑。", "query": "current_is_value? logic", "file": "lib/thor/parser/options.rb", "symbol": "current_is_value?", "line": 225, "lang": "zh", "candidates": [{"text": "File: lib/thor/shell/lcs_diff.rb\nLine 44: rescue LoadError", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 225: def current_is_value?", "file": "lib/thor/parser/options.rb", "symbol": "current_is_value?", "line": 225, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/register_spec.rb\nLine 95: puts \"received arguments: \" + args.join(\",\")", "file": "spec/register_spec.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 67: # Ask something to the user and receives a response.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 7: end", "file": "spec/register_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 182: # config:: give :verbose => false to not log the status.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 11: expect(base.shell).to eq(shell)", "file": "spec/shell_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 10: def describe(name, opts)", "file": "spec/fixtures/command.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 23: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 14: it \"sets bold if specified\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 146: it \"works with glob characters in the path\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 47: if config[:symbolic]", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 42: it \"invokes help message if any of the shortcuts are given\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 10: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 188: end.not_to raise_error", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 107: expect(@action.send(:convert_encoded_instructions, \"%file_name%.txt\")).to eq(\"expected.txt\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 52: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 224: describe \".register-ing a Thor::Group subclass with class options\" do", "file": "spec/register_spec.rb", "symbol": "", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 138: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 99: it \"allows invocation to be configured with blocks\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "我想知道 current_is_value? 方法在什么情况下会返回 true?特别是关于 @is_treated_as_value 和 parsing_options? 的逻辑。", "query": "current_is_value? logic", "file": "lib/thor/parser/options.rb", "symbol": "current_is_value?", "line": 225, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "我想知道 current_is_value? 方法在什么情况下会返回 true?特别是关于 @is_treated_as_value 和 parsing_options? 的逻辑。", "query": "current_is_value? logic", "file": "lib/thor/parser/options.rb", "symbol": "current_is_value?", "line": 225, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=145-168\nread chmod for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "chmod", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/subcommand.thor lines=10-33\nread Parent for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=225-248\nread current_is_value? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_value?", "line": 225, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions.rb lines=325-348\nread _shared_configuration for detail", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=102-125\nread invoke for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=60-83\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=3-26\nread Subcommand for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Subcommand", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=133-156\nread find_in_source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "find_in_source_paths", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=68-91\nread absolute_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "absolute_matches", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=97-120\nread parse_hash for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_hash", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=139-162\nread parse_numeric for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_numeric", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=589-612\nread defined_in_gem? for detail", "file": "lib/thor.rb", "symbol": "defined_in_gem?", "line": 589, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=138-161\nread invoke_with_padding for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_with_padding", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "这个方法是怎么判断参数数量不匹配的错误的?", "query": "wrong number of arguments", "file": "lib/thor/command.rb", "symbol": "handle_argument_error?", "line": 114, "lang": "zh", "candidates": [{"text": "File: lib/thor/line_editor.rb\nLine 13: Thor::LineEditor::Basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 80: end", "file": "spec/command_spec.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 16: def install", "file": "Thorfile", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 8: def encoding", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 17: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 15: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 83: end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 93: cell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 37: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/A top level command/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 12: puts \"ok\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 203: [item]", "file": "lib/thor/group.rb", "symbol": "", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 114: def handle_argument_error?(instance, error, caller)", "file": "lib/thor/command.rb", "symbol": "handle_argument_error?", "line": 114, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/basic_spec.rb\nLine 120: expect(shell.yes?(\"Should I overwrite it?\")).to be true", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 14: it \"respects explicit non-UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 26: # ==== Options", "file": "lib/thor/group.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 212: FileUtils.touch(yaml_file)", "file": "lib/thor/runner.rb", "symbol": "", "line": 212, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 70: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 19: return if array.empty?", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 64: type: :array,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 1: require \"thor\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 11: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 100: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 1: require \"helper\"", "file": "spec/sort_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "这个方法是怎么判断参数数量不匹配的错误的?", "query": "wrong number of arguments", "file": "lib/thor/command.rb", "symbol": "handle_argument_error?", "line": 114, "lang": "zh", "candidates": [{"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "这个方法是怎么判断参数数量不匹配的错误的?", "query": "wrong number of arguments", "file": "lib/thor/command.rb", "symbol": "handle_argument_error?", "line": 114, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/actions.rb lines=48-71\nread add_runtime_options! for detail", "file": "lib/thor/actions.rb", "symbol": "add_runtime_options!", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=199-222\nread printable_commands for detail", "file": "lib/thor/group.rb", "symbol": "printable_commands", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=613-636\nread normalize_command_name for detail", "file": "lib/thor.rb", "symbol": "normalize_command_name", "line": 613, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=263-286\nread gsub_file! for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=113-136\nread indentation for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=191-214\nread open for detail", "file": "spec/fixtures/script.thor", "symbol": "open", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=93-116\nread method_missing for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "method_missing", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=114-137\nread handle_argument_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_argument_error?", "line": 114, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=446-469\nread remove_class_option for detail", "file": "lib/thor/base.rb", "symbol": "remove_class_option", "line": 446, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=31-54\nread except for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "determinar si es posible mostrar colores en la terminal", "query": "display colors capability", "file": "lib/thor/shell/basic.rb", "symbol": "can_display_colors?", "line": 269, "lang": "es", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nLine 158: def parse_string(name)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 622: def file", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 622, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 18: ExitStatus.start(ARGV)", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 189: describe \"#command_exists?\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 43: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).not_to match(/help/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 11: args.each do |item|", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 24: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 102: it \"shows forced status to the user if force is configured\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 5: def create(opts = {})", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 7: rescue LoadError", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 126: :prepend", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 12: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 269: def can_display_colors?", "file": "lib/thor/shell/basic.rb", "symbol": "can_display_colors?", "line": 269, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions_spec.rb\nLine 311: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 63: const_name = Thor::Util.camel_case(name.to_s).to_sym", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 405: end", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 405, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 124: # ==== Parameters", "file": "lib/thor.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 79: # end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 42: Dir.chdir(File.expand_path(\"../..\", __FILE__)) do", "file": "spec/quality_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 260: context \"with indentation\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 260, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 10: minimum_coverage(90)", "file": "spec/helper.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 38: end", "file": "lib/thor/error.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 59: result", "file": "spec/helper.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "determinar si es posible mostrar colores en la terminal", "query": "display colors capability", "file": "lib/thor/shell/basic.rb", "symbol": "can_display_colors?", "line": 269, "lang": "es", "candidates": [{"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "determinar si es posible mostrar colores en la terminal", "query": "display colors capability", "file": "lib/thor/shell/basic.rb", "symbol": "can_display_colors?", "line": 269, "lang": "es", "candidates": [{"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "determinar si es posible mostrar colores en la terminal", "query": "display colors capability", "file": "lib/thor/shell/basic.rb", "symbol": "can_display_colors?", "line": 269, "lang": "es", "candidates": [{"text": "Next: read lib/thor/shell/html.rb lines=54-77\nread set_color for detail", "file": "lib/thor/shell/html.rb", "symbol": "set_color", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=118-141\nread parse_array for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_array", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=69-92\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=482-505\nread print_exclusive_options for detail", "file": "lib/thor.rb", "symbol": "print_exclusive_options", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=210-233\nread Scripts for detail", "file": "spec/fixtures/script.thor", "symbol": "Scripts", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=311-334\nread MyOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyOptionScript", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=215-238\nread strict_args_position! for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=144-167\nread method_missing for detail", "file": "spec/fixtures/script.thor", "symbol": "method_missing", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=75-98\nread PluginWithDefaultcommandAndDeclaredArgument for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefaultcommandAndDeclaredArgument", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=449-472\nread command_exists? for detail", "file": "lib/thor.rb", "symbol": "command_exists?", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/parser/options_spec.rb lines=24-47\nread remaining for detail", "file": "spec/parser/options_spec.rb", "symbol": "remaining", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=11-34\nread HashWithIndifferentAccess for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=99-122\nread aliases_for_usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "aliases_for_usage", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=7-30\nread bugs for detail", "file": "spec/fixtures/help.thor", "symbol": "bugs", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=102-125\nread invoke for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=269-292\nread can_display_colors? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "can_display_colors?", "line": 269, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "Wenn eine unbekanne Argument-Option gefunden wird, muss eine UnknownArgumentError-Ausnahme ausgelöst werden. Die Logik muss sicherstellen, dass nur solche Argumente als unbekannt markiert werden, die mit einem oder zwei Minuszeichen beginnen ('-' oder '--') und keine weiteren Bindestriche mehr enthalten.", "query": "unknown argument validation", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lang": "de", "candidates": [{"text": "File: spec/sort_spec.rb\nLine 55: def a; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 6: attr_reader :stdout, :options", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 53: if enum.respond_to? :join", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 15: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 15: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 25: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 168: def check_unknown!", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/basic.rb\nLine 260: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 260, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 8: actual = File.binread(destination).to_s.split(\"\\n\")", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 7: # hash[:foo] #=> 'bar'", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 347: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 347, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 1: require_relative \"line_editor/basic\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 144: super", "file": "lib/thor/command.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 153: expect($stdout).to receive(:print).with(\"Running...\\n\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 262: # String", "file": "lib/thor/util.rb", "symbol": "", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 77: if arg.is_a?(Array)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 173: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 105: invoke \"b:one\" do |instance, klass, command|", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 37: describe \"#invoke!\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 13: end.to raise_error(ArgumentError, \"Argument name can't be nil.\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 124: def _invoke_from_option_#{name.to_s.gsub(/\\W/, '_')}", "file": "lib/thor/group.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 51: klass.desc description, Rake.application.last_description || non_namespaced_name", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Wenn eine unbekanne Argument-Option gefunden wird, muss eine UnknownArgumentError-Ausnahme ausgelöst werden. Die Logik muss sicherstellen, dass nur solche Argumente als unbekannt markiert werden, die mit einem oder zwei Minuszeichen beginnen ('-' oder '--') und keine weiteren Bindestriche mehr enthalten.", "query": "unknown argument validation", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lang": "de", "candidates": [{"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Wenn eine unbekanne Argument-Option gefunden wird, muss eine UnknownArgumentError-Ausnahme ausgelöst werden. Die Logik muss sicherstellen, dass nur solche Argumente als unbekannt markiert werden, die mit einem oder zwei Minuszeichen beginnen ('-' oder '--') und keine weiteren Bindestriche mehr enthalten.", "query": "unknown argument validation", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lang": "de", "candidates": [{"text": "Next: read spec/actions/create_link_spec.rb lines=31-54\nread invoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "invoke!", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=68-91\nread reverse_merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=38-61\nread source_paths_for_search for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths_for_search", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/exit_status.thor lines=9-32\nread error for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "error", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=264-287\nread prepare_message for detail", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=102-125\nread invoke for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=168-191\nread check_unknown! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/color.rb lines=6-29\nread Thor for detail", "file": "lib/thor/shell/color.rb", "symbol": "Thor", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=82-105\nread base_path for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "base_path", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=65-88\nread UnknownArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=216-239\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=215-238\nread strict_args_position! for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=174-197\nread list for detail", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=541-564\nread no_commands? for detail", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Como defino um argumento obrigatório `accessor` e uma opção de classe `force` nesta classe Thor?", "query": "thor argument class_options", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 211, "lang": "pt", "candidates": [{"text": "File: lib/thor/nested_context.rb\nLine 1: class Thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 89: def four", "file": "spec/fixtures/group.thor", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 13: end", "file": "Thorfile", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 14: it \"respects explicit non-UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 40: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 11: if SOME_STRING.encoding.name == \"ISO-8859-7\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 7: _, options = MyScript.start(args)", "file": "spec/thor_spec.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 38: # class MyScript < Thor", "file": "lib/thor/shell.rb", "symbol": "", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 211: class MyScript < MyChildScript", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 211, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/base.rb\nLine 516: # class MyScript < Thor", "file": "lib/thor/base.rb", "symbol": "", "line": 516, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 31: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 12: # include Thor::RakeCompat", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 516: runner({}, :revoke)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 516, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 272: # Load Thorfiles relevant to the given method. If you provide \"foo:bar\" it", "file": "lib/thor/runner.rb", "symbol": "", "line": 272, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 42: it \"doesn't show hidden commands\" do", "file": "spec/tree_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 50: expect(MyScript.commands.keys).to include(\"animal\")", "file": "spec/base_spec.rb", "symbol": "", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 5: module Shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 31: #", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 104: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 38: describe \"with_padding\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 6: class << self", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 28: expect(Thor::Util.find_by_namespace(\"scripts:my_script\")).to eq(Scripts::MyScript)", "file": "spec/util_spec.rb", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 12: puts \"ok\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Como defino um argumento obrigatório `accessor` e uma opção de classe `force` nesta classe Thor?", "query": "thor argument class_options", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 211, "lang": "pt", "candidates": [{"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\ndefines MyScript", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Como defino um argumento obrigatório `accessor` e uma opção de classe `force` nesta classe Thor?", "query": "thor argument class_options", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 211, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/actions/create_link.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=31-54\nread except for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=49-72\nread capture for detail", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=32-55\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=2-25\nread NestedContext for detail", "file": "lib/thor/nested_context.rb", "symbol": "NestedContext", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/util_spec.rb lines=4-27\nread clear_user_home! for detail", "file": "spec/util_spec.rb", "symbol": "clear_user_home!", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=168-191\nread dasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherize", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=5-28\nread LineEditor for detail", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=104-127\nread AtLeastOneRequiredArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "AtLeastOneRequiredArgumentError", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=91-114\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=263-286\nread gsub_file! for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=30-53\nread current_command_chain for detail", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=122-145\nread invoke_command for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_command", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=211-234\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 211, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "출력 패딩 조절하고 블록 실행 시 출력 억제하는 기능 찾아줘", "query": "output padding mute", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions/empty_directory.rb\nLine 1: class Thor", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 6: module Shell", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell_spec.rb\nLine 3: describe Thor::Shell do", "file": "spec/shell_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 54: do some fooing", "file": "spec/fixtures/script.thor", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 3: describe Thor::Shell::HTML do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 56: exists_and_identical?(\"doc\", \"docs\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 121: # Invoke the given command if the given args.", "file": "lib/thor/invocation.rb", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 4: module Shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 280: when 3", "file": "lib/thor/group.rb", "symbol": "", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 101: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 5: module Shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 19: # method responsible to gather source_paths from this current class,", "file": "lib/thor/actions.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 4: @depth = 0", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 36: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 121: base.send :include, Shell", "file": "lib/thor/base.rb", "symbol": "", "line": 121, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nLine 40: exempt = /\\.gitmodules|\\.marshal|fixtures|vendor|spec|ssl_certs|LICENSE|.devcontainer/", "file": "spec/quality_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 125: expect(invoke!).to match(%r{force doc/config\\.rb})", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 5: module Shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nLine 93: sample << \", [#{dasherize('no-' + human_name)}], [#{dasherize('skip-' + human_name)}]\"", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 85: def one", "file": "spec/fixtures/group.thor", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 112: expect(parse([:foo, :b, \"--bar\"], true).aliases).to eq([\"-b\", \"--bar\"])", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 108: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 13: p 2", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 197: ])", "file": "spec/util_spec.rb", "symbol": "", "line": 197, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "출력 패딩 조절하고 블록 실행 시 출력 억제하는 기능 찾아줘", "query": "output padding mute", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lang": "ko", "candidates": [{"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "출력 패딩 조절하고 블록 실행 시 출력 억제하는 기능 찾아줘", "query": "output padding mute", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lang": "ko", "candidates": [{"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "출력 패딩 조절하고 블록 실행 시 출력 억제하는 기능 찾아줘", "query": "output padding mute", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/actions/create_file.rb lines=45-68\nread identical? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "identical?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=20-43\nread unix? for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "unix?", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=192-215\nread thor_root for detail", "file": "lib/thor/util.rb", "symbol": "thor_root", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=96-119\nread name_with_dashes for detail", "file": "spec/fixtures/script.thor", "symbol": "name_with_dashes", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=58-81\nread namespaces_in_content for detail", "file": "lib/thor/util.rb", "symbol": "namespaces_in_content", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/group_spec.rb lines=206-229\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=14-37\nread print for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=103-126\nread files for detail", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=68-91\nread reverse_merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=54-77\nread initialize for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=129-152\nread method_options for detail", "file": "lib/thor.rb", "symbol": "method_options", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=153-176\nread _retrieve_class_and_command for detail", "file": "lib/thor/invocation.rb", "symbol": "_retrieve_class_and_command", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=99-122\nread destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "destination_root", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=76-99\nread call_myself_with_wrong_arity for detail", "file": "spec/fixtures/script.thor", "symbol": "call_myself_with_wrong_arity", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/verbose.thor lines=7-30\nread Test for detail", "file": "spec/fixtures/verbose.thor", "symbol": "Test", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor.rb lines=4-27\nread Thor for detail", "file": "lib/thor/line_editor.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "实现一个基本的命令行输入器,支持显示或隐藏密码输入。", "query": "basic line editor", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 13: Thor::LineEditor::Basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 162: end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 18: expect(parse(:foo, :numeric).type).to eq(:numeric)", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 108: expect(content).to match(/\\[--unused\\]/)", "file": "spec/group_spec.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 26: class Thor::Shell::TestShell < Thor::Shell::Basic; end", "file": "spec/shell_spec.rb", "symbol": "", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nLine 8: # Inherit from Thor::Shell::Basic and add set_color behavior. Check", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 216: def apply(path, config = {})", "file": "lib/thor/actions.rb", "symbol": "", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 3: class Basic", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/group.thor\nLine 10: from_superclass(:get_from_super, 13)", "file": "spec/fixtures/group.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 375: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 375, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 4: describe Thor::Shell::Basic do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nLine 30: Thor::Base.shell = Thor::Shell::Basic", "file": "spec/helper.rb", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nLine 57: desc \"four\", \"invoke four\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 163: expect(ClearCounter.class_options[:third]).to be nil", "file": "spec/base_spec.rb", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 201: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 14: ].detect(&:available?)", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 15: Thor::Shell::Basic", "file": "lib/thor/shell.rb", "symbol": "", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nLine 23: end", "file": "Thorfile", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 63: describe \"#run\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 28: \"#{filename} has spaces on the EOL on lines #{failing_lines.join(', ')}\" unless failing_lines.empty?", "file": "spec/quality_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 112: )", "file": "spec/register_spec.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 57: expect { parse }.to raise_error(Thor::RequiredArgumentMissingError, \"No value provided for required arguments 'string', 'numeric'\")", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "实现一个基本的命令行输入器,支持显示或隐藏密码输入。", "query": "basic line editor", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lang": "zh", "candidates": [{"text": "File: lib/thor/line_editor/basic.rb\ndefines Basic", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nsibling in lib/thor/line_editor", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "实现一个基本的命令行输入器,支持显示或隐藏密码输入。", "query": "basic line editor", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "实现一个基本的命令行输入器,支持显示或隐藏密码输入。", "query": "basic line editor", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/line_editor/basic.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "LineEditor", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=131-154\nread find_class_and_command_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_class_and_command_by_namespace", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=560-583\nread create_command for detail", "file": "lib/thor.rb", "symbol": "create_command", "line": 560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=53-76\nread merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=297-320\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 297, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=6-29\nread available? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/parser/options_spec.rb lines=16-39\nread parse for detail", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=77-100\nread to_hash for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "to_hash", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=567-590\nread namespace for detail", "file": "lib/thor/base.rb", "symbol": "namespace", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=689-712\nread build_option for detail", "file": "lib/thor/base.rb", "symbol": "build_option", "line": 689, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=9-32\nread terminal_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "terminal_width", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=59-82\nread foo for detail", "file": "spec/fixtures/script.thor", "symbol": "foo", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=15-38\nread readline for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "readline", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=253-276\nread thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=35-58\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=10-33\nread initialize for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "initialize", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=103-126\nread files for detail", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "¿Cómo se construye la cadena de saludo que incluye los argumentos si no están vacíos?", "query": "greeting args join", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lang": "es", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nLine 38: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 144: red = shell.set_color \"hi!\", :red", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 144, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 21: else", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 86: invoker.inside \"doc\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 28: super(base)", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 8: desc \"describe NAME\", \"say that someone is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 43: def four", "file": "spec/fixtures/group.thor", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 4: class Thor", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 126: :prepend", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 16: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 227: shell.base = MyCounter.new [1, 2]", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 223: def hi", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/thor_spec.rb\nLine 519: expect(MyScript.start(%w(hi arg))).to eq(MyScript.start(%w(hidden arg)))", "file": "spec/thor_spec.rb", "symbol": "", "line": 519, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 15: load_thorfile(\"encoding_other.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 56: invoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 95: ARGV.replace %w(unknown)", "file": "spec/runner_spec.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 82: # method is invoked for each name given.", "file": "lib/thor/group.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 30: it \"accepts hashes\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 87: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 4: class Thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 65: destination_path = File.join(destination_root, \"doc/config.rb\")", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "¿Cómo se construye la cadena de saludo que incluye los argumentos si no están vacíos?", "query": "greeting args join", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lang": "es", "candidates": [{"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nsibling in spec", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nsibling in spec", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nsibling in spec", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\ndefines hi", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nsibling in spec", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "¿Cómo se construye la cadena de saludo que incluye los argumentos si no están vacíos?", "query": "greeting args join", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lang": "es", "candidates": [{"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "¿Cómo se construye la cadena de saludo que incluye los argumentos si no están vacíos?", "query": "greeting args join", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lang": "es", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=368-391\nread merge for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge", "line": 368, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=68-91\nread absolute_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "absolute_matches", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=133-156\nread find_in_source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "find_in_source_paths", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=153-176\nread _retrieve_class_and_command for detail", "file": "lib/thor/invocation.rb", "symbol": "_retrieve_class_and_command", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=96-119\nread public_method? for detail", "file": "lib/thor/command.rb", "symbol": "public_method?", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=52-75\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=192-215\nread append_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "append_to_file", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=91-114\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=89-112\nread parse for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=89-112\nread action for detail", "file": "lib/thor/actions.rb", "symbol": "action", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=210-233\nread Scripts for detail", "file": "spec/fixtures/script.thor", "symbol": "Scripts", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/group_spec.rb lines=206-229\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 206, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=224-247\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=531-554\nread no_commands for detail", "file": "lib/thor/base.rb", "symbol": "no_commands", "line": 531, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=239-262\nread inject_into_module for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_module", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=6-29\nread Default for detail", "file": "Thorfile", "symbol": "Default", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=133-156\nread invoke_all for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_all", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=289-312\nread display_klasses for detail", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=501-524\nread remove_command for detail", "file": "lib/thor/base.rb", "symbol": "remove_command", "line": 501, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=203-226\nread thor_root_glob for detail", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/group_spec.rb lines=223-246\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "引数とスイッチを分割する静的メソッドを実装する", "query": "argument split", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lang": "ja", "candidates": [{"text": "File: spec/fixtures/exit_status.thor\nLine 9: def error", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 335: args, opts = Thor::Arguments.split(args)", "file": "lib/thor.rb", "symbol": "", "line": 335, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nLine 6: class Default < Thor", "file": "Thorfile", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 4: describe Thor::Arguments do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 7: rescue LoadError", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 11: if SOME_STRING.encoding.name == \"ISO-8859-7\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 2: class Options < Arguments #:nodoc:", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 33: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 3: def self.included(base) #:nodoc:", "file": "lib/thor/invocation.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 103: it \"returns true if the destination link exists and is identical\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 2: class Arguments #:nodoc:", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/basic_spec.rb\nLine 388: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 388, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 47: description = non_namespaced_name", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 262: it \"opens a file and executes its content in the instance binding\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 256: desc \"one_arg ARG\", \"takes one arg\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 101: base.shell.file_collision(destination) { render }", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 448: expect(@opt.remaining).to eq(%w(bar))", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 448, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 88: say_status :force, :yellow", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 21: nil", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 16: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 60: options.defaulted_value", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 111: thor_args = Thor::Arguments.new(self.class.arguments)", "file": "lib/thor/base.rb", "symbol": "", "line": 111, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "引数とスイッチを分割する静的メソッドを実装する", "query": "argument split", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lang": "ja", "candidates": [{"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "引数とスイッチを分割する静的メソッドを実装する", "query": "argument split", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lang": "ja", "candidates": [{"text": "Next: read spec/subcommand_spec.rb lines=50-73\nread foo for detail", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=117-140\nread with_optional for detail", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=121-144\nread AnotherScript for detail", "file": "spec/fixtures/script.thor", "symbol": "AnotherScript", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=83-106\nread windows? for detail", "file": "spec/helper.rb", "symbol": "windows?", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=133-156\nread potentially_ambiguous for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=129-152\nread uninstall for detail", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=154-177\nread ClassMethods for detail", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=52-75\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=40-63\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=91-114\nread required_options for detail", "file": "lib/thor/command.rb", "symbol": "required_options", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=311-334\nread MyOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyOptionScript", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=93-116\nread method_missing for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "method_missing", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=320-343\nread subcommands for detail", "file": "lib/thor.rb", "symbol": "subcommands", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=12-35\nread define for detail", "file": "spec/rake_compat_spec.rb", "symbol": "define", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=58-81\nread namespaces_in_content for detail", "file": "lib/thor/util.rb", "symbol": "namespaces_in_content", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=91-114\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=109-132\nread sans_backtrace for detail", "file": "lib/thor/command.rb", "symbol": "sans_backtrace", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=230-253\nread switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch?", "line": 230, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "我需要找到执行文件创建逻辑的核心方法,特别是处理目标目录创建和文件写入的部分。请展示如何实现这个带冲突检查的异步执行流程。", "query": "invoke create file", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lang": "zh", "candidates": [{"text": "File: spec/actions/empty_directory_spec.rb\nLine 115: private :private_file_name", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 6: class << self", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 51: map \"fu\" => \"zoo\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 39: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 4: desc \"snack\"", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 26: # Calculate the dynamic width of the terminal", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 50: begin", "file": "spec/helper.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 55: else", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 1: require \"helper\"", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 9: require_relative \"util\"", "file": "lib/thor/base.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 16: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 136: expect(Thor::LineEditor).to receive(:readline).with(\"Should I overwrite it? \", {add_to_history: false}).and_return(\"n\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 25: describe \"#say_status\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 80: # end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 19: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 114: names.each do |name|", "file": "lib/thor/group.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 60: def invoke!", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/rake_compat.rb\nLine 14: # RSpec::Core::RakeTask.new(:spec) do |t|", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 144: @content ||= File.read(destination)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 17: def fireworks", "file": "spec/register_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 10: #", "file": "lib/thor/shell.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 88: Here you go. So very long.", "file": "spec/fixtures/script.thor", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 245: # escape string in case path to ruby executable contain spaces.", "file": "lib/thor/util.rb", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "我需要找到执行文件创建逻辑的核心方法,特别是处理目标目录创建和文件写入的部分。请展示如何实现这个带冲突检查的异步执行流程。", "query": "invoke create file", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lang": "zh", "candidates": [{"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "我需要找到执行文件创建逻辑的核心方法,特别是处理目标目录创建和文件写入的部分。请展示如何实现这个带冲突检查的异步执行流程。", "query": "invoke create file", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "我需要找到执行文件创建逻辑的核心方法,特别是处理目标目录创建和文件写入的部分。请展示如何实现这个带冲突检查的异步执行流程。", "query": "invoke create file", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=296-319\nread file_collision_help for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/command.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=84-107\nread unshift for detail", "file": "lib/thor/parser/options.rb", "symbol": "unshift", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=173-196\nread check_unknown_options for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=556-579\nread dynamic_command_class for detail", "file": "lib/thor.rb", "symbol": "dynamic_command_class", "line": 556, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=60-83\nread invoke! for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=17-40\nread Util for detail", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=28-51\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=66-89\nread PluginWithDefaultMultipleArguments for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefaultMultipleArguments", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions_spec.rb lines=12-35\nread file for detail", "file": "spec/actions_spec.rb", "symbol": "file", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_other.thor lines=4-27\nread EncodingOther for detail", "file": "spec/fixtures/encoding_other.thor", "symbol": "EncodingOther", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=607-630\nread public_command for detail", "file": "lib/thor/base.rb", "symbol": "public_command", "line": 607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=103-126\nread files for detail", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I'm trying to figure out how to programmatically retrieve all the command-line tool definitions that are nested within a specific parent module. Can you show me the logic used to filter the global list of subclasses down to just those belonging to a certain namespace?", "query": "subclasses inside class", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lang": "en", "candidates": [{"text": "File: spec/quality_spec.rb\nLine 26: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 15: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 93: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 1: require_relative \"create_file\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 1: class Thor", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 18: end", "file": "Thorfile", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 231: else", "file": "spec/runner_spec.rb", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 15: class SubApp < Thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 381: before do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 381, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 2: def thor_command(command)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 28: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 74: def thor_classes_in(klass)", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/base_spec.rb\nLine 12: describe \"#initialize\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 14: puts \"expected #{SOME_STRING.encoding.name} to equal ISO-8859-7\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 1: # encoding: ISO-8859-7", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 3: describe Thor::Shell::Color do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 2: include Thor::Actions", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 165: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 94: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 95: \"more content\\n\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 290: Thor::Util.thor_classes_in(self).each do |klass|", "file": "lib/thor.rb", "symbol": "", "line": 290, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 69: def revoke!", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 127: describe \"#thor_classes_in\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 127, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nLine 5: it \"maps a given subcommand to another Thor subclass\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm trying to figure out how to programmatically retrieve all the command-line tool definitions that are nested within a specific parent module. Can you show me the logic used to filter the global list of subclasses down to just those belonging to a certain namespace?", "query": "subclasses inside class", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lang": "en", "candidates": [{"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "I'm trying to figure out how to programmatically retrieve all the command-line tool definitions that are nested within a specific parent module. Can you show me the logic used to filter the global list of subclasses down to just those belonging to a certain namespace?", "query": "subclasses inside class", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lang": "en", "candidates": [{"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm trying to figure out how to programmatically retrieve all the command-line tool definitions that are nested within a specific parent module. Can you show me the logic used to filter the global list of subclasses down to just those belonging to a certain namespace?", "query": "subclasses inside class", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lang": "en", "candidates": [{"text": "Next: read lib/thor/util.rb lines=17-40\nread Util for detail", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=40-63\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=43-66\nread ClassOptionGroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "ClassOptionGroupPlugin", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=47-70\nread hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "hidden", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=98-121\nread WhinyGenerator for detail", "file": "spec/fixtures/group.thor", "symbol": "WhinyGenerator", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=96-119\nread public_method? for detail", "file": "lib/thor/command.rb", "symbol": "public_method?", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=12-35\nread file for detail", "file": "spec/actions_spec.rb", "symbol": "file", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=173-196\nread check_unknown_options for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=314-337\nread uncomment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "uncomment_lines", "line": 314, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=567-590\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=223-246\nread strict_args_position? for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position?", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=24-47\nread find_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_by_namespace", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=65-88\nread UnknownArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=4-27\nread Sandbox for detail", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=74-97\nread thor_classes_in for detail", "file": "lib/thor/util.rb", "symbol": "thor_classes_in", "line": 74, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/group_spec.rb lines=223-246\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=91-114\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=85-108\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 85, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Necesito que el método ajuste el texto de uso de un comando para incluir los argumentos requeridos de la clase asociada. Si la clase no tiene argumentos definidos, debe devolver el texto de uso original sin cambios.", "query": "required usage arguments", "file": "lib/thor/command.rb", "symbol": "required_arguments_for", "line": 77, "lang": "es", "candidates": [{"text": "File: lib/thor/error.rb\nLine 1: class Thor", "file": "lib/thor/error.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 6: option \"--not_help\", :type => :boolean", "file": "spec/fixtures/help.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 33: options.fetch(:echo, true)", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 25: end.to raise_error(ArgumentError, \"An argument cannot be required and have default value.\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 12: @opt = Thor::Arguments.new(arguments)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 11: expect(base.shell).to eq(shell)", "file": "spec/shell_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 3: NUMERIC = /[-+]?(\\d*\\.\\d+|\\d+)/", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 12: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 57: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 85: invoke \"a:two\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 49: describe \"with no inputs\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 13: Test.start(ARGV)", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 48: # invoke :bar", "file": "lib/thor/invocation.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 38: it \"returns the relative destination to the original destination root\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 53: shell.ask \"Is this green on white?\", [:green, :on_white, :bold]", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 31: def invoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 45: private", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 55: Dir.chdir(File.expand_path(\"../\", __FILE__)) do", "file": "spec/quality_spec.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 168: def user_home", "file": "lib/thor/util.rb", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 38: it \"raises an error if the source does not exist\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 15: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 21: include Rake::DSL if defined?(Rake::DSL)", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 77: def required_arguments_for(klass, usage)", "file": "lib/thor/command.rb", "symbol": "required_arguments_for", "line": 77, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/arguments_spec.rb\nLine 23: expect(parse(\"name\", \"13\")[\"numeric\"]).to eq(13)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Necesito que el método ajuste el texto de uso de un comando para incluir los argumentos requeridos de la clase asociada. Si la clase no tiene argumentos definidos, debe devolver el texto de uso original sin cambios.", "query": "required usage arguments", "file": "lib/thor/command.rb", "symbol": "required_arguments_for", "line": 77, "lang": "es", "candidates": [{"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Necesito que el método ajuste el texto de uso de un comando para incluir los argumentos requeridos de la clase asociada. Si la clase no tiene argumentos definidos, debe devolver el texto de uso original sin cambios.", "query": "required usage arguments", "file": "lib/thor/command.rb", "symbol": "required_arguments_for", "line": 77, "lang": "es", "candidates": [{"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=313-336\nread show_diff for detail", "file": "lib/thor/shell/basic.rb", "symbol": "show_diff", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=112-135\nread private_file_name for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=11-34\nread HashWithIndifferentAccess for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=96-119\nread name_with_dashes for detail", "file": "spec/fixtures/script.thor", "symbol": "name_with_dashes", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=3-26\nread Terminal for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Terminal", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=80-103\nread Defined for detail", "file": "spec/fixtures/invoke.thor", "symbol": "Defined", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=102-125\nread invoke for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/application.rb lines=1-24\nread Application for detail", "file": "spec/fixtures/application.rb", "symbol": "Application", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=531-554\nread no_commands for detail", "file": "lib/thor/base.rb", "symbol": "no_commands", "line": 531, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=75-98\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=424-447\nread stop_on_unknown_option? for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=77-100\nread required_arguments_for for detail", "file": "lib/thor/command.rb", "symbol": "required_arguments_for", "line": 77, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "trouve la méthode qui utilise un tampon de sortie pour exécuter un bloc", "query": "with_output_buffer yield", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "capture", "line": 371, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/invoke.thor\nLine 31: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 40: exempt = /\\.gitmodules|\\.marshal|fixtures|vendor|spec|ssl_certs|LICENSE|.devcontainer/", "file": "spec/quality_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 30: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/├─ command1/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nLine 10: out = capture(:stdout) { shell.say \"Wow! Now we have colors!\", :green }", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nLine 18: capture(:stdout) { @action.invoke! }", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nLine 10: desc \"command2\", \"Another top level command\"", "file": "spec/tree_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 187: expect(capture(:stderr) do", "file": "spec/thor_spec.rb", "symbol": "", "line": 187, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 6: false", "file": "spec/fixtures/group.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 19: private", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 9: true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 43: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 3: failing_lines = []", "file": "spec/quality_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 108: else", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 136: allow(File).to receive(:open).with(root_file, \"w\")", "file": "spec/runner_spec.rb", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 199: yaml || {}", "file": "lib/thor/runner.rb", "symbol": "", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 371: def capture(*args)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "capture", "line": 371, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/rake_compat_spec.rb\nLine 64: expect(capture(:stdout) do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 64, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 47: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 94: invoke! \"doc/README\", before: \"__end__\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 18: def three", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 68: expect(shell.ask(\"What's your password?\", echo: false)).to eq(\"mysecretpass\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 147: capture(:stderr) { File.const_set(:ALT_SEPARATOR, false) }", "file": "spec/util_spec.rb", "symbol": "", "line": 147, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nLine 106: end", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 83: def convert_key(key)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "trouve la méthode qui utilise un tampon de sortie pour exécuter un bloc", "query": "with_output_buffer yield", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "capture", "line": 371, "lang": "fr", "candidates": [{"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "trouve la méthode qui utilise un tampon de sortie pour exécuter un bloc", "query": "with_output_buffer yield", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "capture", "line": 371, "lang": "fr", "candidates": [{"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "trouve la méthode qui utilise un tampon de sortie pour exécuter un bloc", "query": "with_output_buffer yield", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "capture", "line": 371, "lang": "fr", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=55-78\nread inherited for detail", "file": "spec/fixtures/group.thor", "symbol": "inherited", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=96-119\nread name_with_dashes for detail", "file": "spec/fixtures/script.thor", "symbol": "name_with_dashes", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=15-38\nread readline for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "readline", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=115-138\nread say_error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_error", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=371-394\nread capture for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "capture", "line": 371, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=235-258\nread command_conflict for detail", "file": "spec/fixtures/script.thor", "symbol": "command_conflict", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=154-177\nread ClassMethods for detail", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=20-43\nread RakeCompat for detail", "file": "lib/thor/rake_compat.rb", "symbol": "RakeCompat", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=122-145\nread baz for detail", "file": "spec/fixtures/group.thor", "symbol": "baz", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/tree_spec.rb lines=15-38\nread SubApp for detail", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=38-61\nread part_two for detail", "file": "spec/register_spec.rb", "symbol": "part_two", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=9-32\nread error for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "error", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=121-144\nread AnotherScript for detail", "file": "spec/fixtures/script.thor", "symbol": "AnotherScript", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=254-277\nread self_command for detail", "file": "lib/thor/group.rb", "symbol": "self_command", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=281-304\nread Pear for detail", "file": "spec/fixtures/script.thor", "symbol": "Pear", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=60-83\nread invoke! for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=71-94\nread default_banner for detail", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "How can I get the namespace string from a class constant?", "query": "namespace from class", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lang": "en", "candidates": [{"text": "File: spec/parser/options_spec.rb\nLine 546: it \"raises error when value isn't in Range enum\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 546, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 28: # ==== Parameters", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 26: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 107: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 10: it \"respects explicit UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 114: #", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 1: class Thor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 2: require \"thor/base\"", "file": "spec/encoding_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 63: const_name = Thor::Util.camel_case(name.to_s).to_sym", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 63, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 177: describe \"#thor_root_glob\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 287: run command, config.merge(with: Thor::Util.ruby_command)", "file": "lib/thor/actions.rb", "symbol": "", "line": 287, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nLine 5: def print_opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 17: module Util", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/subcommand.thor\nLine 8: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 3: module Thor::Util", "file": "spec/util_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 123: error.message =~ /^undefined method `#{name}' for #{Regexp.escape(instance.to_s)}$/", "file": "lib/thor/command.rb", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 132: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 152: content = capture(:stdout) { G.help(Thor::Base.shell.new) }", "file": "spec/group_spec.rb", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 14: elsif RbConfig::CONFIG[\"host_os\"] =~ /mswin|mingw/ && !ENV[\"ANSICON\"]", "file": "lib/thor/shell.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 192: stub_request(:get, \"http://example.com/file.txt\").to_return(body: body.dup)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 59: @source = File.expand_path(Dir[Util.escape_globs(base.find_in_source_paths(source.to_s))].first)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 39: return @diff_lcs_loaded unless @diff_lcs_loaded.nil?", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 23: klass, command = Thor::Util.find_class_and_command_by_namespace(meth)", "file": "lib/thor/runner.rb", "symbol": "", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 7: Thor::Util.load_thorfile(File.expand_path(\"./fixtures/#{filename}\", __dir__))", "file": "spec/encoding_spec.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "How can I get the namespace string from a class constant?", "query": "namespace from class", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lang": "en", "candidates": [{"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "How can I get the namespace string from a class constant?", "query": "namespace from class", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "How can I get the namespace string from a class constant?", "query": "namespace from class", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lang": "en", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=110-133\nread G for detail", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=4-27\nread Sandbox for detail", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=17-40\nread Util for detail", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/subcommand.thor lines=3-26\nread Subcommand for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Subcommand", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=21-44\nread output_diff_line for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "output_diff_line", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/options_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=215-238\nread strict_args_position! for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=258-281\nread command_help for detail", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=58-81\nread namespaces_in_content for detail", "file": "lib/thor/util.rb", "symbol": "namespaces_in_content", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=420-443\nread stop_on_unknown_option! for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option!", "line": 420, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=546-569\nread banner for detail", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=248-271\nread parsing_options? for detail", "file": "lib/thor/parser/options.rb", "symbol": "parsing_options?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=89-112\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=50-73\nread PluginInheritingFromClassOptionsGroup for detail", "file": "spec/register_spec.rb", "symbol": "PluginInheritingFromClassOptionsGroup", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=65-88\nread UnknownArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=89-112\nread action for detail", "file": "lib/thor/actions.rb", "symbol": "action", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=219-242\nread strict_args_position for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=24-47\nread find_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_by_namespace", "line": 24, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Dado un objeto instancia, verificar si el nombre actual del comando está disponible como un método público en dicha instancia.", "query": "public method check", "file": "lib/thor/command.rb", "symbol": "public_method?", "line": 96, "lang": "es", "candidates": [{"text": "File: lib/thor/error.rb\nLine 58: end", "file": "lib/thor/error.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 96: def public_method?(instance) #:nodoc:", "file": "lib/thor/command.rb", "symbol": "public_method?", "line": 96, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nLine 103: #", "file": "lib/thor/group.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 27: def dynamic_width", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 172: invoke! \"doc\"", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 65: end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 11: paras.map! do |unwrapped|", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 329: def class_option(name, options = {})", "file": "lib/thor/base.rb", "symbol": "", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 76: else", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 61: # end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 4: def runner(options = {})", "file": "spec/actions_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 9: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 27: print_border_separator", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 235: if match = no_or_skip?(arg) # rubocop:disable Lint/AssignmentInCondition", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 83: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 78: it \"copies and evaluates files within excluding/ directory when no exclude_pattern is present\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 17: get_input", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 264: files += thorfiles", "file": "lib/thor/runner.rb", "symbol": "", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 120: expect(File.read(file)).to eq(\"__start__\\nREADME\\nmore content\\n__end__\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 15: self[convert_key(key)] = value", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 53: def merge(other)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 238: invoke_with_a_bang! \"doc/README\", before: \"__end__\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 29: # Make the current command chain accessible with in a Thor-(sub)command", "file": "lib/thor/invocation.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 23: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Dado un objeto instancia, verificar si el nombre actual del comando está disponible como un método público en dicha instancia.", "query": "public method check", "file": "lib/thor/command.rb", "symbol": "public_method?", "line": 96, "lang": "es", "candidates": [{"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Dado un objeto instancia, verificar si el nombre actual del comando está disponible como un método público en dicha instancia.", "query": "public method check", "file": "lib/thor/command.rb", "symbol": "public_method?", "line": 96, "lang": "es", "candidates": [{"text": "Next: read lib/thor.rb lines=449-472\nread command_exists? for detail", "file": "lib/thor.rb", "symbol": "command_exists?", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=314-337\nread uncomment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "uncomment_lines", "line": 314, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=269-292\nread can_display_colors? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "can_display_colors?", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=96-119\nread public_method? for detail", "file": "lib/thor/command.rb", "symbol": "public_method?", "line": 96, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/rake_compat.rb lines=20-43\nread RakeCompat for detail", "file": "lib/thor/rake_compat.rb", "symbol": "RakeCompat", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=215-238\nread strict_args_position! for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=1-24\nread Thor for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=67-90\nread valid_type? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=797-820\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 797, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=213-236\nread globs_for for detail", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=102-125\nread invoke for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=101-124\nread ExclusiveArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "ExclusiveArgumentError", "line": 101, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Error al intentar insertar contenido dentro de una definición de clase mediante el uso de expresiones regulares, ya que la lógica parece buscar un patrón de línea que podría fallar si la sintaxis de la clase varía ligeramente.", "query": "inject into class", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lang": "es", "candidates": [{"text": "File: lib/thor/actions/inject_into_file.rb\nLine 48: #", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 17: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 384: abc #123 first three", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 384, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 35: describe \"#usage\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 7: # Injects the given content into a file, raising an error if the contents of", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 21: def check_for_extra_spaces(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 14: object = Struct.new(:namespace, :arguments).new(\"foo\", [])", "file": "spec/command_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 9: def error", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 274: remove_argument name", "file": "lib/thor/base.rb", "symbol": "", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 179: expect(capture(:stdout) { Thor::Runner.start }).to eq(\"command\\n\")", "file": "spec/runner_spec.rb", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 61: expect(error_messages.compact).to be_well_formed", "file": "spec/quality_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 12: {out: w, err: [:child, :out]})", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 22: @depth += 1", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 71: it \"returns the default value if none is provided\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 12: output_diff_line(diff)", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 72: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 20: class Error < StandardError", "file": "lib/thor/error.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 319: # ==== Options", "file": "lib/thor/base.rb", "symbol": "", "line": 319, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 216: def inject_into_class(path, klass, *args, &block)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_file.rb\nLine 1: require_relative \"empty_directory\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 566: describe \"#inject_into_class\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 566, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nLine 40: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub help)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 38: create string: nil, array: nil", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 114: switch = normalize_switch(switch)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Error al intentar insertar contenido dentro de una definición de clase mediante el uso de expresiones regulares, ya que la lógica parece buscar un patrón de línea que podría fallar si la sintaxis de la clase varía ligeramente.", "query": "inject into class", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lang": "es", "candidates": [{"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Error al intentar insertar contenido dentro de una definición de clase mediante el uso de expresiones regulares, ya que la lógica parece buscar un patrón de línea que podría fallar si la sintaxis de la clase varía ligeramente.", "query": "inject into class", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Error al intentar insertar contenido dentro de una definición de clase mediante el uso de expresiones regulares, ya que la lógica parece buscar un patrón de línea que podría fallar si la sintaxis de la clase varía ligeramente.", "query": "inject into class", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lang": "es", "candidates": [{"text": "Next: read lib/thor/base.rb lines=778-801\nread baseclass for detail", "file": "lib/thor/base.rb", "symbol": "baseclass", "line": 778, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=589-612\nread defined_in_gem? for detail", "file": "lib/thor.rb", "symbol": "defined_in_gem?", "line": 589, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=80-103\nread Defined for detail", "file": "spec/fixtures/invoke.thor", "symbol": "Defined", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=592-615\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=31-54\nread dynamic_width_stty for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_stty", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=128-151\nread send for detail", "file": "spec/fixtures/script.thor", "symbol": "send", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=73-96\nread ask for detail", "file": "lib/thor/shell/html.rb", "symbol": "ask", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=131-154\nread validate_default_type! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate_default_type!", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=144-167\nread check_exclusive! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=293-316\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=130-153\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=58-81\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=56-79\nread revoke! for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "revoke!", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=133-156\nread invoke_all for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_all", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=66-89\nread with_padding for detail", "file": "lib/thor/shell.rb", "symbol": "with_padding", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "encontra o método que intercepta a saída de um fluxo de dados para testes", "query": "capture stream stringio", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lang": "pt", "candidates": [{"text": "File: spec/actions/empty_directory_spec.rb\nLine 14: capture(:stdout) { @action.invoke! }", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nLine 221: end", "file": "spec/register_spec.rb", "symbol": "", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 11: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 149: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 12: expect(capture(:stdout) { Thor::Sandbox::EncodingWithUtf8.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nLine 13: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 46: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 154: fireworks_output = capture(:stdout) { BoringVendorProvidedCLI.start(%w(exciting fireworks)) }", "file": "spec/register_spec.rb", "symbol": "", "line": 154, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nLine 162: value = shift", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 9: capture(:stdout) { runner.send(*args, &block) }", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 2: # frozen_string_literal: true", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 16: #", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 32: capture(:stdout) { action.invoke! }", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 239: # config:: give :verbose => false to not log the status, :capture => true to hide to output. Specify :with", "file": "lib/thor/actions.rb", "symbol": "", "line": 239, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nLine 25: def pop", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 327: Terminal.unix?", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 61: # end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 69: it \"has default type :string\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 22: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 39: it \"uses padding for inside block outputs\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 49: def capture(stream)", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nLine 32: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 548: create limit: Thor::Option.new(\"limit\", type: :numeric, enum: enum)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 548, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "encontra o método que intercepta a saída de um fluxo de dados para testes", "query": "capture stream stringio", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lang": "pt", "candidates": [{"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nsibling in spec", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nsibling in spec", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nsibling in spec", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "encontra o método que intercepta a saída de um fluxo de dados para testes", "query": "capture stream stringio", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/helper.rb -> diff/lcs", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/helper.rb -> rdoc", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> thor", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> stringio", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> rspec", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> thor/group", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "encontra o método que intercepta a saída de um fluxo de dados para testes", "query": "capture stream stringio", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lang": "pt", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=68-91\nread ClearCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "ClearCounter", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=772-795\nread basename for detail", "file": "lib/thor/base.rb", "symbol": "basename", "line": 772, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=797-820\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 797, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=113-136\nread indentation for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=78-101\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=15-38\nread parse for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "parse", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=297-320\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 297, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=123-146\nread version for detail", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=123-146\nread say_status for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "say_status", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=59-82\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=62-85\nread source_root for detail", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=472-495\nread commands for detail", "file": "lib/thor/base.rb", "symbol": "commands", "line": 472, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=83-106\nread windows? for detail", "file": "spec/helper.rb", "symbol": "windows?", "line": 83, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=307-330\nread class_options for detail", "file": "lib/thor/base.rb", "symbol": "class_options", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=246-269\nread method_at_least_one for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=207-230\nread handle_argument_error for detail", "file": "lib/thor/group.rb", "symbol": "handle_argument_error", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=99-122\nread file_level_lookup for detail", "file": "lib/thor/actions/directory.rb", "symbol": "file_level_lookup", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=203-226\nread method_exclusive for detail", "file": "lib/thor.rb", "symbol": "method_exclusive", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=72-95\nread shift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "shift", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=72-95\nread initialize for detail", "file": "lib/thor/actions.rb", "symbol": "initialize", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=49-72\nread capture for detail", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "实现执行方法,返回选项和参数数组", "query": "exec options args", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 288, "lang": "zh", "candidates": [{"text": "File: lib/thor.rb\nLine 397: # stop_on_unknown_option! :exec", "file": "lib/thor.rb", "symbol": "", "line": 397, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nLine 108: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 24: $stdin.gets", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 153: invocations.delete(name)", "file": "lib/thor/group.rb", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 21: def output_diff_line(diff) #:nodoc:", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 159: end", "file": "spec/base_spec.rb", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 501: end", "file": "lib/thor.rb", "symbol": "", "line": 501, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 40: end", "file": "spec/tree_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 196: expect(@action.exists?).to be true", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 58: def initialize(base, source, destination = nil, config = {}, &block)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 63: end", "file": "lib/thor.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 30: object = Struct.new(:namespace, :arguments).new(\"foo\", [Thor::Argument.new(:bar, options)])", "file": "spec/command_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 11: puts \"ok\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 27: exec \"bundle exec rspec spec\"", "file": "Thorfile", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nLine 151: context \"when file exists and it causes a file clash\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 52: action Directory.new(self, source, destination || source, config, &block)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 288: def exec(*args)", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 288, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_file_spec.rb\nLine 80: it \"shows identical status\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 1: Bundler.require :development, :default", "file": "spec/fixtures/help.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 20: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 3: # Thor has a special class called Thor::Group. The main difference to Thor class", "file": "lib/thor/group.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 27: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 6: require \"readline\"", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 14: puts \"expected #{SOME_STRING.encoding.name} to equal ISO-8859-7\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "实现执行方法,返回选项和参数数组", "query": "exec options args", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 288, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nsibling in spec", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\ndefines exec", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nsibling in spec", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "实现执行方法,返回选项和参数数组", "query": "exec options args", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 288, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "实现执行方法,返回选项和参数数组", "query": "exec options args", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 288, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=7-30\nread RakeTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "RakeTask", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/basic_spec.rb lines=5-28\nread shell for detail", "file": "spec/shell/basic_spec.rb", "symbol": "shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=177-200\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 177, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=185-208\nread Barn for detail", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=39-62\nread three for detail", "file": "spec/fixtures/group.thor", "symbol": "three", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/directory_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=678-701\nread is_thor_reserved_word? for detail", "file": "lib/thor/base.rb", "symbol": "is_thor_reserved_word?", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=393-416\nread class_at_least_one for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=27-50\nread source_root for detail", "file": "lib/thor/actions.rb", "symbol": "source_root", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=55-78\nread inherited for detail", "file": "spec/fixtures/group.thor", "symbol": "inherited", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=64-87\nread reverse_merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=24-47\nread find_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_by_namespace", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=288-311\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 288, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/command.rb lines=129-152\nread HiddenCommand for detail", "file": "lib/thor/command.rb", "symbol": "HiddenCommand", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=105-128\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 105, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=137-160\nread DynamicCommand for detail", "file": "lib/thor/command.rb", "symbol": "DynamicCommand", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=4-27\nread Shell for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "¿Cómo se convierte un nombre de opción con guiones bajos en un formato con guiones simples o dobles según su longitud?", "query": "option dasherize convert", "file": "lib/thor/parser/option.rb", "symbol": "dasherize", "line": 168, "lang": "es", "candidates": [{"text": "File: spec/actions/create_file_spec.rb\nLine 45: create_file(\"doc/config.rb\", {}, pretend: true)", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 8: Bundler::GemHelper.install_tasks", "file": "Thorfile", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 27: let(:shell) { Thor::Shell::Basic.new }", "file": "spec/tree_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 24: $stdin.gets", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 50: expect(MyScript.commands.keys).to include(\"animal\")", "file": "spec/base_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 44: expect(Thor::DynamicCommand.new(\"command\").usage).to eq(\"command\")", "file": "spec/command_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 23: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 36: proc do |text|", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 23: subcommand \"sub\", SubApp", "file": "spec/tree_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 180: it \"shows invoked options on help\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 90: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 14: subcommand \"sub\", Subcommand", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 26: def insert_into_file!(destination, *args, &block)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 36: # 3) Parents source paths", "file": "lib/thor/actions.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 81: when :array", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 250: @parsing_options", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 250, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 27: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 168: def dasherize(str)", "file": "lib/thor/parser/option.rb", "symbol": "dasherize", "line": 168, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 5: class ColumnPrinter", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 2: module LineEditor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 27: require \"io/console\"", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 15: word = word.gsub(/\\n\\005/, \"\\n\").gsub(/\\005/, \"\\n\")", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 124: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 45: end", "file": "spec/base_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "¿Cómo se convierte un nombre de opción con guiones bajos en un formato con guiones simples o dobles según su longitud?", "query": "option dasherize convert", "file": "lib/thor/parser/option.rb", "symbol": "dasherize", "line": 168, "lang": "es", "candidates": [{"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "¿Cómo se convierte un nombre de opción con guiones bajos en un formato con guiones simples o dobles según su longitud?", "query": "option dasherize convert", "file": "lib/thor/parser/option.rb", "symbol": "dasherize", "line": 168, "lang": "es", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=185-208\nread Barn for detail", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=276-299\nread _invoke_for_class_method for detail", "file": "lib/thor/group.rb", "symbol": "_invoke_for_class_method", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/base_spec.rb lines=4-27\nread Amazing for detail", "file": "spec/base_spec.rb", "symbol": "Amazing", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=248-271\nread parsing_options? for detail", "file": "lib/thor/parser/options.rb", "symbol": "parsing_options?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=128-151\nread bar for detail", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=95-118\nread RequiredArgumentMissingError for detail", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=205-228\nread save_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "save_yaml", "line": 205, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=360-383\nread answer_match for detail", "file": "lib/thor/shell/basic.rb", "symbol": "answer_match", "line": 360, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=5-28\nread LineEditor for detail", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=6-29\nread show_diff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "show_diff", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=118-141\nread parse_array for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_array", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=446-469\nread remove_class_option for detail", "file": "lib/thor/base.rb", "symbol": "remove_class_option", "line": 446, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=168-191\nread dasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherize", "line": 168, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=77-100\nread to_hash for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "to_hash", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "취소 동작을 수행하는 제너레이터 인스턴스 생성 로직 찾아줘", "query": "WhinyGenerator revoke", "file": "spec/actions/directory_spec.rb", "symbol": "revoker", "line": 15, "lang": "ko", "candidates": [{"text": "File: lib/thor/shell/terminal.rb\nLine 11: ENV[\"THOR_COLUMNS\"].to_i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 64: def relative_matches", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 206: class PackageNameScript < Thor", "file": "spec/fixtures/script.thor", "symbol": "", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 8: before do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 809: def built_option_names(target, opt = {}, &block) # :nodoc:", "file": "lib/thor/base.rb", "symbol": "", "line": 809, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 51: puts \"#{name} was given\"", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 15: def revoker", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 103: def truncate(string)", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 71: klass = Class.new do", "file": "spec/command_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 284: it \"prints boolean with false default value\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 284, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 15: def revoker", "file": "spec/actions/directory_spec.rb", "symbol": "revoker", "line": 15, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/base_spec.rb\nLine 349: end", "file": "spec/base_spec.rb", "symbol": "", "line": 349, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 58: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 66: execute!", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 25: invoke \"defined:five\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 14: when true", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 16: rescue", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 72: # some rspec commands:", "file": "lib/thor/invocation.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 100: stdout.puts indentation + separator.join + \"+\"", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 45: error_messages << check_for_tab_characters(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 72: else", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 75: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 63: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "취소 동작을 수행하는 제너레이터 인스턴스 생성 로직 찾아줘", "query": "WhinyGenerator revoke", "file": "spec/actions/directory_spec.rb", "symbol": "revoker", "line": 15, "lang": "ko", "candidates": [{"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\ndefines revoker", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nsibling in spec/actions", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "취소 동작을 수행하는 제너레이터 인스턴스 생성 로직 찾아줘", "query": "WhinyGenerator revoke", "file": "spec/actions/directory_spec.rb", "symbol": "revoker", "line": 15, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> thor/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "취소 동작을 수행하는 제너레이터 인스턴스 생성 로직 찾아줘", "query": "WhinyGenerator revoke", "file": "spec/actions/directory_spec.rb", "symbol": "revoker", "line": 15, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/group.rb lines=228-251\nread dispatch for detail", "file": "lib/thor/group.rb", "symbol": "dispatch", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=23-46\nread revoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoke!", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=273-296\nread lookup_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "lookup_color", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=3-26\nread ExitStatus for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ExitStatus", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=3-26\nread Amazing for detail", "file": "spec/fixtures/command.thor", "symbol": "Amazing", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=39-62\nread B for detail", "file": "spec/fixtures/invoke.thor", "symbol": "B", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=145-168\nread _shared_configuration for detail", "file": "lib/thor/invocation.rb", "symbol": "_shared_configuration", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions_spec.rb lines=12-35\nread file for detail", "file": "spec/actions_spec.rb", "symbol": "file", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoker", "line": 15, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=797-820\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 797, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=194-217\nread check_default_type for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=80-103\nread ask for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=68-91\nread peek for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "peek", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=216-239\nread apply for detail", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/options_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=170-193\nread inside for detail", "file": "lib/thor/actions.rb", "symbol": "inside", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=64-87\nread reverse_merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoker", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/directory_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=191-214\nread open for detail", "file": "spec/fixtures/script.thor", "symbol": "open", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Je cherche la classe Thor qui gère la commande pour déclarer quelqu'un d'incroyable. Peux-tu me montrer comment elle applique la mise en majuscule si l'option forcée est activée ?", "query": "thor describe amazing", "file": "spec/fixtures/command.thor", "symbol": "Amazing", "line": 3, "lang": "fr", "candidates": [{"text": "File: lib/thor/actions/file_manipulation.rb\nLine 230: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 90: allow(ENV).to receive(:[]).with(\"NO_COLOR\").and_return(nil)", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 4: class Amazing", "file": "spec/base_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 90: @pile = args.dup", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 133: it \"uses color to say status\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 100: describe \"#convert_encoded_instructions\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 79: describe \"and is identical\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 452: # Defines the group. This is used when thor list is invoked so you can specify", "file": "lib/thor/base.rb", "symbol": "", "line": 452, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 56: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 28: super(convert_key(key))", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 44: def initialize(args = [], options = {}, config = {})", "file": "lib/thor/shell.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 103: if name.nil?", "file": "lib/thor/invocation.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 55: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 13: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 282: # command:: the command to be executed.", "file": "lib/thor/actions.rb", "symbol": "", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 142: def update(name)", "file": "lib/thor/runner.rb", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 3: class Amazing < Thor", "file": "spec/fixtures/command.thor", "symbol": "Amazing", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/thor_spec.rb\nLine 493: expect(capture(:stderr) { Amazing.start(%w(animal)) }.strip).to eq('Could not find command \"animal\" in \"amazing\" namespace.')", "file": "spec/thor_spec.rb", "symbol": "", "line": 493, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nLine 12: @lazy_default = options[:lazy_default]", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 34: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 5: desc :bugs, \"ALL THE BUGZ!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 124: # ==== Parameters", "file": "lib/thor.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 124: status = if behavior == :invoke", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 11: def a; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche la classe Thor qui gère la commande pour déclarer quelqu'un d'incroyable. Peux-tu me montrer comment elle applique la mise en majuscule si l'option forcée est activée ?", "query": "thor describe amazing", "file": "spec/fixtures/command.thor", "symbol": "Amazing", "line": 3, "lang": "fr", "candidates": [{"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\ndefines Amazing", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche la classe Thor qui gère la commande pour déclarer quelqu'un d'incroyable. Peux-tu me montrer comment elle applique la mise en majuscule si l'option forcée est activée ?", "query": "thor describe amazing", "file": "spec/fixtures/command.thor", "symbol": "Amazing", "line": 3, "lang": "fr", "candidates": [{"text": "Next: read spec/fixtures/command.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=101-124\nread map for detail", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=102-125\nread invoke for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=671-694\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=129-152\nread uninstall for detail", "file": "lib/thor/runner.rb", "symbol": "uninstall", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=246-269\nread method_at_least_one for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=3-26\nread Amazing for detail", "file": "spec/fixtures/command.thor", "symbol": "Amazing", "line": 3, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell.rb lines=66-89\nread with_padding for detail", "file": "lib/thor/shell.rb", "symbol": "with_padding", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=10-33\nread describe for detail", "file": "spec/fixtures/command.thor", "symbol": "describe", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=138-161\nread say_status for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "say_status", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=59-82\nread exit_on_failure? for detail", "file": "spec/subcommand_spec.rb", "symbol": "exit_on_failure?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=50-73\nread PathCompletion for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "PathCompletion", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=6-29\nread show_diff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "show_diff", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=253-276\nread thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=60-83\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=619-642\nread handle_argument_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_argument_error", "line": 619, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=91-114\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=291-314\nread gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file", "line": 291, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Investigate why the mechanism used for bulk-initializing command-line argument definitions is iterating through a hash to populate the configuration scope with parsed option objects.", "query": "bulk set options", "file": "lib/thor/base.rb", "symbol": "build_options", "line": 700, "lang": "en", "candidates": [{"text": "File: spec/shell/basic_spec.rb\nLine 97: it \"prints a message to the user with the available options, expects case-insensitive matching, and reasks the question after an incorrect response\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 144: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 201: def paint(color='red')", "file": "spec/fixtures/script.thor", "symbol": "", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 700: def build_options(options, scope) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "build_options", "line": 700, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/terminal.rb\nLine 15: result < 10 ? DEFAULT_TERMINAL_WIDTH : result", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 14: subcommand \"sub\", Subcommand", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 31: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/├─ command2/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 173: end", "file": "spec/register_spec.rb", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 131: build_options(options, @method_options) if options", "file": "lib/thor.rb", "symbol": "", "line": 131, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nLine 97: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 74: empty_directory(\"doc\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 81: describe \"#revoke!\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 10: desc \"command2\", \"Another top level command\"", "file": "spec/tree_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 6: print options[\"opt\"]", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 83: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 2: require \"thor/parser\"", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 2: require \"thor/actions\"", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 231: expect(klass.start(%w(jose))).to eq([\"Hi jose\"])", "file": "spec/group_spec.rb", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 40: def invoke!", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 87: @unknown = unknown", "file": "lib/thor/error.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 11: class_option \"opt\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 12: {out: w, err: [:child, :out]})", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 23: when \"-\"", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 223: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Investigate why the mechanism used for bulk-initializing command-line argument definitions is iterating through a hash to populate the configuration scope with parsed option objects.", "query": "bulk set options", "file": "lib/thor/base.rb", "symbol": "build_options", "line": 700, "lang": "en", "candidates": [{"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Investigate why the mechanism used for bulk-initializing command-line argument definitions is iterating through a hash to populate the configuration scope with parsed option objects.", "query": "bulk set options", "file": "lib/thor/base.rb", "symbol": "build_options", "line": 700, "lang": "en", "candidates": [{"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Investigate why the mechanism used for bulk-initializing command-line argument definitions is iterating through a hash to populate the configuration scope with parsed option objects.", "query": "bulk set options", "file": "lib/thor/base.rb", "symbol": "build_options", "line": 700, "lang": "en", "candidates": [{"text": "Next: read spec/register_spec.rb lines=22-45\nread SuperSecretPlugin for detail", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=478-501\nread disable_required_check for detail", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=20-43\nread Error for detail", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=36-59\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=449-472\nread command_exists? for detail", "file": "lib/thor.rb", "symbol": "command_exists?", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=78-101\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=700-723\nread build_options for detail", "file": "lib/thor/base.rb", "symbol": "build_options", "line": 700, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/command_spec.rb lines=4-27\nread command for detail", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=11-34\nread HashWithIndifferentAccess for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=293-316\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=234-257\nread switch_option for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch_option", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/options_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=189-212\nread assign_result! for detail", "file": "lib/thor/parser/options.rb", "symbol": "assign_result!", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=6-29\nread Default for detail", "file": "Thorfile", "symbol": "Default", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=133-156\nread find_in_source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "find_in_source_paths", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "这个方法是怎么获取当前终端宽度的?它是优先读取环境变量还是动态计算?", "query": "terminal width environment", "file": "lib/thor/shell/terminal.rb", "symbol": "terminal_width", "line": 9, "lang": "zh", "candidates": [{"text": "File: lib/thor/parser/option.rb\nLine 126: def validate!", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 1: class Thor", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 39: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 29: @default.map(&:dump).join(\" \")", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 68: p 1", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 201: it \"returns true if the destination file exists and is identical\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 24: SHELL_DELEGATED_METHODS = [:ask, :error, :set_color, :yes?, :no?, :say, :say_error, :say_status, :print_in_columns, :print_table, :print_wrapped, :file_collision, :terminal_width]", "file": "lib/thor/shell.rb", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nLine 3: class ExitStatus < Thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 8: puts \"Invoked!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 9: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 111: end", "file": "spec/util_spec.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 576: # and invoke the command. This method is used when the arguments must be parsed", "file": "lib/thor/base.rb", "symbol": "", "line": 576, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 9: def terminal_width", "file": "lib/thor/shell/terminal.rb", "symbol": "terminal_width", "line": 9, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 14: @truncate = options[:truncate] == true ? Terminal.terminal_width : options[:truncate]", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 565: expect(Thor::Shell::Terminal).to receive(:terminal_width).and_return(80)", "file": "spec/thor_spec.rb", "symbol": "", "line": 565, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 127: else", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 13: # ==== Examples", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 20: private", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 8: width = Terminal.terminal_width - @indent", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nLine 4: class Thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 19: if ((((index + 1) % (Terminal.terminal_width / colwidth))).zero? && !index.zero?) || index + 1 == array.length", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nLine 34: # #=> Option foo without default value and type numeric", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 179: end", "file": "lib/thor/base.rb", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 312: desc \"exclusive\", \"\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 312, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "这个方法是怎么获取当前终端宽度的?它是优先读取环境变量还是动态计算?", "query": "terminal width environment", "file": "lib/thor/shell/terminal.rb", "symbol": "terminal_width", "line": 9, "lang": "zh", "candidates": [{"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "这个方法是怎么获取当前终端宽度的?它是优先读取环境变量还是动态计算?", "query": "terminal width environment", "file": "lib/thor/shell/terminal.rb", "symbol": "terminal_width", "line": 9, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=20-43\nread unix? for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "unix?", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=73-96\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=157-180\nread MyChildScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyChildScript", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=1-24\nread Thor for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=25-48\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=60-83\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=31-54\nread GroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "GroupPlugin", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=62-85\nread source_root for detail", "file": "spec/helper.rb", "symbol": "source_root", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/options_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/terminal.rb lines=9-32\nread terminal_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "terminal_width", "line": 9, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/tree_spec.rb lines=18-41\nread subcommand1 for detail", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=122-145\nread invoke_command for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_command", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=4-27\nread Base for detail", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=67-90\nread pretend? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "pretend?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=3-26\nread Terminal for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Terminal", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/terminal.rb lines=27-50\nread dynamic_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=248-271\nread parsing_options? for detail", "file": "lib/thor/parser/options.rb", "symbol": "parsing_options?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=329-352\nread subcommand for detail", "file": "lib/thor.rb", "symbol": "subcommand", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=253-276\nread thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles", "line": 253, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "필수 옵션 중 최소 하나를 갖는 메서드의 옵션 이름 배열 반환", "query": "required option names", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lang": "ko", "candidates": [{"text": "File: lib/thor.rb\nLine 469: def method_at_least_one_option_names #:nodoc:", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/terminal.rb\nLine 16: rescue", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 219: path = find_in_source_paths(path) unless is_uri", "file": "lib/thor/actions.rb", "symbol": "", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 178: create_file(\"doc/config.rb\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 43: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 6: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 268: # Returns a string that has had any HTML characters escaped.", "file": "lib/thor/util.rb", "symbol": "", "line": 268, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 32: CYAN = \"\\e[36m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 38: end", "file": "lib/thor/command.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 21: class_option :fourth, :type => :numeric, :desc => \"The fourth argument\"", "file": "spec/fixtures/group.thor", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 194: def thor_yaml", "file": "lib/thor/runner.rb", "symbol": "", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 11: self.options = other.options.dup if other.options", "file": "lib/thor/command.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 1: require \"thor\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 220: else", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 220, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 124: end", "file": "spec/util_spec.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 16: #", "file": "lib/thor/error.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 175: initialize_thorfiles", "file": "lib/thor/runner.rb", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 17: argument :second, :type => :numeric, :default => 2", "file": "spec/fixtures/group.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 81: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 70: def method_at_least_one_option_names #:nodoc:", "file": "lib/thor/command.rb", "symbol": "", "line": 70, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 95: \"more content\\n\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 12: # include Thor::RakeCompat", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 22: it \"a command that raises a Thor::Error exits with a status of 1\" do", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 234: expect(parse(%w(--bar --verbose))).to eq({})", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 234, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "필수 옵션 중 최소 하나를 갖는 메서드의 옵션 이름 배열 반환", "query": "required option names", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lang": "ko", "candidates": [{"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "필수 옵션 중 최소 하나를 갖는 메서드의 옵션 이름 배열 반환", "query": "required option names", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "필수 옵션 중 최소 하나를 갖는 메서드의 옵션 이름 배열 반환", "query": "required option names", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/parser/argument.rb lines=62-85\nread validate! for detail", "file": "lib/thor/parser/argument.rb", "symbol": "validate!", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=103-126\nread convert_encoded_instructions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "convert_encoded_instructions", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=15-38\nread parse for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "parse", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=127-150\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=678-701\nread is_thor_reserved_word? for detail", "file": "lib/thor/base.rb", "symbol": "is_thor_reserved_word?", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=54-77\nread initialize for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=139-162\nread parse_numeric for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_numeric", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=177-200\nread check_unknown_options? for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/directory_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/version.rb lines=1-24\nread Thor for detail", "file": "lib/thor/version.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=110-133\nread invoke_from_option for detail", "file": "lib/thor/group.rb", "symbol": "invoke_from_option", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=42-65\nread completion_options for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_options", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=320-343\nread exclusive for detail", "file": "spec/fixtures/script.thor", "symbol": "exclusive", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "find where the action is executed while capturing its standard output", "query": "capture stdout invoke", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lang": "en", "candidates": [{"text": "File: spec/util_spec.rb\nLine 199: end", "file": "spec/util_spec.rb", "symbol": "", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 143: PluginWithDefaultcommandAndDeclaredArgument,", "file": "spec/register_spec.rb", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 56: required: false,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 244: def normalize_switch(arg)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 90: describe \"#identical?\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 4: def shell", "file": "spec/sort_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 19: if ((((index + 1) % (Terminal.terminal_width / colwidth))).zero? && !index.zero?) || index + 1 == array.length", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 46: c.syntax = :expect", "file": "spec/helper.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 34: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 43: FileUtils.mkdir_p(File.dirname(destination))", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 21: def release", "file": "Thorfile", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 164: validate_enum_value!(name, value, \"Expected '%s' to be one of %s; got %s\")", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 482: def print_exclusive_options(shell, command = nil) # :nodoc:", "file": "lib/thor.rb", "symbol": "", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 318: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 318, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 16: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 4: desc \"one\", \"invoke one\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 72: # It also stores the given and relative destination. Let's suppose our", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 13: def invoke!", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/util_spec.rb\nLine 38: expect(Thor::Util.namespace_from_thor_class(\"FooBar::BarBaz::BazBoom\")).to eq(\"foo_bar:bar_baz:baz_boom\")", "file": "spec/util_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 176: it \"shows usage with banner content\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 176, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 8: # Inherit from Thor::Shell::Basic and add set_color behavior. Check", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 16: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 16: @name = name.to_s", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find where the action is executed while capturing its standard output", "query": "capture stdout invoke", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lang": "en", "candidates": [{"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nsibling in spec/actions", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\ndefines invoke!", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "find where the action is executed while capturing its standard output", "query": "capture stdout invoke", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find where the action is executed while capturing its standard output", "query": "capture stdout invoke", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lang": "en", "candidates": [{"text": "Next: read lib/thor/parser/options.rb lines=89-112\nread parse for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=25-48\nread silence! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "silence!", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=27-50\nread delete for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "delete", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=21-44\nread base for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "base", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=170-193\nread inside for detail", "file": "lib/thor/actions.rb", "symbol": "inside", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=6-29\nread WrappedPrinter for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "WrappedPrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=112-135\nread private_file_name for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=75-98\nread execute! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "execute!", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=93-116\nread method_missing for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "method_missing", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=172-195\nread validate_enum_value! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "validate_enum_value!", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=13-36\nread invoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=793-816\nread dispatch for detail", "file": "lib/thor/base.rb", "symbol": "dispatch", "line": 793, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=750-773\nread from_superclass for detail", "file": "lib/thor/base.rb", "symbol": "from_superclass", "line": 750, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=17-40\nread revoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "revoke!", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "encoding", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=9-32\nread empty_directory for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "empty_directory", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=1-24\nread LCSDiff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "LCSDiff", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=95-118\nread print_status for detail", "file": "spec/fixtures/invoke.thor", "symbol": "print_status", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Bug: O erro de número de argumentos não está sendo capturado corretamente quando o comando tenta executar um método privado, impedindo o tratamento customizado de erros de aridade.", "query": "handle_no_command_error arity", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lang": "pt", "candidates": [{"text": "File: spec/helper.rb\nLine 20: require \"diff/lcs\" # You need diff/lcs installed to run specs (but not to run Thor).", "file": "spec/helper.rb", "symbol": "", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 427: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 427, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 195: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 320: ensure", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 554: create run: Thor::Option.new(\"run\", type: :numeric, repeatable: true)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 554, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nLine 29: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 21: def run(instance, args = [])", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 7: def print(message)", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 32: def echo?", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 60: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 51: Thor::DynamicCommand.new(\"to_s\").run(dub)", "file": "spec/command_spec.rb", "symbol": "", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nLine 12: puts opts[\"forcefully\"] ? ret.upcase : ret", "file": "spec/fixtures/command.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 52: # If a default value is specified it will be presented to the user", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 25: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 307: m - merge, run merge tool", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 307, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 21: it \"returns the shell in use\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 127: command.run(self, *args)", "file": "lib/thor/invocation.rb", "symbol": "", "line": 127, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 89: next if dirname == given_destination", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 25: describe \"#say_status\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 41: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 160: def dasherized?", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 245: # run('ln -s ~/edge rails')", "file": "lib/thor/actions.rb", "symbol": "", "line": 245, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 52: def enum_to_s", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 63: \"%-s\".dup", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Bug: O erro de número de argumentos não está sendo capturado corretamente quando o comando tenta executar um método privado, impedindo o tratamento customizado de erros de aridade.", "query": "handle_no_command_error arity", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lang": "pt", "candidates": [{"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Bug: O erro de número de argumentos não está sendo capturado corretamente quando o comando tenta executar um método privado, impedindo o tratamento customizado de erros de aridade.", "query": "handle_no_command_error arity", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/actions/file_manipulation.rb lines=192-215\nread append_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "append_to_file", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=21-44\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 21, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/thor_spec.rb lines=177-200\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=199-222\nread printable_commands for detail", "file": "lib/thor/group.rb", "symbol": "printable_commands", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=170-193\nread prepend_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "prepend_to_file", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=72-95\nread handle_no_command_error for detail", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=460-483\nread method_exclusive_option_names for detail", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=291-314\nread gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=263-286\nread create_command for detail", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=167-190\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=105-128\nread wrong_arity for detail", "file": "spec/fixtures/group.thor", "symbol": "wrong_arity", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=111-134\nread group for detail", "file": "spec/fixtures/group.thor", "symbol": "group", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=68-91\nread ClearCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "ClearCounter", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/command.thor lines=3-26\nread Amazing for detail", "file": "spec/fixtures/command.thor", "symbol": "Amazing", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=15-38\nread SubApp for detail", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=147-170\nread replacement_present? for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Das Programm bricht bei Fehlern im Testlauf nicht automatisch ab, da der Status für den Abbruch bei Fehlern auf falsch gesetzt ist.", "query": "exit on failure", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lang": "de", "candidates": [{"text": "File: lib/thor/parser/option.rb\nLine 8: @check_default_type = options[:check_default_type]", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 70: shell.padding -= 1", "file": "lib/thor/shell.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 63: required: false,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 178: end", "file": "spec/register_spec.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 112: /(#{flag})(.*)(#{Regexp.escape(replacement)})/m", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 132: public_command :foo, :baz", "file": "spec/fixtures/group.thor", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 54: end", "file": "spec/register_spec.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 67: it \"provides usage information\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 14: #", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 25: # Set the terminal's foreground HTML color to magenta.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 30: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 74: # :cyan", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 3: class Subcommand < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 84: # returns true, force it, otherwise skip.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 125: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 104: class AtLeastOneRequiredArgumentError < InvocationError", "file": "lib/thor/error.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 774: expect(klass.start(%w(hi jose --loud))).to eq(\"Hi JOSE\")", "file": "spec/thor_spec.rb", "symbol": "", "line": 774, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 11: if SOME_STRING.encoding.name == \"ISO-8859-7\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 87: This is a really really really long description.", "file": "spec/fixtures/script.thor", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 3: describe Thor::Shell::HTML do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 130: \"say\",", "file": "spec/register_spec.rb", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 89: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Das Programm bricht bei Fehlern im Testlauf nicht automatisch ab, da der Status für den Abbruch bei Fehlern auf falsch gesetzt ist.", "query": "exit on failure", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lang": "de", "candidates": [{"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\ndefines exit_on_failure?", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Das Programm bricht bei Fehlern im Testlauf nicht automatisch ab, da der Status für den Abbruch bei Fehlern auf falsch gesetzt ist.", "query": "exit on failure", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lang": "de", "candidates": [{"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=101-124\nread map for detail", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=85-108\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=671-694\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=21-44\nread release for detail", "file": "Thorfile", "symbol": "release", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=21-44\nread revoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=219-242\nread strict_args_position for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/command.thor lines=3-26\nread Amazing for detail", "file": "spec/fixtures/command.thor", "symbol": "Amazing", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=93-116\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=216-239\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/group_spec.rb lines=223-246\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=90-113\nread snake_case for detail", "file": "lib/thor/util.rb", "symbol": "snake_case", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=203-226\nread method_exclusive for detail", "file": "lib/thor.rb", "symbol": "method_exclusive", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=1-24\nread Enum for detail", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=205-228\nread save_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "save_yaml", "line": 205, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=104-127\nread can_display_colors? for detail", "file": "lib/thor/shell/color.rb", "symbol": "can_display_colors?", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=307-330\nread class_options for detail", "file": "lib/thor/base.rb", "symbol": "class_options", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=172-195\nread get_options_from_invocations for detail", "file": "lib/thor/group.rb", "symbol": "get_options_from_invocations", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=179-202\nread boom for detail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=10-33\nread describe for detail", "file": "spec/fixtures/command.thor", "symbol": "describe", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/base_spec.rb lines=6-29\nread hello for detail", "file": "spec/base_spec.rb", "symbol": "hello", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=399-422\nread set_eoutvar for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "set_eoutvar", "line": 399, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "查找如何判断一个选项是否显示默认值,特别是当默认值为布尔类型时直接返回 true,否则调用父类逻辑的方法。", "query": "show default value", "file": "lib/thor/parser/option.rb", "symbol": "show_default?", "line": 107, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/exit_status.thor\nLine 14: def ok", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 16: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 1: require \"thor\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 72: else", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 21: end", "file": "spec/command_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 3: $VERBOSE = true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 30: instance.__send__(:method_missing, name.to_sym, *args)", "file": "lib/thor/command.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 8: full_command= \"ruby #{script_path} #{command}\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 28: def add_to_history?", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 11: if SOME_STRING.encoding.name == \"ISO-8859-7\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 204: files = Dir[\"#{escape_globs(thor_root)}/*\"]", "file": "lib/thor/util.rb", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 36: `tput cols 2>/dev/null`.to_i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 61: $2", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 271: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 1: # frozen_string_literal: true", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 29: sub_help = capture(:stdout) { TestSubcommands::Parent.start(%w(sub help print_opt)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 203: def method_exclusive(*args, &block)", "file": "lib/thor.rb", "symbol": "", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 649: action :uncomment_lines, \"doc/COMMENTER\", \"orange\"", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 649, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 22: it \"a command that raises a Thor::Error exits with a status of 1\" do", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 20: private", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 36: `tput cols 2>/dev/null`.to_i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 37: super(base, destination, config)", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 107: def show_default?", "file": "lib/thor/parser/option.rb", "symbol": "show_default?", "line": 107, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/runner_spec.rb\nLine 100: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "查找如何判断一个选项是否显示默认值,特别是当默认值为布尔类型时直接返回 true,否则调用父类逻辑的方法。", "query": "show default value", "file": "lib/thor/parser/option.rb", "symbol": "show_default?", "line": 107, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "查找如何判断一个选项是否显示默认值,特别是当默认值为布尔类型时直接返回 true,否则调用父类逻辑的方法。", "query": "show default value", "file": "lib/thor/parser/option.rb", "symbol": "show_default?", "line": 107, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=47-70\nread hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "hidden", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=122-145\nread invoke_command for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_command", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=57-80\nread merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=142-165\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=107-130\nread show_default? for detail", "file": "lib/thor/parser/option.rb", "symbol": "show_default?", "line": 107, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions.rb lines=329-352\nread _cleanup_options_and_set for detail", "file": "lib/thor/actions.rb", "symbol": "_cleanup_options_and_set", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=99-122\nread file_level_lookup for detail", "file": "lib/thor/actions/directory.rb", "symbol": "file_level_lookup", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=228-251\nread dispatch for detail", "file": "lib/thor/group.rb", "symbol": "dispatch", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=350-373\nread remove_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "remove_file", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=307-330\nread class_options for detail", "file": "lib/thor/base.rb", "symbol": "class_options", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=678-701\nread is_thor_reserved_word? for detail", "file": "lib/thor/base.rb", "symbol": "is_thor_reserved_word?", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=21-44\nread revoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=296-319\nread file_collision_help for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=56-79\nread exists? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=1-24\nread Enum for detail", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Show me how to define options that cannot be used together, so Thor raises an error if they are both provided on the command line.", "query": "class exclusive options", "file": "lib/thor/base.rb", "symbol": "class_exclusive", "line": 358, "lang": "en", "candidates": [{"text": "File: spec/shell/basic_spec.rb\nLine 105: expect(Thor::LineEditor).to receive(:readline).with(\"What's your favorite Neopolitan flavor? (vanilla) \", {default: \"vanilla\"}).and_return(\"\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 116: VALID_TYPES.each do |type|", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 8: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 279: files = thor_yaml.select do |_, v|", "file": "lib/thor/runner.rb", "symbol": "", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 72: @stopped_parsing_after_extra_index ||= @extra.size", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 87: describe \"#class_exclusive\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 87, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nLine 26: #", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 358: def class_exclusive(*args, &block)", "file": "lib/thor/base.rb", "symbol": "class_exclusive", "line": 358, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/rake_compat_spec.rb\nLine 2: require \"thor/rake_compat\"", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 114: \" \" * @indent", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 5: module Shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 464: # Returns this class at least one of required options array set.", "file": "lib/thor.rb", "symbol": "", "line": 464, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 23: let(:source) { tempfile.path }", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 72: # TODO: Implement #ask for Thor::Shell::HTML", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 242: stub_request(:get, @file)", "file": "spec/actions_spec.rb", "symbol": "", "line": 242, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 289: class_exclusive do", "file": "spec/fixtures/script.thor", "symbol": "", "line": 289, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 231: puts \"moo\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 266: it \"does not negate the aliases\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 266, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 101: # The method referenced can be either public or private.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 43: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 224: describe \".register-ing a Thor::Group subclass with class options\" do", "file": "spec/register_spec.rb", "symbol": "", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 15: load_thorfile(\"encoding_other.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 71: end", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Show me how to define options that cannot be used together, so Thor raises an error if they are both provided on the command line.", "query": "class exclusive options", "file": "lib/thor/base.rb", "symbol": "class_exclusive", "line": 358, "lang": "en", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Show me how to define options that cannot be used together, so Thor raises an error if they are both provided on the command line.", "query": "class exclusive options", "file": "lib/thor/base.rb", "symbol": "class_exclusive", "line": 358, "lang": "en", "candidates": [{"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Show me how to define options that cannot be used together, so Thor raises an error if they are both provided on the command line.", "query": "class exclusive options", "file": "lib/thor/base.rb", "symbol": "class_exclusive", "line": 358, "lang": "en", "candidates": [{"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=52-75\nread render for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "render", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=203-226\nread method_exclusive for detail", "file": "lib/thor.rb", "symbol": "method_exclusive", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=8-31\nread action for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=85-108\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=85-108\nread SubcommandWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "SubcommandWithDefault", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=66-89\nread InjectIntoFile for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "InjectIntoFile", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=78-101\nread glob_pattern for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "glob_pattern", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=52-75\nread animal for detail", "file": "spec/register_spec.rb", "symbol": "animal", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=2-25\nread Argument for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=15-38\nread SubApp for detail", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=358-381\nread class_exclusive for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive", "line": 358, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "这个测试用例里用来校验隐藏文件或私有文件名的预期字符串定义在哪里?", "query": "expected private file", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lang": "zh", "candidates": [{"text": "File: lib/thor/actions/create_file.rb\nLine 24: data = args.first", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 3: describe Thor do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 87: URI.send(:open, source, config.fetch(:http_headers, {})) { |input| input.binmode.read }", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 191: #", "file": "lib/thor/util.rb", "symbol": "", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 49: desc \"foo NAME\", \"Fooo\"", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 78: if klass && !klass.arguments.empty?", "file": "lib/thor/command.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 112: def private_file_name", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 72: def format_cell(column, row_size, index)", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 7: def print(message)", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 39: ON_YELLOW = \"background-color: yellow\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 83: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 51: # on Highline implementation and it automatically appends CLEAR to the end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 341: default", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 341, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 122: stderr.flush", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 10: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 4: class Thor", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 24: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 48: end", "file": "lib/thor/command.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 18: end", "file": "Thorfile", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 86: # class_option :style, :type => :string, :default => :mock", "file": "lib/thor/invocation.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 137: status = set_color status, color, true if color", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 11: load_thorfile(\"encoding_with_utf8.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "这个测试用例里用来校验隐藏文件或私有文件名的预期字符串定义在哪里?", "query": "expected private file", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lang": "zh", "candidates": [{"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\ndefines private_file_name", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_link_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nsibling in spec/actions", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "这个测试用例里用来校验隐藏文件或私有文件名的预期字符串定义在哪里?", "query": "expected private file", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lang": "zh", "candidates": [{"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "这个测试用例里用来校验隐藏文件或私有文件名的预期字符串定义在哪里?", "query": "expected private file", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lang": "zh", "candidates": [{"text": "Next: read spec/helper.rb lines=83-106\nread windows? for detail", "file": "spec/helper.rb", "symbol": "windows?", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=505-528\nread dispatch for detail", "file": "lib/thor.rb", "symbol": "dispatch", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=16-39\nread parse for detail", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=657-680\nread print_options for detail", "file": "lib/thor/base.rb", "symbol": "print_options", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=13-36\nread invoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "invoke!", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=52-75\nread enum_to_s for detail", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=21-44\nread base for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "base", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/base_spec.rb lines=6-29\nread hello for detail", "file": "spec/base_spec.rb", "symbol": "hello", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=54-77\nread set_color for detail", "file": "lib/thor/shell/html.rb", "symbol": "set_color", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=17-40\nread revoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "revoke!", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/exit_status.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=144-167\nread method_missing for detail", "file": "spec/fixtures/script.thor", "symbol": "method_missing", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=9-32\nread empty_directory for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "empty_directory", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=112-135\nread private_file_name for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=52-75\nread animal for detail", "file": "spec/register_spec.rb", "symbol": "animal", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=103-126\nread truncate for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "truncate", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=216-239\nread apply for detail", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=262-285\nread argument for detail", "file": "lib/thor/base.rb", "symbol": "argument", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Estoy intentando entender cómo se procesan los argumentos de la línea de comandos. ¿Podrías explicarme la lógica que recorre la lista de tokens para identificar si son interruptores o valores?", "query": "parse arguments switch", "file": "lib/thor/parser/options.rb", "symbol": "parse", "line": 89, "lang": "es", "candidates": [{"text": "File: lib/thor/actions/create_file.rb\nLine 75: say_status :identical, :blue", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 71: # supplied to B. This allows lazy parse of options. Let's suppose you have", "file": "lib/thor/invocation.rb", "symbol": "", "line": 71, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nLine 84: it \"does not show any information\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 675: action :comment_lines, \"doc/COMMENTER\", \"green\"", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 675, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 1: class Thor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 5: def print_opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 32: `stty size 2>/dev/null`.split[1].to_i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 9: def encoding", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 11: opts[key] = Thor::Option.parse(key, value) unless value.is_a?(Thor::Option)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nLine 18: # This parse quick options given as method_options. It makes several", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nLine 44: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 75: # Let Thor::Options parse the options first, so it can remove", "file": "lib/thor/base.rb", "symbol": "", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 119: end", "file": "spec/base_spec.rb", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 7: if diff_lcs_loaded? && ENV[\"THOR_DIFF\"].nil? && ENV[\"RAILS_DIFF\"].nil?", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 89: def parse(args) # rubocop:disable Metrics/MethodLength", "file": "lib/thor/parser/options.rb", "symbol": "parse", "line": 89, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/command.thor\nLine 14: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 6: options[key] = Thor::Option.parse(key, value)", "file": "spec/command_spec.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nLine 19: it \"does not use a new line even with colors\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 87: # end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 15: def parse(*args)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nLine 75: yield", "file": "spec/helper.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estoy intentando entender cómo se procesan los argumentos de la línea de comandos. ¿Podrías explicarme la lógica que recorre la lista de tokens para identificar si son interruptores o valores?", "query": "parse arguments switch", "file": "lib/thor/parser/options.rb", "symbol": "parse", "line": 89, "lang": "es", "candidates": [{"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estoy intentando entender cómo se procesan los argumentos de la línea de comandos. ¿Podrías explicarme la lógica que recorre la lista de tokens para identificar si son interruptores o valores?", "query": "parse arguments switch", "file": "lib/thor/parser/options.rb", "symbol": "parse", "line": 89, "lang": "es", "candidates": [{"text": "Next: read lib/thor/runner.rb lines=276-299\nread thorfiles_relevant_to for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=3-26\nread EncodingImplicit for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "EncodingImplicit", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=248-271\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=44-67\nread initialize for detail", "file": "lib/thor/shell.rb", "symbol": "initialize", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=108-131\nread are_colors_supported? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=83-106\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=89-112\nread parse for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse", "line": 89, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=371-394\nread capture for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "capture", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=7-30\nread print for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=257-280\nread one_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "one_arg", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=24-47\nread remaining for detail", "file": "spec/parser/options_spec.rb", "symbol": "remaining", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=583-606\nread start for detail", "file": "lib/thor/base.rb", "symbol": "start", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/terminal.rb lines=35-58\nread dynamic_width_tput for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_tput", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=83-106\nread usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "usage", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=138-161\nread subclass_files for detail", "file": "lib/thor/base.rb", "symbol": "subclass_files", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "zeige die implementierung für die einfache zeileneingabe mit prompt und echo optionen", "query": "readline prompt echo", "file": "lib/thor/line_editor/basic.rb", "symbol": "LineEditor", "line": 2, "lang": "de", "candidates": [{"text": "File: lib/thor/line_editor.rb\nLine 5: module LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 17: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 221: allow(Thor::LineEditor).to receive(:readline).and_return(\"Y\")", "file": "spec/runner_spec.rb", "symbol": "", "line": 221, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 2: module LineEditor", "file": "lib/thor/line_editor/basic.rb", "symbol": "LineEditor", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/command.rb\nLine 62: formatted_specific_usage.strip", "file": "lib/thor/command.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 12: Rake::Task[\"build\"].execute", "file": "Thorfile", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 2: module LineEditor", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 309: build_options(options, @class_options) if options", "file": "lib/thor/base.rb", "symbol": "", "line": 309, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 33: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/subcommand1/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 10: def describe(name, opts)", "file": "spec/fixtures/command.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 59: self[convert_key(key)] = value", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 268: expect(action(:apply, @file)).to match(/cool padding/)", "file": "spec/actions_spec.rb", "symbol": "", "line": 268, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 4: class EncodingWithUtf8 < Thor", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 74: $VERBOSE = nil", "file": "spec/helper.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 94: when_no_thorfiles_exist do", "file": "spec/runner_spec.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 15: word = word.gsub(/\\n\\005/, \"\\n\").gsub(/\\005/, \"\\n\")", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 211: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 194: '/home/apps\\\\{1\\\\}/*.thor',", "file": "spec/util_spec.rb", "symbol": "", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 115: expect(Thor::LineEditor).to receive(:readline).with(\"Overwrite #{file}? (enter \\\"h\\\" for help) [Ynaqdhm] \", anything).and_return(\"s\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 115, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nLine 66: def destination_root", "file": "spec/helper.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 334: result = Thor::LineEditor.readline(message, options)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 334, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nLine 17: expect(Thor::LineEditor).to receive(:readline).with(\"\\e[32mIs this green? \\e[0m\", anything).and_return(\"yes\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nLine 9: it \"sets the color if specified\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 90: expect(content.strip).to eq('Could not find command \"unknown\" in \"default\" namespace.')", "file": "spec/runner_spec.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "zeige die implementierung für die einfache zeileneingabe mit prompt und echo optionen", "query": "readline prompt echo", "file": "lib/thor/line_editor/basic.rb", "symbol": "LineEditor", "line": 2, "lang": "de", "candidates": [{"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nsibling in lib/thor/line_editor", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\ndefines LineEditor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "zeige die implementierung für die einfache zeileneingabe mit prompt und echo optionen", "query": "readline prompt echo", "file": "lib/thor/line_editor/basic.rb", "symbol": "LineEditor", "line": 2, "lang": "de", "candidates": [{"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "zeige die implementierung für die einfache zeileneingabe mit prompt und echo optionen", "query": "readline prompt echo", "file": "lib/thor/line_editor/basic.rb", "symbol": "LineEditor", "line": 2, "lang": "de", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=251-274\nread error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "error", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=6-29\nread available? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=78-101\nread glob_pattern for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "glob_pattern", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=10-33\nread initialize for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "initialize", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "LineEditor", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=639-662\nread class_options_help for detail", "file": "lib/thor/base.rb", "symbol": "class_options_help", "line": 639, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=186-209\nread check_requirement! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "check_requirement!", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=115-138\nread H for detail", "file": "spec/fixtures/invoke.thor", "symbol": "H", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=47-70\nread SubcommandTest1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "SubcommandTest1", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=64-87\nread reverse_merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=54-77\nread set_color for detail", "file": "lib/thor/shell/html.rb", "symbol": "set_color", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=64-87\nread C for detail", "file": "spec/fixtures/invoke.thor", "symbol": "C", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=52-75\nread render for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "render", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=138-161\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=108-131\nread long_description_unwrapped for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description_unwrapped", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=203-226\nread thor_root_glob for detail", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=104-127\nread AtLeastOneRequiredArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "AtLeastOneRequiredArgumentError", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=15-38\nread readline for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "readline", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell.rb lines=77-100\nread _shared_configuration for detail", "file": "lib/thor/shell.rb", "symbol": "_shared_configuration", "line": 77, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "O comando encerra o processo imediatamente quando ocorre um erro, impedindo a continuação da execução dos outros passos.", "query": "exit on failure", "file": "spec/fixtures/verbose.thor", "symbol": "exit_on_failure?", "line": 8, "lang": "pt", "candidates": [{"text": "File: lib/thor/command.rb\nLine 121: def handle_no_method_error?(instance, error, caller)", "file": "lib/thor/command.rb", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 288: it \"executes the command given\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 76: it \"shows options information\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 83: # own options:", "file": "lib/thor/invocation.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 339: expect(runner.run \"echo $BAR\", env: {\"BAR\" => \"foo\"}, capture: true).to eq(\"foo\\n\")", "file": "spec/actions_spec.rb", "symbol": "", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 60: config[:after] = /\\z/ unless config.key?(:before) || config.key?(:after)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 93: Regexp.last_match(-1).downcase", "file": "lib/thor/util.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?", "file": "spec/fixtures/verbose.thor", "symbol": "exit_on_failure?", "line": 8, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/nested_context.rb\nLine 3: def initialize", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 306: it \"does check the required option of the remaining command\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 306, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 66: def with_padding", "file": "lib/thor/shell.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 15: def entered?", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 243: # 3. /Users/wycats <-- we find a Thorfile here, so we stop", "file": "lib/thor/runner.rb", "symbol": "", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 227: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 3: describe Thor::Shell::Color do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 16: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 38: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 144: def check_exclusive!", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 76: expect(invoke!).to eq(\" exist doc\\n\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 793: def dispatch(command, given_args, given_opts, config) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "", "line": 793, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 57: #", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 27: shell.ask \"Is this green?\", :green", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 164: end", "file": "lib/thor/group.rb", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 98: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "O comando encerra o processo imediatamente quando ocorre um erro, impedindo a continuação da execução dos outros passos.", "query": "exit on failure", "file": "spec/fixtures/verbose.thor", "symbol": "exit_on_failure?", "line": 8, "lang": "pt", "candidates": [{"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\ndefines exit_on_failure?", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "O comando encerra o processo imediatamente quando ocorre um erro, impedindo a continuação da execução dos outros passos.", "query": "exit on failure", "file": "spec/fixtures/verbose.thor", "symbol": "exit_on_failure?", "line": 8, "lang": "pt", "candidates": [{"text": "Next: read spec/fixtures/verbose.thor lines=7-30\nread Test for detail", "file": "spec/fixtures/verbose.thor", "symbol": "Test", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=104-127\nread F for detail", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=6-29\nread WrappedPrinter for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "WrappedPrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/html.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=393-416\nread class_at_least_one for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=9-32\nread HTML for detail", "file": "lib/thor/shell/html.rb", "symbol": "HTML", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=15-38\nread parse for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "parse", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=98-121\nread say for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=101-124\nread map for detail", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=121-144\nread AnotherScript for detail", "file": "spec/fixtures/script.thor", "symbol": "AnotherScript", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=20-43\nread unix? for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "unix?", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=131-154\nread find_class_and_command_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_class_and_command_by_namespace", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=37-60\nread diff_lcs_loaded? for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=7-30\nread command1 for detail", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/color_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/color_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/verbose.thor lines=8-31\nread exit_on_failure? for detail", "file": "spec/fixtures/verbose.thor", "symbol": "exit_on_failure?", "line": 8, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "The command usage display logic is incorrectly prepending the base executable name to every line of the formatted output, causing broken multi-line usage strings.", "query": "formatted usage banner", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lang": "en", "candidates": [{"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 47: expect(capture(:stdout) { TreeApp.start([\"help\"]) }).to match(/tree.*Print a tree of all available commands/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 86: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 176: it \"shows usage with banner content\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 176, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 87: @given_destination = convert_encoded_instructions(destination.to_s)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 5: attr_reader :name, :description, :enum, :required, :type, :default, :banner", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 42: # MyScript.new [1.0], { :foo => :bar }, :shell => Thor::Shell::Basic.new", "file": "lib/thor/shell.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 84: sample = if banner && !banner.to_s.empty?", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 84, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nLine 31: # If a command is not found on Thor::Runner, method missing is invoked and", "file": "lib/thor/runner.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 3: class Amazing < Thor", "file": "spec/fixtures/command.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 75: yield", "file": "spec/helper.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 247: it \"uses banner when supplied\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 247, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 20: :banner => \"THREE\", :aliases => \"-t\"", "file": "spec/fixtures/group.thor", "symbol": "", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 14: hash.each do |key, value|", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 125: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 270: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 270, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 28: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 620: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 620, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 10: pid= spawn({\"RUBYLIB\" => ruby_lib},", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 47: options.fetch(:path, false)", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 546: def banner(command, namespace = nil, subcommand = false)", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/runner.rb\nLine 10: def self.banner(command, all = false, subcommand = false)", "file": "lib/thor/runner.rb", "symbol": "", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nLine 76: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "The command usage display logic is incorrectly prepending the base executable name to every line of the formatted output, causing broken multi-line usage strings.", "query": "formatted usage banner", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lang": "en", "candidates": [{"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "The command usage display logic is incorrectly prepending the base executable name to every line of the formatted output, causing broken multi-line usage strings.", "query": "formatted usage banner", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "The command usage display logic is incorrectly prepending the base executable name to every line of the formatted output, causing broken multi-line usage strings.", "query": "formatted usage banner", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lang": "en", "candidates": [{"text": "Next: read lib/thor.rb lines=546-569\nread banner for detail", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/subcommand.thor lines=3-26\nread Subcommand for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Subcommand", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=130-153\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=45-68\nread invocation_blocks for detail", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=83-106\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=5-28\nread parse for detail", "file": "spec/parser/option_spec.rb", "symbol": "parse", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=35-58\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=99-122\nread aliases_for_usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "aliases_for_usage", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=32-55\nread completion_proc for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_proc", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=223-246\nread strict_args_position? for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position?", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=133-156\nread invoke_all for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_all", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=23-46\nread rake_classes for detail", "file": "lib/thor/rake_compat.rb", "symbol": "rake_classes", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=52-75\nread animal for detail", "file": "spec/register_spec.rb", "symbol": "animal", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=321-344\nread show_modules for detail", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=177-200\nread check_unknown_options? for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=234-257\nread switch_option for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch_option", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "현재 실행 중인 명령어가 하위 명령자인지 확인하고, 설정된 예외나 포함 옵션에 따라 알 수 없는 옵션 체크를 적용하는 로직을 찾아줘.", "query": "check_unknown_options subcommand", "file": "lib/thor.rb", "symbol": "check_unknown_options?", "line": 363, "lang": "ko", "candidates": [{"text": "File: lib/thor/actions/file_manipulation.rb\nLine 192: def append_to_file(path, *args, &block)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 5: options.each do |key, value|", "file": "spec/command_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 207: self.name = name.upcase if options[:loud]", "file": "spec/group_spec.rb", "symbol": "", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 12: self.options_relation = other.options_relation.dup if other.options_relation", "file": "lib/thor/command.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 825: end", "file": "lib/thor/base.rb", "symbol": "", "line": 825, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 12: expect(capture(:stdout) { Thor::Sandbox::EncodingWithUtf8.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 51: expect(content.strip).to eq('Could not find command \"unknown\".')", "file": "spec/runner_spec.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 41: ON_BLUE = \"background-color: blue\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 68: end", "file": "spec/command_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 68: create_file(\"doc/%file_name%.rb.tt\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 17: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 84: # returns true, force it, otherwise skip.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 38: end", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 357: #", "file": "lib/thor/base.rb", "symbol": "", "line": 357, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 363: def check_unknown_options?(config) #:nodoc:", "file": "lib/thor.rb", "symbol": "check_unknown_options?", "line": 363, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/html.rb\nLine 53: #", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 12: Thor::LineEditor::Readline,", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 149: describe \"#inside\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 104: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 58: end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 7: include Thor::RakeCompat", "file": "Thorfile", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 44: # Create a symlink by default", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "현재 실행 중인 명령어가 하위 명령자인지 확인하고, 설정된 예외나 포함 옵션에 따라 알 수 없는 옵션 체크를 적용하는 로직을 찾아줘.", "query": "check_unknown_options subcommand", "file": "lib/thor.rb", "symbol": "check_unknown_options?", "line": 363, "lang": "ko", "candidates": [{"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "현재 실행 중인 명령어가 하위 명령자인지 확인하고, 설정된 예외나 포함 옵션에 따라 알 수 없는 옵션 체크를 적용하는 로직을 찾아줘.", "query": "check_unknown_options subcommand", "file": "lib/thor.rb", "symbol": "check_unknown_options?", "line": 363, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "현재 실행 중인 명령어가 하위 명령자인지 확인하고, 설정된 예외나 포함 옵션에 따라 알 수 없는 옵션 체크를 적용하는 로직을 찾아줘.", "query": "check_unknown_options subcommand", "file": "lib/thor.rb", "symbol": "check_unknown_options?", "line": 363, "lang": "ko", "candidates": [{"text": "Next: read spec/fixtures/verbose.thor lines=7-30\nread Test for detail", "file": "spec/fixtures/verbose.thor", "symbol": "Test", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=4-27\nread Sandbox for detail", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=274-297\nread Apple for detail", "file": "spec/fixtures/script.thor", "symbol": "Apple", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=60-83\nread invoke! for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "invoke!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=103-126\nread files for detail", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=531-554\nread no_commands for detail", "file": "lib/thor/base.rb", "symbol": "no_commands", "line": 531, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=179-202\nread boom for detail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=43-66\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=77-100\nread required_arguments_for for detail", "file": "lib/thor/command.rb", "symbol": "required_arguments_for", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=51-74\nread six for detail", "file": "spec/fixtures/group.thor", "symbol": "six", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=194-217\nread print_wrapped for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_wrapped", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=10-33\nread Parent for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=18-41\nread subcommand1 for detail", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=363-386\nread check_unknown_options? for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options?", "line": 363, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "Je suis en train de nettoyer un fichier de configuration qui a été commenté par erreur. Peux-tu me montrer la méthode qui permet de retirer le symbole de commentaire devant des lignes spécifiques via une expression régulière ?", "query": "uncomment lines regex", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "uncomment_lines", "line": 314, "lang": "fr", "candidates": [{"text": "File: spec/group_spec.rb\nLine 63: before do", "file": "spec/group_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 531: expect(parse(\"-n\", \"3\", \"-m\", \".5\")).to eq(\"n\" => 3, \"m\" => 0.5)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 531, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 12: puts opts[\"forcefully\"] ? ret.upcase : ret", "file": "spec/fixtures/command.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 77: def _shared_configuration #:nodoc:", "file": "lib/thor/shell.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 288: expect do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 7: #", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 123: create_file(\"doc/config.rb\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 64: out = capture(:stdout) do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 628: describe \"#uncomment_lines\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 628, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 116: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 314: def uncomment_lines(path, flag, *args)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "uncomment_lines", "line": 314, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/arguments_spec.rb\nLine 39: expect(parse(\"product\", \"title\", \"age\")[\"string\"]).to eq(\"product\")", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/command.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 27: expect($stdout).to receive(:print).with(\" conflict README\\n\")", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 22: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 11: #", "file": "lib/thor.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 129: subcommand :one, I", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 32: def completion_proc", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 166: def _parse_initialization_options(args, opts, config) #:nodoc:", "file": "lib/thor/invocation.rb", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 1: require \"helper\"", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 327: it \"does not mutate the provided config\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 6: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je suis en train de nettoyer un fichier de configuration qui a été commenté par erreur. Peux-tu me montrer la méthode qui permet de retirer le symbole de commentaire devant des lignes spécifiques via une expression régulière ?", "query": "uncomment lines regex", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "uncomment_lines", "line": 314, "lang": "fr", "candidates": [{"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Je suis en train de nettoyer un fichier de configuration qui a été commenté par erreur. Peux-tu me montrer la méthode qui permet de retirer le symbole de commentaire devant des lignes spécifiques via une expression régulière ?", "query": "uncomment lines regex", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "uncomment_lines", "line": 314, "lang": "fr", "candidates": [{"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je suis en train de nettoyer un fichier de configuration qui a été commenté par erreur. Peux-tu me montrer la méthode qui permet de retirer le symbole de commentaire devant des lignes spécifiques via une expression régulière ?", "query": "uncomment lines regex", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "uncomment_lines", "line": 314, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=64-87\nread last? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=123-146\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=138-161\nread say_status for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "say_status", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=167-190\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=59-82\nread foo for detail", "file": "spec/fixtures/script.thor", "symbol": "foo", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=345-368\nread only_one for detail", "file": "spec/fixtures/script.thor", "symbol": "only_one", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=257-280\nread one_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "one_arg", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=28-51\nread ThorTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "ThorTask", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=115-138\nread H for detail", "file": "spec/fixtures/invoke.thor", "symbol": "H", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=221-244\nread ruby_command for detail", "file": "lib/thor/util.rb", "symbol": "ruby_command", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=168-191\nread dasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherize", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=68-91\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=190-213\nread thor_root for detail", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=314-337\nread uncomment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "uncomment_lines", "line": 314, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=81-104\nread call_unexistent_method for detail", "file": "spec/fixtures/script.thor", "symbol": "call_unexistent_method", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=101-124\nread map for detail", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "mostra como imprimir o prompt e capturar a entrada do usuário", "query": "print prompt input", "file": "lib/thor/line_editor/basic.rb", "symbol": "readline", "line": 15, "lang": "pt", "candidates": [{"text": "File: lib/thor/line_editor/readline.rb\nLine 6: require \"readline\"", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 46: self.shell = config[:shell]", "file": "lib/thor/shell.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 37: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/A top level command/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 37: # source:: the relative path to the source root.", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 9: \"#{filename} uses inconsistent single quotes on lines #{failing_lines.join(', ')}\" unless failing_lines.empty?", "file": "spec/quality_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 334: result = Thor::LineEditor.readline(message, options)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 334, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 34: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 29: ENV[\"THOR_SHELL\"] = \"TestShell\"", "file": "spec/shell_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 9: define", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 209: [true, $1.split(\"\").any? { |f| switch?(\"-#{f}\") }]", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 40: context \"specifying :symbolic => true\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 23: File.readlines(filename).each_with_index do |line, number|", "file": "spec/quality_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 2: require_relative \"line_editor/readline\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 15: def readline", "file": "lib/thor/line_editor/basic.rb", "symbol": "readline", "line": 15, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/sort_spec.rb\nLine 61: list.sort_by! do |a,b|", "file": "spec/sort_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 12: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 96: expect(File.read(file)).to eq(\"FOO = FOO\\n\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 17: expect(Thor::LineEditor).to receive(:readline).with(\"\\e[32mIs this green? \\e[0m\", anything).and_return(\"yes\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nLine 39: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 12: @opt = Thor::Arguments.new(arguments)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 221: allow(Thor::LineEditor).to receive(:readline).and_return(\"Y\")", "file": "spec/runner_spec.rb", "symbol": "", "line": 221, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 96: expect(Thor::LineEditor).to receive(:readline).and_return(\"d\", \"y\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 96, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "mostra como imprimir o prompt e capturar a entrada do usuário", "query": "print prompt input", "file": "lib/thor/line_editor/basic.rb", "symbol": "readline", "line": 15, "lang": "pt", "candidates": [{"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\ndefines readline", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nsibling in lib/thor/line_editor", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "mostra como imprimir o prompt e capturar a entrada do usuário", "query": "print prompt input", "file": "lib/thor/line_editor/basic.rb", "symbol": "readline", "line": 15, "lang": "pt", "candidates": [{"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "mostra como imprimir o prompt e capturar a entrada do usuário", "query": "print prompt input", "file": "lib/thor/line_editor/basic.rb", "symbol": "readline", "line": 15, "lang": "pt", "candidates": [{"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=121-144\nread handle_no_method_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_no_method_error?", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=263-286\nread gsub_file! for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=10-33\nread initialize for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "initialize", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=345-368\nread only_one for detail", "file": "spec/fixtures/script.thor", "symbol": "only_one", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=73-96\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=10-33\nread Parent for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=103-126\nread truncate for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "truncate", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=59-82\nread foo for detail", "file": "spec/fixtures/script.thor", "symbol": "foo", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=145-168\nread register_klass_file for detail", "file": "lib/thor/base.rb", "symbol": "register_klass_file", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=6-29\nread available? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=607-630\nread public_command for detail", "file": "lib/thor/base.rb", "symbol": "public_command", "line": 607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=15-38\nread readline for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "readline", "line": 15, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/arguments.rb lines=68-91\nread peek for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "peek", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=107-130\nread show_default? for detail", "file": "lib/thor/parser/option.rb", "symbol": "show_default?", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=93-116\nread method_missing for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "method_missing", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "LineEditor", "line": 2, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "我需要获取命令行参数的默认值,如果是数组类型的话,请将其转换为用空格分隔的字符串。", "query": "argument default print", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lang": "zh", "candidates": [{"text": "File: spec/shell/color_spec.rb\nLine 172: it \"does nothing when stdout is not a tty\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 322: Encoding.default_external = encoding_original", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 84: # ==== Parameters", "file": "lib/thor/util.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 279: return nil # User set value to nil", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 27: def print_default", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_link_spec.rb\nLine 63: it \"creates a symbolic link by default\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 668: list << [\"\", \"# Default: #{option.print_default}\"] if option.show_default?", "file": "lib/thor/base.rb", "symbol": "", "line": 668, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 75: #", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 276: describe \"#print_default\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 276, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 224: ruby = File.join(RbConfig::CONFIG[\"bindir\"], ruby_name)", "file": "lib/thor/util.rb", "symbol": "", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 6: attr_reader :stdout, :options", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 1: # encoding: utf-8", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 78: def glob_pattern", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 21: if meth && !respond_to?(meth)", "file": "lib/thor/runner.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 26: say \"+ #{diff.new_element.chomp}\", :green, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 9: end", "file": "spec/base_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 99: end", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 117: # def baz", "file": "lib/thor/util.rb", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 53: describe \"#print_default\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 53, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\nLine 46: File.unlink(destination) if exists?", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 33: @assigns[argument.human_name] = argument.default.dup", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 200: #", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 626: end", "file": "lib/thor/base.rb", "symbol": "", "line": 626, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "我需要获取命令行参数的默认值,如果是数组类型的话,请将其转换为用空格分隔的字符串。", "query": "argument default print", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lang": "zh", "candidates": [{"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\ndefines print_default", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "我需要获取命令行参数的默认值,如果是数组类型的话,请将其转换为用空格分隔的字符串。", "query": "argument default print", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "我需要获取命令行参数的默认值,如果是数组类型的话,请将其转换为用空格分隔的字符串。", "query": "argument default print", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/parser/argument.rb lines=39-62\nread required? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "required?", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=304-327\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=69-92\nread revoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "revoke!", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=2-25\nread Argument for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=109-132\nread sans_backtrace for detail", "file": "lib/thor/command.rb", "symbol": "sans_backtrace", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=221-244\nread MyDefaults for detail", "file": "spec/fixtures/script.thor", "symbol": "MyDefaults", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=169-192\nread check_unknown_options! for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options!", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=225-248\nread current_is_value? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_value?", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=31-54\nread except for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=45-68\nread invocation_blocks for detail", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=6-29\nread available? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=10-33\nread Parent for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=2-25\nread NestedContext for detail", "file": "lib/thor/nested_context.rb", "symbol": "NestedContext", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=48-71\nread add_runtime_options! for detail", "file": "lib/thor/actions.rb", "symbol": "add_runtime_options!", "line": 48, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Preciso criar uma versão segura da união de dois hashes que não altere o original. O método deve retornar uma nova instância com os elementos combinados.", "query": "hash merge duplicate", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge", "line": 53, "lang": "pt", "candidates": [{"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 53: def merge(other)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge", "line": 53, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/directory.rb\nLine 61: super(base, destination, {recursive: true}.merge(config))", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 1: require_relative \"terminal\"", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 541: it \"displays diff and merge options to the user\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 541, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nLine 54: error_messages = []", "file": "spec/quality_spec.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 149: invoke! \"doc/README\", before: \"__end__\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 205: # block:: an optional block that returns the value to be used in diff and merge", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 205, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 140: end", "file": "lib/thor/group.rb", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 76: def can_has", "file": "spec/command_spec.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 57: type: :array,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 78: super.merge!(shell: shell)", "file": "lib/thor/shell.rb", "symbol": "", "line": 78, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nLine 32: desc \"part one\"", "file": "spec/register_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 200: # insert_into_file, it's reversible.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 45: non_namespaced_name = task.name.split(\":\").last", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 6: class TablePrinter < ColumnPrinter", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 6: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 143: if (instance.methods & [name.to_s, name.to_sym]).empty?", "file": "lib/thor/command.rb", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 182: it \"runs groups even when there is a command with the same name\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 104: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 18: # end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 31: config = config.merge({error_on_no_change: true})", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 107: it \"launches the merge tool when there is a collision and source has utf-8 characters\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 107, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 77: if arg.is_a?(Array)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Preciso criar uma versão segura da união de dois hashes que não altere o original. O método deve retornar uma nova instância com os elementos combinados.", "query": "hash merge duplicate", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge", "line": 53, "lang": "pt", "candidates": [{"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Preciso criar uma versão segura da união de dois hashes que não altere o original. O método deve retornar uma nova instância com os elementos combinados.", "query": "hash merge duplicate", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge", "line": 53, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/parser/options.rb lines=256-279\nread parse_boolean for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_boolean", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=62-85\nread InvocationError for detail", "file": "lib/thor/error.rb", "symbol": "InvocationError", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=11-34\nread HashWithIndifferentAccess for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/subcommand.thor lines=10-33\nread Parent for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=377-400\nread merge_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge_tool", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=53-76\nread merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge", "line": 53, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=537-560\nread no_commands_context for detail", "file": "lib/thor/base.rb", "symbol": "no_commands_context", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=138-161\nread invoke_with_padding for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_with_padding", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=184-207\nread check_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type!", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=153-176\nread replace! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replace!", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=12-35\nread initialize for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "initialize", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=69-92\nread revoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "revoke!", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=27-50\nread delete for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "delete", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=89-112\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=166-189\nread _parse_initialization_options for detail", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "find the command line tool implementation that uses a fallback action when no subcommand is provided", "query": "thor default command", "file": "spec/register_spec.rb", "symbol": "PluginWithDefault", "line": 57, "lang": "en", "candidates": [{"text": "File: spec/shell_spec.rb\nLine 39: it \"uses padding for inside block outputs\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 564: @long_desc_wrap ||= nil", "file": "lib/thor.rb", "symbol": "", "line": 564, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 37: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 63: expect(File.exist?(file)).to be true", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 57: class PluginWithDefault < Thor", "file": "spec/register_spec.rb", "symbol": "PluginWithDefault", "line": 57, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor.rb\nLine 16: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 49: desc \"foo NAME\", \"Fooo\"", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 139: expect do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 83: it \"has default value equal to the numeric\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 96: MyClassOptionScript.start %w[mix --one --three --five --six]", "file": "spec/base_spec.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 51: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 23: when \"-\"", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 20: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 6: option \"--not_help\", :type => :boolean", "file": "spec/fixtures/help.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 14: ].detect(&:available?)", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 84: Gem.win_platform?", "file": "spec/helper.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 293: end", "file": "spec/base_spec.rb", "symbol": "", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 16: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 180: @switches.map do |_, o|", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 8: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 55: expect(argument(:foo, {", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 127: command.run(self, *args)", "file": "lib/thor/invocation.rb", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 10: def describe(name, opts)", "file": "spec/fixtures/command.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 19: source = args.first", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find the command line tool implementation that uses a fallback action when no subcommand is provided", "query": "thor default command", "file": "spec/register_spec.rb", "symbol": "PluginWithDefault", "line": 57, "lang": "en", "candidates": [{"text": "File: spec/register_spec.rb\ndefines PluginWithDefault", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/rake_compat_spec.rb\nsibling in spec", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nsibling in spec", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nsibling in spec", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nsibling in spec", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "find the command line tool implementation that uses a fallback action when no subcommand is provided", "query": "thor default command", "file": "spec/register_spec.rb", "symbol": "PluginWithDefault", "line": 57, "lang": "en", "candidates": [{"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find the command line tool implementation that uses a fallback action when no subcommand is provided", "query": "thor default command", "file": "spec/register_spec.rb", "symbol": "PluginWithDefault", "line": 57, "lang": "en", "candidates": [{"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=505-528\nread dispatch for detail", "file": "lib/thor.rb", "symbol": "dispatch", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=216-239\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=72-95\nread shift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "shift", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=57-80\nread PluginWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefault", "line": 57, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/options.rb lines=248-271\nread parsing_options? for detail", "file": "lib/thor/parser/options.rb", "symbol": "parsing_options?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=368-391\nread merge for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge", "line": 368, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=293-316\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=552-575\nread baseclass for detail", "file": "lib/thor.rb", "symbol": "baseclass", "line": 552, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=58-81\nread matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "matches", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=83-106\nread windows? for detail", "file": "spec/helper.rb", "symbol": "windows?", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=84-107\nread current_is_value? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=55-78\nread inherited for detail", "file": "spec/fixtures/group.thor", "symbol": "inherited", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=280-303\nread escape_html for detail", "file": "lib/thor/util.rb", "symbol": "escape_html", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=158-181\nread parse_string for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_string", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/directory_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoker", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=44-67\nread initialize for detail", "file": "lib/thor/shell.rb", "symbol": "initialize", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=50-73\nread foo for detail", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=661-684\nread sort_commands! for detail", "file": "lib/thor.rb", "symbol": "sort_commands!", "line": 661, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/exit_status.thor lines=9-32\nread error for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "error", "line": 9, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Comment est ce que la fusion destructrice gère la conversion des clés ?", "query": "merge! indifferent access", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/subcommand.thor\nLine 8: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 57: def merge!(other)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/rake_compat.rb\nLine 52: Rake.application.last_description = nil", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 5: module LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 196: expect(@action.exists?).to be true", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 158: create_file(\"doc/config/config.rb\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 53: list = Thor::Util.namespaces_in_content(\"class Foo; class Bar < Thor; end; end; class Baz; class Bat; end; end\")", "file": "spec/util_spec.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 87: switch_name", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 6: attr_reader :stdout, :options", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 42: # data:: Data to add to the file. Can be given as a block.", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 43: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 44: #", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 116: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 13: case name", "file": "lib/thor/invocation.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 127: # in log_status, avoiding the message from being shown. If a Symbol is", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 5: require 'thor'", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 27: when \"!\"", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 10: def describe(name, opts)", "file": "spec/fixtures/command.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 61: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 12: Thor::LineEditor::Readline,", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 10: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 247: register_options_relation_for(:method_options,", "file": "lib/thor.rb", "symbol": "", "line": 247, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 161: name.index(\"-\") == 0", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Comment est ce que la fusion destructrice gère la conversion des clés ?", "query": "merge! indifferent access", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lang": "fr", "candidates": [{"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Comment est ce que la fusion destructrice gère la conversion des clés ?", "query": "merge! indifferent access", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=11-34\nread HashWithIndifferentAccess for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=104-127\nread local_method? for detail", "file": "lib/thor/command.rb", "symbol": "local_method?", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=546-569\nread banner for detail", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=11-34\nread build for detail", "file": "Thorfile", "symbol": "build", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=27-50\nread delete for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "delete", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=253-276\nread zero_args for detail", "file": "spec/fixtures/script.thor", "symbol": "zero_args", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=118-141\nread foo for detail", "file": "spec/fixtures/group.thor", "symbol": "foo", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/subcommand.thor lines=10-33\nread Parent for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=65-88\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=68-91\nread peek for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "peek", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=115-138\nread H for detail", "file": "spec/fixtures/invoke.thor", "symbol": "H", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=330-353\nread ask_simply for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_simply", "line": 330, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=3-26\nread Subcommand for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Subcommand", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=827-850\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 827, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=221-244\nread MyDefaults for detail", "file": "spec/fixtures/script.thor", "symbol": "MyDefaults", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=438-461\nread disable_required_check? for detail", "file": "lib/thor.rb", "symbol": "disable_required_check?", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=12-35\nread initialize for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "initialize", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=169-192\nread check_unknown_options! for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options!", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=57-80\nread merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/html.rb lines=79-102\nread can_display_colors? for detail", "file": "lib/thor/shell/html.rb", "symbol": "can_display_colors?", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=619-642\nread handle_argument_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_argument_error", "line": 619, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "A classe que gera um arquivo copiando o conteúdo fornecido pelo usuário, sem renderizar ERB, precisa verificar se o conteúdo atual no destino é idêntico ao que será escrito para evitar sobrescritas desnecessárias. O método de verificação está falhando em comparações de arquivos binários ou com codificação específica porque não está normalizando a codificação da string renderizada para ASCII-8BIT antes da comparação binária.", "query": "file content comparison encoding", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lang": "pt", "candidates": [{"text": "File: spec/thor_spec.rb\nLine 844: it \"allows incompatible types if allow_incompatible_default_type! is called\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 844, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 542: expect(Thor::LineEditor).to receive(:readline).with('Overwrite foo? (enter \"h\" for help) [Ynaqdhm] ', {add_to_history: false}).and_return(\"s\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 542, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 265: \" and then uploading it to the configured Amazon S3 Bucket.\\n\\n\"\\", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 265, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 8: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 67: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 94: create %w(--foo -f) => true, %w(--bar -b) => true, %w(--app -a) => :required", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 71: end", "file": "lib/thor/error.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 30: end", "file": "lib/thor/error.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 3: class Thor", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 34: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 131: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 13: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 9: def encoding", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 4: describe Thor::Actions::CreateFile do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 78: Hash.new(default).merge!(self)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 20: private", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 9: my_script = Class.new(Thor) do", "file": "spec/sort_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 24: # CreateLink is a subset of CreateFile, which instead of taking a block of", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nLine 11: class_option \"opt\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 12: @options = options", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 32: class CreateFile < EmptyDirectory #:nodoc:", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/sort_spec.rb\nLine 30: def a; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 55: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "A classe que gera um arquivo copiando o conteúdo fornecido pelo usuário, sem renderizar ERB, precisa verificar se o conteúdo atual no destino é idêntico ao que será escrito para evitar sobrescritas desnecessárias. O método de verificação está falhando em comparações de arquivos binários ou com codificação específica porque não está normalizando a codificação da string renderizada para ASCII-8BIT antes da comparação binária.", "query": "file content comparison encoding", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lang": "pt", "candidates": [{"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "A classe que gera um arquivo copiando o conteúdo fornecido pelo usuário, sem renderizar ERB, precisa verificar se o conteúdo atual no destino é idêntico ao que será escrito para evitar sobrescritas desnecessárias. O método de verificação está falhando em comparações de arquivos binários ou com codificação específica porque não está normalizando a codificação da string renderizada para ASCII-8BIT antes da comparação binária.", "query": "file content comparison encoding", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "A classe que gera um arquivo copiando o conteúdo fornecido pelo usuário, sem renderizar ERB, precisa verificar se o conteúdo atual no destino é idêntico ao que será escrito para evitar sobrescritas desnecessárias. O método de verificação está falhando em comparações de arquivos binários ou com codificação específica porque não está normalizando a codificação da string renderizada para ASCII-8BIT antes da comparação binária.", "query": "file content comparison encoding", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/group.thor lines=43-66\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=350-373\nread check_unknown_options! for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options!", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=783-806\nread create_command for detail", "file": "lib/thor/base.rb", "symbol": "create_command", "line": 783, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=460-483\nread method_exclusive_option_names for detail", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=96-119\nread public_method? for detail", "file": "lib/thor/command.rb", "symbol": "public_method?", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/html_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/html_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=207-230\nread file_collision for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=14-37\nread ok for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=69-92\nread revoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "revoke!", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=8-31\nread action for detail", "file": "spec/actions_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=21-44\nread release for detail", "file": "Thorfile", "symbol": "release", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=21-44\nread revoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=234-257\nread switch_option for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch_option", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=31-54\nread file for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=45-68\nread identical? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "identical?", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Je cherche la méthode qui affiche le message pour la première partie des tests. Peux-tu me montrer où elle est définie ?", "query": "part one puts", "file": "spec/register_spec.rb", "symbol": "part_one", "line": 33, "lang": "fr", "candidates": [{"text": "File: Thorfile\nLine 1: $LOAD_PATH.unshift File.expand_path(\"../lib\", __FILE__)", "file": "Thorfile", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 284: #", "file": "lib/thor.rb", "symbol": "", "line": 284, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 23: # Set the terminal's foreground HTML color to blue.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 106: content = capture(:stdout) { E.help(Thor::Base.shell.new) }", "file": "spec/group_spec.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 269: def can_display_colors?", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 25: let(:destination) { \"doc/config.rb\" }", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 35: describe \"#usage\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 16: # rb-readline does not allow Readline.completion_proc= to receive nil.", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 40: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub help)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 197: ])", "file": "spec/util_spec.rb", "symbol": "", "line": 197, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 22: alias_method :add_link, :create_link", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 41: end.to raise_error(Thor::Error, /Could not find \"unknown\" in any of your source paths/)", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 124: # ==== Parameters", "file": "lib/thor.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 61: self", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 33: def part_one", "file": "spec/register_spec.rb", "symbol": "part_one", "line": 33, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nLine 1: class Thor", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 138: invoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 10: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 107: invoke! \"doc\", \"docs\"", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 99: destination_path = File.dirname(File.join(destination_root, destination))", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 13: else", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 13: # 2) Loading thor files and sandboxing:", "file": "lib/thor/util.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 8: desc \"error\", \"exit with a planned error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 39: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/A subcommand/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche la méthode qui affiche le message pour la première partie des tests. Peux-tu me montrer où elle est définie ?", "query": "part one puts", "file": "spec/register_spec.rb", "symbol": "part_one", "line": 33, "lang": "fr", "candidates": [{"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nsibling in spec", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nsibling in spec", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nsibling in spec", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nsibling in spec", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\ndefines part_one", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nsibling in spec", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Je cherche la méthode qui affiche le message pour la première partie des tests. Peux-tu me montrer où elle est définie ?", "query": "part one puts", "file": "spec/register_spec.rb", "symbol": "part_one", "line": 33, "lang": "fr", "candidates": [{"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche la méthode qui affiche le message pour la première partie des tests. Peux-tu me montrer où elle est définie ?", "query": "part one puts", "file": "spec/register_spec.rb", "symbol": "part_one", "line": 33, "lang": "fr", "candidates": [{"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=24-47\nread find_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_by_namespace", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=78-101\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=14-37\nread ok for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=5-28\nread parse for detail", "file": "spec/parser/option_spec.rb", "symbol": "parse", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=48-71\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=31-54\nread dynamic_width_stty for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_stty", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=80-103\nread ask for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=4-27\nread EncodingWithUtf8 for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=72-95\nread format_cell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "format_cell", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=10-33\nread create_file for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=714-737\nread bar for detail", "file": "spec/thor_spec.rb", "symbol": "bar", "line": 714, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=33-56\nread part_one for detail", "file": "spec/register_spec.rb", "symbol": "part_one", "line": 33, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=251-274\nread error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "error", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=263-286\nread create_command for detail", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=145-168\nread register_klass_file for detail", "file": "lib/thor/base.rb", "symbol": "register_klass_file", "line": 145, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "親クラスから値を取得して、必要に応じてコピーを返す処理はどこにありますか?", "query": "superclass dup TypeError", "file": "lib/thor/base.rb", "symbol": "from_superclass", "line": 750, "lang": "ja", "candidates": [{"text": "File: lib/thor/runner.rb\nLine 289: def display_klasses(with_modules = false, show_internal = false, klasses = Thor::Base.subclasses)", "file": "lib/thor/runner.rb", "symbol": "", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 750: def from_superclass(method, default = nil)", "file": "lib/thor/base.rb", "symbol": "from_superclass", "line": 750, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/group.thor\nLine 77: class BrokenCounter < MyCounter", "file": "spec/fixtures/group.thor", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 81: #", "file": "spec/helper.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 10: def describe(name, opts)", "file": "spec/fixtures/command.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 277: # No problem for boolean types", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 42: paths += from_superclass(:source_paths, [])", "file": "lib/thor/actions.rb", "symbol": "", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 25: @default_command ||= from_superclass(:default_command, \"help\")", "file": "lib/thor.rb", "symbol": "", "line": 25, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 10: from_superclass(:get_from_super, 13)", "file": "spec/fixtures/group.thor", "symbol": "", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 13: counter = words.first.length", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 29: expect(Thor::LineEditor).to receive(:readline).with(\"Is this green? [Yes, No, Maybe] \", anything).and_return(\"Yes\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 4: require \"thor/rake_compat\"", "file": "Thorfile", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 16: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 179: expect(capture(:stdout) { Thor::Runner.start }).to eq(\"command\\n\")", "file": "spec/runner_spec.rb", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 38: instance_eval do", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 295: describe \"#from_superclass\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 295, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 30: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 199: desc \"paint [COLOR]\", \"paint the barn\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 6: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 50: # Holds the shell for the given Thor instance. If no shell is given,", "file": "lib/thor/shell.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 287: expect(MyChildScript.commands.keys).not_to include(\"boom\")", "file": "spec/base_spec.rb", "symbol": "", "line": 287, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 20: @desc ||= from_superclass(:desc, nil)", "file": "lib/thor/group.rb", "symbol": "", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nLine 6: ruby_lib= ENV[\"RUBYLIB\"].nil? ? lib_path : \"#{lib_path}:#{ENV['RUBYLIB']}\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "親クラスから値を取得して、必要に応じてコピーを返す処理はどこにありますか?", "query": "superclass dup TypeError", "file": "lib/thor/base.rb", "symbol": "from_superclass", "line": 750, "lang": "ja", "candidates": [{"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "親クラスから値を取得して、必要に応じてコピーを返す処理はどこにありますか?", "query": "superclass dup TypeError", "file": "lib/thor/base.rb", "symbol": "from_superclass", "line": 750, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "親クラスから値を取得して、必要に応じてコピーを返す処理はどこにありますか?", "query": "superclass dup TypeError", "file": "lib/thor/base.rb", "symbol": "from_superclass", "line": 750, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/base.rb lines=750-773\nread from_superclass for detail", "file": "lib/thor/base.rb", "symbol": "from_superclass", "line": 750, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=360-383\nread answer_match for detail", "file": "lib/thor/shell/basic.rb", "symbol": "answer_match", "line": 360, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=686-709\nread tree for detail", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=257-280\nread one_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "one_arg", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=61-84\nread world for detail", "file": "spec/fixtures/group.thor", "symbol": "world", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=81-104\nread call_unexistent_method for detail", "file": "spec/fixtures/script.thor", "symbol": "call_unexistent_method", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=11-34\nread build for detail", "file": "Thorfile", "symbol": "build", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/command_spec.rb lines=4-27\nread command for detail", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=552-575\nread baseclass for detail", "file": "lib/thor.rb", "symbol": "baseclass", "line": 552, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=104-127\nread F for detail", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=10-33\nread create_file for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=84-107\nread current_is_value? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=43-66\nread indent for detail", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "CLI 도구를 만들고 있는데, 현재 실행 중인 프로그램의 이름을 가져오는 로직이 어디에 있는지 궁금해요. 실행 파일의 경로에서 파일명만 추출하는 코드를 찾아줄 수 있나요?", "query": "program basename", "file": "lib/thor/base.rb", "symbol": "basename", "line": 772, "lang": "ko", "candidates": [{"text": "File: spec/register_spec.rb\nLine 206: help_output = capture(:stdout) { BoringVendorProvidedCLI.start(%w(help)) }", "file": "spec/register_spec.rb", "symbol": "", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 772: def basename", "file": "lib/thor/base.rb", "symbol": "basename", "line": 772, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/exit_status.thor\nLine 14: def ok", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 313: def show_diff(destination, content) #:nodoc:", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 1: $LOAD_PATH.unshift File.expand_path(\"../lib\", __FILE__)", "file": "Thorfile", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 118: parse(\"--bar\", \"baz\", \"--baz\", \"unknown\")", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 96: File.basename(source)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 96, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nLine 14: def z; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 91: basename = File.basename(name)", "file": "lib/thor/runner.rb", "symbol": "", "line": 91, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nLine 16: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 18: when Hash", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 315: Tempfile.open(File.basename(destination), File.dirname(destination), binmode: true) do |temp|", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 315, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 1: # encoding: ISO-8859-7", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 255: desc = \"#{File.basename(config[:with].to_s)} #{desc}\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 255, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 548: \"#{basename} #{formatted_usage}\"", "file": "lib/thor.rb", "symbol": "", "line": 548, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 311: end", "file": "spec/base_spec.rb", "symbol": "", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 226: # path:: path of the file to be changed", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 226, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 36: it \"returns usage for string types\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 170: it \"uses just the source basename as destination if none is specified\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 170, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 46: constant", "file": "lib/thor/util.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 441: | | #0 | empty |", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 441, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 99: def aliases_for_usage", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 5: def boring", "file": "spec/register_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "CLI 도구를 만들고 있는데, 현재 실행 중인 프로그램의 이름을 가져오는 로직이 어디에 있는지 궁금해요. 실행 파일의 경로에서 파일명만 추출하는 코드를 찾아줄 수 있나요?", "query": "program basename", "file": "lib/thor/base.rb", "symbol": "basename", "line": 772, "lang": "ko", "candidates": [{"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "CLI 도구를 만들고 있는데, 현재 실행 중인 프로그램의 이름을 가져오는 로직이 어디에 있는지 궁금해요. 실행 파일의 경로에서 파일명만 추출하는 코드를 찾아줄 수 있나요?", "query": "program basename", "file": "lib/thor/base.rb", "symbol": "basename", "line": 772, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "CLI 도구를 만들고 있는데, 현재 실행 중인 프로그램의 이름을 가져오는 로직이 어디에 있는지 궁금해요. 실행 파일의 경로에서 파일명만 추출하는 코드를 찾아줄 수 있나요?", "query": "program basename", "file": "lib/thor/base.rb", "symbol": "basename", "line": 772, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=249-272\nread banner for detail", "file": "lib/thor/group.rb", "symbol": "banner", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=772-795\nread basename for detail", "file": "lib/thor/base.rb", "symbol": "basename", "line": 772, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=473-496\nread stop_on_unknown_option for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option", "line": 473, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=153-176\nread _retrieve_class_and_command for detail", "file": "lib/thor/invocation.rb", "symbol": "_retrieve_class_and_command", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=91-114\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=43-66\nread show_default? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "show_default?", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=160-183\nread dasherized? for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherized?", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=43-66\nread ClassOptionGroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "ClassOptionGroupPlugin", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=613-636\nread normalize_command_name for detail", "file": "lib/thor.rb", "symbol": "normalize_command_name", "line": 613, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=350-373\nread check_unknown_options! for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options!", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=48-71\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=100-123\nread private_method? for detail", "file": "lib/thor/command.rb", "symbol": "private_method?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=244-267\nread normalize_switch for detail", "file": "lib/thor/parser/options.rb", "symbol": "normalize_switch", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=113-136\nread invoke_with_conflict_check for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke_with_conflict_check", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=138-161\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "빌드 관련 태스크를 실행하는 메서드가 어디에 정의되어 있어?", "query": "Rake::Task execute", "file": "Thorfile", "symbol": "build", "line": 11, "lang": "ko", "candidates": [{"text": "File: spec/group_spec.rb\nLine 103: end", "file": "spec/group_spec.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 6: def show_diff(destination, content) #:nodoc:", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 26: #", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 25: action CreateFile.new(self, destination, block || data.to_s, config)", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 42: task = super", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 69: def initialize(error)", "file": "lib/thor/error.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 87: elsif colors.all? { |color| color.is_a?(Symbol) || color.is_a?(String) }", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 277: it \"prints boolean with true default value\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 7: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 66: class InjectIntoFile < EmptyDirectory #:nodoc:", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 7: def initialize(name, options = {})", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 73: invoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 14: else", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 153: expect(File).to receive(:expand_path).with(\"~\").and_raise(RuntimeError)", "file": "spec/util_spec.rb", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 96: # say(\"I know you knew that.\")", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 83: let(:config) { {verbose: false} }", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 44: next if filename =~ exempt", "file": "spec/quality_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 81: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 728: child = Class.new(Thor)", "file": "spec/thor_spec.rb", "symbol": "", "line": 728, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 11: def build", "file": "Thorfile", "symbol": "build", "line": 11, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/group_spec.rb\nLine 232: expect(klass.start(%w(jose --loud))).to eq([\"Hi JOSE\"])", "file": "spec/group_spec.rb", "symbol": "", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 5: require 'thor'", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 211: #", "file": "lib/thor/actions.rb", "symbol": "", "line": 211, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "빌드 관련 태스크를 실행하는 메서드가 어디에 정의되어 있어?", "query": "Rake::Task execute", "file": "Thorfile", "symbol": "build", "line": 11, "lang": "ko", "candidates": [{"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\ndefines build", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "빌드 관련 태스크를 실행하는 메서드가 어디에 정의되어 있어?", "query": "Rake::Task execute", "file": "Thorfile", "symbol": "build", "line": 11, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "빌드 관련 태스크를 실행하는 메서드가 어디에 정의되어 있어?", "query": "Rake::Task execute", "file": "Thorfile", "symbol": "build", "line": 11, "lang": "ko", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=43-66\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=9-32\nread HTML for detail", "file": "lib/thor/shell/html.rb", "symbol": "HTML", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=21-44\nread release for detail", "file": "Thorfile", "symbol": "release", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=47-70\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=16-39\nread install for detail", "file": "Thorfile", "symbol": "install", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=73-96\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=289-312\nread display_klasses for detail", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=26-49\nread spec for detail", "file": "Thorfile", "symbol": "spec", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=110-133\nread G for detail", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=11-34\nread build for detail", "file": "Thorfile", "symbol": "build", "line": 11, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=286-309\nread is? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "is?", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=41-64\nread task for detail", "file": "lib/thor/rake_compat.rb", "symbol": "task", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=20-43\nread RakeCompat for detail", "file": "lib/thor/rake_compat.rb", "symbol": "RakeCompat", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=5-28\nread LineEditor for detail", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=56-79\nread exists? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=25-48\nread silence! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "silence!", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=6-29\nread Default for detail", "file": "Thorfile", "symbol": "Default", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=371-394\nread capture for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "capture", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=57-80\nread merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Quiero ver la lógica que decide si el argumento debe mostrarse como requerido o en corchetes dentro de la descripción de uso. Necesito entender cómo se construye la cadena de salida para la ayuda.", "query": "argument usage format", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lang": "es", "candidates": [{"text": "File: spec/quality_spec.rb\nLine 49: expect(error_messages.compact).to be_well_formed", "file": "spec/quality_spec.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 9: module Actions", "file": "lib/thor/actions.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 14: # Thor::Error is raised when it's caused by wrong usage of thor classes. Those", "file": "lib/thor/error.rb", "symbol": "", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 8: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 35: def usage", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/base_spec.rb\nLine 176: it \"shows usage with banner content\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 176, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nLine 183: expect(output).to include(\"subcommand with argument\")", "file": "spec/register_spec.rb", "symbol": "", "line": 183, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 585: it \"injects class arguments into default usage\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 585, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 5: class ColumnPrinter", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 111: @action.base.extend Module.new {", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 13: let(:options) { {} }", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 113: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 66: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 158: it \"includes the plugin's usage in the help\" do", "file": "spec/register_spec.rb", "symbol": "", "line": 158, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nLine 35: describe \"#usage\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 13: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 21: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 304: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 6: attr_writer :shell", "file": "lib/thor/shell.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 163: alias_method :_retrieve_class_and_task, :_retrieve_class_and_command", "file": "lib/thor/invocation.rb", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 44: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 5: SOME_STRING = \"Some λέξεις 一些词 🎉\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 22: def get_input", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 35: # usage:: Short usage for the subcommand", "file": "lib/thor.rb", "symbol": "", "line": 35, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Quiero ver la lógica que decide si el argumento debe mostrarse como requerido o en corchetes dentro de la descripción de uso. Necesito entender cómo se construye la cadena de salida para la ayuda.", "query": "argument usage format", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lang": "es", "candidates": [{"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\ndefines usage", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Quiero ver la lógica que decide si el argumento debe mostrarse como requerido o en corchetes dentro de la descripción de uso. Necesito entender cómo se construye la cadena de salida para la ayuda.", "query": "argument usage format", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Quiero ver la lógica que decide si el argumento debe mostrarse como requerido o en corchetes dentro de la descripción de uso. Necesito entender cómo se construye la cadena de salida para la ayuda.", "query": "argument usage format", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lang": "es", "candidates": [{"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=2-25\nread Argument for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=322-345\nread quiet? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=7-30\nread print for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=39-62\nread required? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "required?", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=286-309\nread is? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "is?", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=880-903\nread no_arg for detail", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=147-170\nread replacement_present? for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=248-271\nread run for detail", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=185-208\nread Barn for detail", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/invoke.thor lines=67-90\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=130-153\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=138-161\nread potentially_ambiguous_but_hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous_but_hidden", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=45-68\nread key? for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "key?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=273-296\nread lookup_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "lookup_color", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=153-176\nread _retrieve_class_and_command for detail", "file": "lib/thor/invocation.rb", "symbol": "_retrieve_class_and_command", "line": 153, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "implementa un método sin argumentos", "query": "no arg method", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lang": "es", "candidates": [{"text": "File: spec/register_spec.rb\nLine 111: hide: true", "file": "spec/register_spec.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 32: CYAN = \"\\e[36m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 75: def execute!", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 267: else", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 267, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 33: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 13: else", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 231: return", "file": "lib/thor/group.rb", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 159: # Do something in the root or on a provided subfolder. If a relative path", "file": "lib/thor/actions.rb", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 130: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 32: def echo?", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 42: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 255: it \"properly wraps the text around the 80th column\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 255, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 346: allow(MyCounter).to receive(:exit_on_failure?).and_return(true)", "file": "spec/actions_spec.rb", "symbol": "", "line": 346, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 55: # on Highline implementation and it automatically appends CLEAR to the end", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 13: desc \"ok\", \"exit with no error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 880: def no_arg", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor.rb\nLine 6: def self.readline(prompt, options = {})", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 1: class Thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 52: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 16: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 19: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 5: class_option \"fruit\", :aliases => \"-f\", :type => :string, :enum => %w(apple banana)", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 37: # the destination is not given it's assumed to be equal to the source.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 43: it \"uses rake tasks descriptions on thor\" do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "implementa un método sin argumentos", "query": "no arg method", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lang": "es", "candidates": [{"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\ndefines no_arg", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nsibling in spec", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nsibling in spec", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nsibling in spec", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "implementa un método sin argumentos", "query": "no arg method", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lang": "es", "candidates": [{"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "implementa un método sin argumentos", "query": "no arg method", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lang": "es", "candidates": [{"text": "Next: read lib/thor/actions/file_manipulation.rb lines=314-337\nread uncomment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "uncomment_lines", "line": 314, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=72-95\nread format_cell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "format_cell", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=47-70\nread SubcommandTest1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "SubcommandTest1", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=27-50\nread included for detail", "file": "lib/thor/rake_compat.rb", "symbol": "included", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=43-66\nread indent for detail", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=78-101\nread glob_pattern for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "glob_pattern", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=105-128\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 105, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=177-200\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 177, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/html.rb lines=73-96\nread ask for detail", "file": "lib/thor/shell/html.rb", "symbol": "ask", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=155-178\nread attr_reader for detail", "file": "lib/thor/base.rb", "symbol": "attr_reader", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=424-447\nread stop_on_unknown_option? for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=95-118\nread RequiredArgumentMissingError for detail", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=57-80\nread merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=69-92\nread initialize for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=880-903\nread no_arg for detail", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "Où est la logique qui enregistre la classe et le fichier source lors de l'héritage de Thor ?", "query": "class registration tracking", "file": "lib/thor/base.rb", "symbol": "register_klass_file", "line": 145, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/subcommand.thor\nLine 7: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 23: #", "file": "lib/thor/util.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 82: expect(command.run(klass.new)).to eq(\"can_has\")", "file": "spec/command_spec.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 5: # available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 28: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 11: expect(base.shell).to eq(shell)", "file": "spec/shell_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 186: expect(Thor::Util.thor_root_glob).to eq([])", "file": "spec/util_spec.rb", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 351: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 120: expect(@content).to match(/1\\n2\\n3\\n4\\n5\\n/)", "file": "spec/group_spec.rb", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 602: expect(content).to match(/Required At Least One:\\n\\s+--three\\s+--four\\n/)", "file": "spec/thor_spec.rb", "symbol": "", "line": 602, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 4: class Thor", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 145: def register_klass_file(klass) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "register_klass_file", "line": 145, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 13: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 8: desc \"describe NAME\", \"say that someone is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 188: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 8: def encoding", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 25: def pop", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 17: DEFAULT_TERMINAL_WIDTH", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 400: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 400, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 84: end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 271: @klass = \"FooBar\"", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 14: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 400: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 400, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 23: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Où est la logique qui enregistre la classe et le fichier source lors de l'héritage de Thor ?", "query": "class registration tracking", "file": "lib/thor/base.rb", "symbol": "register_klass_file", "line": 145, "lang": "fr", "candidates": [{"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Où est la logique qui enregistre la classe et le fichier source lors de l'héritage de Thor ?", "query": "class registration tracking", "file": "lib/thor/base.rb", "symbol": "register_klass_file", "line": 145, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Où est la logique qui enregistre la classe et le fichier source lors de l'héritage de Thor ?", "query": "class registration tracking", "file": "lib/thor/base.rb", "symbol": "register_klass_file", "line": 145, "lang": "fr", "candidates": [{"text": "Next: read lib/thor.rb lines=661-684\nread sort_commands! for detail", "file": "lib/thor.rb", "symbol": "sort_commands!", "line": 661, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=274-297\nread parse_peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_peek", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=58-81\nread namespaces_in_content for detail", "file": "lib/thor/util.rb", "symbol": "namespaces_in_content", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=138-161\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=145-168\nread register_klass_file for detail", "file": "lib/thor/base.rb", "symbol": "register_klass_file", "line": 145, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=8-31\nread action for detail", "file": "spec/actions_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=73-96\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=58-81\nread initialize for detail", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=9-32\nread option for detail", "file": "spec/parser/option_spec.rb", "symbol": "option", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=367-390\nread concat for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "concat", "line": 367, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=77-100\nread BrokenCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "BrokenCounter", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=350-373\nread check_unknown_options! for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options!", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=24-47\nread remaining for detail", "file": "spec/parser/options_spec.rb", "symbol": "remaining", "line": 24, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "引数パーサーで未処理の引数を取得する方法は?", "query": "remaining arguments", "file": "lib/thor/parser/arguments.rb", "symbol": "remaining", "line": 53, "lang": "ja", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nLine 53: def remaining", "file": "lib/thor/parser/arguments.rb", "symbol": "remaining", "line": 53, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell.rb\nLine 16: else", "file": "lib/thor/shell.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 13: p 2", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 24: def remaining", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 36: expect(command({bar: :required}, [\"can_has FOO\", \"can_has BAR\"]).formatted_usage(object, false)).to eq(\"can_has FOO --bar=BAR\\ncan_has BAR --bar=BAR\")", "file": "spec/command_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 384: # argument is encountered. All remaining arguments are passed to the command.", "file": "lib/thor.rb", "symbol": "", "line": 384, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 56: attr_reader :source", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 1: class Thor", "file": "lib/thor/invocation.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 1: require_relative \"terminal\"", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 36: # Set the terminal's background HTML color to green.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 121: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 93: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 8: puts \"Invoked!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 110: it \"passes remaining args to command when it encounters a non-option\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 110, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nLine 124: expect(Thor::LineEditor).to receive(:readline).and_return(\"y\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 29: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 9: # it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 100: # remaining arguments looks like an option.", "file": "lib/thor/base.rb", "symbol": "", "line": 100, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 226: out << \": \" << args.join(\", \") unless args.empty?", "file": "spec/group_spec.rb", "symbol": "", "line": 226, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 61: def remaining", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 6: def load_thorfile(filename)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 7: include Thor::RakeCompat", "file": "Thorfile", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "引数パーサーで未処理の引数を取得する方法は?", "query": "remaining arguments", "file": "lib/thor/parser/arguments.rb", "symbol": "remaining", "line": 53, "lang": "ja", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "引数パーサーで未処理の引数を取得する方法は?", "query": "remaining arguments", "file": "lib/thor/parser/arguments.rb", "symbol": "remaining", "line": 53, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/base.rb lines=730-753\nread method_added for detail", "file": "lib/thor/base.rb", "symbol": "method_added", "line": 730, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=24-47\nread remaining for detail", "file": "spec/parser/options_spec.rb", "symbol": "remaining", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=223-246\nread strict_args_position? for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position?", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=329-352\nread _cleanup_options_and_set for detail", "file": "lib/thor/actions.rb", "symbol": "_cleanup_options_and_set", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=26-49\nread squirrel for detail", "file": "spec/register_spec.rb", "symbol": "squirrel", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=12-35\nread define for detail", "file": "spec/rake_compat_spec.rb", "symbol": "define", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=120-143\nread I for detail", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=385-408\nread actually_gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "actually_gsub_file", "line": 385, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=123-146\nread say_status for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "say_status", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=265-288\nread optional_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "optional_arg", "line": 265, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=56-79\nread revoke! for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "revoke!", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=68-91\nread absolute_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "absolute_matches", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=53-76\nread remaining for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "remaining", "line": 53, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=32-55\nread echo? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "echo?", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=103-126\nread files for detail", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=347-370\nread ask_filtered for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_filtered", "line": 347, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Thor 그룹에서 옵션 값에 따라 특정 작업을 실행할지 여부를 결정하는 로직이 제대로 작동하지 않습니다. 옵션으로 전달된 불리언 값에 따라 내부 호출이 제어되어야 하는데, 이 동작이 의도한 대로 수행되는지 확인이 필요합니다.", "query": "thor invoke_from_option", "file": "spec/fixtures/invoke.thor", "symbol": "H", "line": 115, "lang": "ko", "candidates": [{"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 35: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 5: desc :bugs, \"ALL THE BUGZ!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 52: it \"uses double-quotes consistently in specs\" do", "file": "spec/quality_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 28: end", "file": "spec/group_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 61: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 72: expect(parse(\"--baz\", \"12\")[\"foo\"]).to eq(\"12\")", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 40: end", "file": "spec/register_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 55: if colors.all? { |color| color.is_a?(Symbol) || color.is_a?(String) }", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 1: require_relative \"line_editor/basic\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 115: class H < Thor::Group", "file": "spec/fixtures/invoke.thor", "symbol": "H", "line": 115, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/html_spec.rb\nLine 34: expect(shell.set_color(\"\", :blue)).to eq \"<htmlcontent>\"", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 18: capture(:stdout) { @action.revoke! }", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 27: def source_root(path = nil)", "file": "lib/thor/actions.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 2: require \"rake/dsl_definition\"", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 28: super(convert_key(key))", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 8: desc \"describe NAME\", \"say that someone is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 46: namespace = klass.namespace", "file": "lib/thor/command.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 221: allow(Thor::LineEditor).to receive(:readline).and_return(\"Y\")", "file": "spec/runner_spec.rb", "symbol": "", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 19: # Receives a namespace and search for it in the Thor::Base subclasses.", "file": "lib/thor/util.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 161: @content = capture(:stdout) { H.start }", "file": "spec/group_spec.rb", "symbol": "", "line": 161, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nLine 114: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 15: load_thorfile(\"encoding_other.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Thor 그룹에서 옵션 값에 따라 특정 작업을 실행할지 여부를 결정하는 로직이 제대로 작동하지 않습니다. 옵션으로 전달된 불리언 값에 따라 내부 호출이 제어되어야 하는데, 이 동작이 의도한 대로 수행되는지 확인이 필요합니다.", "query": "thor invoke_from_option", "file": "spec/fixtures/invoke.thor", "symbol": "H", "line": 115, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\ndefines H", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Thor 그룹에서 옵션 값에 따라 특정 작업을 실행할지 여부를 결정하는 로직이 제대로 작동하지 않습니다. 옵션으로 전달된 불리언 값에 따라 내부 호출이 제어되어야 하는데, 이 동작이 의도한 대로 수행되는지 확인이 필요합니다.", "query": "thor invoke_from_option", "file": "spec/fixtures/invoke.thor", "symbol": "H", "line": 115, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/runner.rb lines=276-299\nread thorfiles_relevant_to for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=127-150\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=420-443\nread stop_on_unknown_option! for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option!", "line": 420, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=41-64\nread slice for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "slice", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=207-230\nread file_collision for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=104-127\nread AtLeastOneRequiredArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "AtLeastOneRequiredArgumentError", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=4-27\nread Base for detail", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/subcommand.thor lines=3-26\nread Subcommand for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Subcommand", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=115-138\nread H for detail", "file": "spec/fixtures/invoke.thor", "symbol": "H", "line": 115, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/arguments.rb lines=64-87\nread last? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=143-166\nread content for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=177-200\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=27-50\nread revoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=313-336\nread show_diff for detail", "file": "lib/thor/shell/basic.rb", "symbol": "show_diff", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Wie findet diese Methode die passende Klasse und den Befehl basierend auf dem Namen?", "query": "find_class_and_command_by_namespace", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lang": "de", "candidates": [{"text": "File: spec/register_spec.rb\nLine 78: def say", "file": "spec/register_spec.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 202: it \"escapes ? * { } [ ] glob characters\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 105: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 469: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 72: options.empty? ? \"default command\" : options", "file": "spec/fixtures/script.thor", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 26: elsif public_method?(instance)", "file": "lib/thor/command.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 68: expect(Scripts::MyScript.commands[\"example_default_command\"]).not_to eq(MyChildScript.commands[\"example_default_command\"])", "file": "spec/thor_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 35: end", "file": "spec/group_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 187: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 103: filename: Digest::SHA256.hexdigest(name + as),", "file": "lib/thor/runner.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 199: # Check if the current value in peek is a registered switch.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 94: method = method.to_s", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 14: base.extend ClassMethods", "file": "lib/thor/actions.rb", "symbol": "", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 8: module ClassMethods", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nLine 10: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 72: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 24: expect(Thor::Util.find_by_namespace(\"app:broken:counter\")).to eq(BrokenCounter)", "file": "spec/util_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 147: )", "file": "spec/register_spec.rb", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 110: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 90: runner.destination_root = \"/app\"", "file": "spec/actions_spec.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 119: base.extend ClassMethods", "file": "lib/thor/base.rb", "symbol": "", "line": 119, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_link_spec.rb\nLine 35: def revoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 159: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Wie findet diese Methode die passende Klasse und den Befehl basierend auf dem Namen?", "query": "find_class_and_command_by_namespace", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lang": "de", "candidates": [{"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Wie findet diese Methode die passende Klasse und den Befehl basierend auf dem Namen?", "query": "find_class_and_command_by_namespace", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lang": "de", "candidates": [{"text": "Next: read lib/thor/actions/empty_directory.rb lines=49-72\nread invoke! for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke!", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=225-248\nread initialize_thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "initialize_thorfiles", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=333-356\nread at_least_one for detail", "file": "spec/fixtures/script.thor", "symbol": "at_least_one", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoker", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=85-108\nread SubcommandWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "SubcommandWithDefault", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=153-176\nread what for detail", "file": "spec/fixtures/script.thor", "symbol": "what", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=192-215\nread append_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "append_to_file", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=482-505\nread print_exclusive_options for detail", "file": "lib/thor.rb", "symbol": "print_exclusive_options", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/invoke.thor lines=43-66\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=43-66\nread indent for detail", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=157-180\nread MyChildScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyChildScript", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=20-43\nread RakeCompat for detail", "file": "lib/thor/rake_compat.rb", "symbol": "RakeCompat", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=5-28\nread LineEditor for detail", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Estoy intentando entender cómo se gestionan las rutas de destino cuando se ejecutan comandos repetidamente. ¿Podrías mostrarme dónde se asegura que la raíz de destino se mantenga constante entre las diferentes llamadas?", "query": "destination_root merge", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lang": "es", "candidates": [{"text": "File: spec/parser/option_spec.rb\nLine 114: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 36: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 29: it \"executes the command given\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 206: yaml_file = File.join(thor_root, \"thor.yml\")", "file": "lib/thor/runner.rb", "symbol": "", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 90: respond_to?(:fail)", "file": "spec/fixtures/group.thor", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 145: def _shared_configuration #:nodoc:", "file": "lib/thor/invocation.rb", "symbol": "", "line": 145, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nLine 136: expect(Thor::LineEditor).to receive(:readline).and_return(\"d\", \"n\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 178: !!check_unknown_options", "file": "lib/thor/base.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 64: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 77: def _shared_configuration #:nodoc:", "file": "lib/thor/shell.rb", "symbol": "", "line": 77, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nLine 101: class ExclusiveArgumentError < InvocationError", "file": "lib/thor/error.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 328: action :remove_file, \"doc/README\"", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 53: given_destination", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 72: it \"does not create a link\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 125: end", "file": "spec/util_spec.rb", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 1: # frozen_string_literal: true", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 106: BoringVendorProvidedCLI.register(", "file": "spec/register_spec.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 102: end", "file": "lib/thor/error.rb", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 14: #", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 14: #", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 18: def subcommand1", "file": "spec/tree_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 325: def _shared_configuration #:nodoc:", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 9: def initialize(stdout, options = {})", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 6: attr_reader :stdout, :options", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estoy intentando entender cómo se gestionan las rutas de destino cuando se ejecutan comandos repetidamente. ¿Podrías mostrarme dónde se asegura que la raíz de destino se mantenga constante entre las diferentes llamadas?", "query": "destination_root merge", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lang": "es", "candidates": [{"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Estoy intentando entender cómo se gestionan las rutas de destino cuando se ejecutan comandos repetidamente. ¿Podrías mostrarme dónde se asegura que la raíz de destino se mantenga constante entre las diferentes llamadas?", "query": "destination_root merge", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lang": "es", "candidates": [{"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/inject_into_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/empty_directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/file_manipulation", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> revoke", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estoy intentando entender cómo se gestionan las rutas de destino cuando se ejecutan comandos repetidamente. ¿Podrías mostrarme dónde se asegura que la raíz de destino se mantenga constante entre las diferentes llamadas?", "query": "destination_root merge", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lang": "es", "candidates": [{"text": "Next: read lib/thor/parser/options.rb lines=274-297\nread parse_peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_peek", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=108-131\nread long_description_unwrapped for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description_unwrapped", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=33-56\nread part_one for detail", "file": "spec/register_spec.rb", "symbol": "part_one", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=493-516\nread print_at_least_one_required_options for detail", "file": "lib/thor.rb", "symbol": "print_at_least_one_required_options", "line": 493, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=10-33\nread create_file for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=583-606\nread start for detail", "file": "lib/thor/base.rb", "symbol": "start", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/verbose.thor lines=8-31\nread exit_on_failure? for detail", "file": "spec/fixtures/verbose.thor", "symbol": "exit_on_failure?", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=325-348\nread _shared_configuration for detail", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=262-285\nread argument for detail", "file": "lib/thor/base.rb", "symbol": "argument", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=472-495\nread commands for detail", "file": "lib/thor/base.rb", "symbol": "commands", "line": 472, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=797-820\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 797, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=143-166\nread content for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/enum.thor lines=1-24\nread Enum for detail", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=210-233\nread Scripts for detail", "file": "spec/fixtures/script.thor", "symbol": "Scripts", "line": 210, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "我想看看在处理命令行参数时,有没有逻辑是在读取下一个选项前先做预检,尤其是当遇到结束标记时会如何切换状态。请帮我找一下这段处理解析状态切换的代码。", "query": "parsing options end", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lang": "zh", "candidates": [{"text": "File: lib/thor/shell/html.rb\nLine 20: GREEN = \"color: green\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 123: \"more content\\n\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 56: end", "file": "spec/util_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 44: break unless peek", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 245: end", "file": "lib/thor/group.rb", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 10: raise Thor::Error.new(\"planned error\")", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 21: def push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 23: # It will create a doc directory in the destination with the following", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 63: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 31: #", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 185: expect(File.exist?(File.join(destination_root, \"app{1}\", \"README\"))).to be false", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 133: def invoke_all #:nodoc:", "file": "lib/thor/invocation.rb", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 398: class CapturableERB < ERB", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 22: @depth += 1", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 16: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 338: end", "file": "lib/thor/actions.rb", "symbol": "", "line": 338, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 63: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 77: def to_hash", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 227: # module_name:: the module to be manipulated", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 65: def peek", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 114: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 36: # ==== Parameters", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 201: expect(capture(:stderr) do", "file": "spec/thor_spec.rb", "symbol": "", "line": 201, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "我想看看在处理命令行参数时,有没有逻辑是在读取下一个选项前先做预检,尤其是当遇到结束标记时会如何切换状态。请帮我找一下这段处理解析状态切换的代码。", "query": "parsing options end", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "我想看看在处理命令行参数时,有没有逻辑是在读取下一个选项前先做预检,尤其是当遇到结束标记时会如何切换状态。请帮我找一下这段处理解析状态切换的代码。", "query": "parsing options end", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=62-85\nread InvocationError for detail", "file": "lib/thor/error.rb", "symbol": "InvocationError", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=111-134\nread group for detail", "file": "spec/fixtures/group.thor", "symbol": "group", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=153-176\nread what for detail", "file": "spec/fixtures/script.thor", "symbol": "what", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=59-82\nread no_or_skip? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=76-99\nread unshift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "unshift", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=83-106\nread usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "usage", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=117-140\nread with_optional for detail", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=65-88\nread peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/register_spec.rb lines=22-45\nread SuperSecretPlugin for detail", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/verbose.thor lines=7-30\nread Test for detail", "file": "spec/fixtures/verbose.thor", "symbol": "Test", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=191-214\nread open for detail", "file": "spec/fixtures/script.thor", "symbol": "open", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=21-44\nread check_for_extra_spaces for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=64-87\nread last? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=314-337\nread uncomment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "uncomment_lines", "line": 314, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "separa los argumentos posicionales de las marcas en un array de strings", "query": "split arguments switches", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lang": "es", "candidates": [{"text": "File: lib/thor/actions/file_manipulation.rb\nLine 378: self.output_buffer = buf", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 378, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 168: ARGV.replace %w(list)", "file": "spec/runner_spec.rb", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 51: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 314: args.unshift(command)", "file": "lib/thor/actions.rb", "symbol": "", "line": 314, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 3: class Thor", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nLine 3: describe Thor::Shell::HTML do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 749: end).to be_empty", "file": "spec/thor_spec.rb", "symbol": "", "line": 749, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 4: describe Thor::Option do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\nLine 71: end", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 52: Rake.application.last_description = nil", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 58: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 77: def _shared_configuration #:nodoc:", "file": "lib/thor/shell.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 107: end", "file": "lib/thor/command.rb", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 1: class Thor", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/script_exit_status_spec.rb\nLine 1: describe \"when the Thor class's exit_with_failure? method returns true\" do", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 12: words = unwrapped.split(\" \")", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 8: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 3: class ExitStatus < Thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 30: Thor::Base.shell = nil", "file": "spec/shell_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 3: class BoringVendorProvidedCLI < Thor", "file": "spec/register_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 69: #", "file": "lib/thor/invocation.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 52: it \"uses double-quotes consistently in specs\" do", "file": "spec/quality_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 8: def encoding", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "separa los argumentos posicionales de las marcas en un array de strings", "query": "split arguments switches", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lang": "es", "candidates": [{"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "separa los argumentos posicionales de las marcas en un array de strings", "query": "split arguments switches", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lang": "es", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=40-63\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=321-344\nread show_modules for detail", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=69-92\nread initialize for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=112-135\nread are_colors_disabled? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_disabled?", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=156-179\nread no? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "no?", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=156-179\nread check_at_least_one! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_at_least_one!", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=144-167\nread check_exclusive! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_exclusive!", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=234-257\nread switch_option for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch_option", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=25-48\nread silence! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "silence!", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=107-130\nread show_default? for detail", "file": "lib/thor/parser/option.rb", "symbol": "show_default?", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=174-197\nread list for detail", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=43-66\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=123-146\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=192-215\nread thor_root for detail", "file": "lib/thor/util.rb", "symbol": "thor_root", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=22-45\nread SuperSecretPlugin for detail", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=592-615\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "mostra a implementação da classe que adiciona suporte a cores ansi ao terminal", "query": "ansi color shell", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lang": "pt", "candidates": [{"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 5: module Shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nLine 121: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 4: def shell", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 55: )", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 90: def snake_case(str)", "file": "lib/thor/util.rb", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 7: module Shell", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_file_spec.rb\nLine 79: describe \"and is identical\" do", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 2: require_relative \"line_editor/readline\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 113: it \"does not copy .empty_directory files\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 101: end", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 2: module Shell", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nLine 41: error_messages = []", "file": "spec/quality_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 85: #", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 3: describe Thor::Shell::HTML do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 151: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 8: puts \"Invoked!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 97: !!self[$1]", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 3: describe Thor::Shell::Color do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 5: module Shell", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nLine 65: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 416: action :gsub_file!, \"doc/README\", \"__start__\", \"START\", force: true", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 416, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 67: shell.padding += 1", "file": "lib/thor/shell.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 4: describe Thor::Shell::Basic do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 15: load_thorfile(\"encoding_other.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "mostra a implementação da classe que adiciona suporte a cores ansi ao terminal", "query": "ansi color shell", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lang": "pt", "candidates": [{"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "mostra a implementação da classe que adiciona suporte a cores ansi ao terminal", "query": "ansi color shell", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "mostra a implementação da classe que adiciona suporte a cores ansi ao terminal", "query": "ansi color shell", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lang": "pt", "candidates": [{"text": "Next: read spec/fixtures/group.thor lines=98-121\nread WhinyGenerator for detail", "file": "spec/fixtures/group.thor", "symbol": "WhinyGenerator", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=138-161\nread subclass_files for detail", "file": "lib/thor/base.rb", "symbol": "subclass_files", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=589-612\nread defined_in_gem? for detail", "file": "lib/thor.rb", "symbol": "defined_in_gem?", "line": 589, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=108-131\nread are_colors_supported? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=69-92\nread initialize for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=50-73\nread PathCompletion for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "PathCompletion", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=93-116\nread method_missing for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "method_missing", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=325-348\nread subcommand_classes for detail", "file": "lib/thor.rb", "symbol": "subcommand_classes", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=114-137\nread relative_to_original_destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "relative_to_original_destination_root", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=10-33\nread describe for detail", "file": "spec/fixtures/command.thor", "symbol": "describe", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=560-583\nread create_command for detail", "file": "lib/thor.rb", "symbol": "create_command", "line": 560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=128-151\nread send for detail", "file": "spec/fixtures/script.thor", "symbol": "send", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=6-29\nread Thor for detail", "file": "lib/thor/shell/color.rb", "symbol": "Thor", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=32-55\nread completion_proc for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_proc", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=104-127\nread can_display_colors? for detail", "file": "lib/thor/shell/color.rb", "symbol": "can_display_colors?", "line": 104, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I'm trying to figure out how the command line interface handles standard output. Where is the method that returns the global standard output stream?", "query": "global stdout", "file": "lib/thor/shell/basic.rb", "symbol": "stdout", "line": 278, "lang": "en", "candidates": [{"text": "File: spec/fixtures/encoding_other.thor\nLine 12: puts \"ok\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 374: create foo: Thor::Option.new(\"foo\", type: :string, repeatable: true, required: false, default: [])", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 374, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 82: expect(parse(\"-f\", \"12\")).to eq(\"bar\" => \"12\")", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 9: capture(:stdout) { runner.send(*args, &block) }", "file": "spec/actions_spec.rb", "symbol": "", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 161: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 115: GroupPlugin,", "file": "spec/register_spec.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 21: create string: nil, numeric: nil", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 38: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/Another top level command/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 40: # Set the terminal's background ANSI color to green.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 14: capture(:stdout) { @action.invoke! }", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nLine 81: end", "file": "lib/thor/error.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 58: else", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 191: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 12: expect(capture(:stdout) { Thor::Sandbox::EncodingWithUtf8.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nLine 17: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 278: def stdout", "file": "lib/thor/shell/basic.rb", "symbol": "stdout", "line": 278, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 35: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 269: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 64: @content = capture(:stdout) { MyCounter.help(Thor::Base.shell.new) }", "file": "spec/group_spec.rb", "symbol": "", "line": 64, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nLine 18: @content = capture(:stdout) { my_script.help(shell) }", "file": "spec/sort_spec.rb", "symbol": "", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 82: # If force is true, run the action, otherwise check if it's not being", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 4: def shell", "file": "spec/shell_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 6: attr_reader :stdout, :options", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 6, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm trying to figure out how the command line interface handles standard output. Where is the method that returns the global standard output stream?", "query": "global stdout", "file": "lib/thor/shell/basic.rb", "symbol": "stdout", "line": 278, "lang": "en", "candidates": [{"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "I'm trying to figure out how the command line interface handles standard output. Where is the method that returns the global standard output stream?", "query": "global stdout", "file": "lib/thor/shell/basic.rb", "symbol": "stdout", "line": 278, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm trying to figure out how the command line interface handles standard output. Where is the method that returns the global standard output stream?", "query": "global stdout", "file": "lib/thor/shell/basic.rb", "symbol": "stdout", "line": 278, "lang": "en", "candidates": [{"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=113-136\nread invoke_with_conflict_check for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke_with_conflict_check", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=77-100\nread to_hash for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "to_hash", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=23-46\nread revoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoke!", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=28-51\nread ThorTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "ThorTask", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=583-606\nread start for detail", "file": "lib/thor/base.rb", "symbol": "start", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=203-226\nread thor_root_glob for detail", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=96-119\nread name_with_dashes for detail", "file": "spec/fixtures/script.thor", "symbol": "name_with_dashes", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=21-44\nread revoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=35-58\nread dynamic_width_tput for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_tput", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=111-134\nread group for detail", "file": "spec/fixtures/group.thor", "symbol": "group", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=278-301\nread stdout for detail", "file": "lib/thor/shell/basic.rb", "symbol": "stdout", "line": 278, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=179-202\nread names_to_switch_names for detail", "file": "lib/thor/parser/options.rb", "symbol": "names_to_switch_names", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=438-461\nread disable_required_check? for detail", "file": "lib/thor.rb", "symbol": "disable_required_check?", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=261-284\nread two_args for detail", "file": "spec/fixtures/script.thor", "symbol": "two_args", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=541-564\nread no_commands? for detail", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Como funciona a lógica que recupera e mescla os argumentos, opções e configurações iniciais a partir do estado armazenado?", "query": "parse initialization options", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lang": "pt", "candidates": [{"text": "File: lib/thor/shell/color.rb\nLine 3: require_relative \"basic\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 128: expect(MyCounter.start(%w(1 2 -y 3))[5]).to eq(3)", "file": "spec/base_spec.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 80: # true if running on windows, used for conditional spec skips", "file": "spec/helper.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 28: @dynamic_width ||= (dynamic_width_stty.nonzero? || dynamic_width_tput)", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 45: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 214: describe \"#file_collision\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 214, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 620: do some fooing", "file": "spec/thor_spec.rb", "symbol": "", "line": 620, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 196: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 212: # inject_into_class \"app/controllers/application_controller.rb\", \"ApplicationController\" do", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 212, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 3: module Terminal", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 203: def current_is_switch?", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 85: #", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 71: # Now on conflict we check if the file is identical or not.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 11: puts \"ok\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 159: $stderr.puts(\"WARNING: unable to load thorfile #{path.inspect}: #{e.message}\")", "file": "lib/thor/util.rb", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 31: @default", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 126: )", "file": "spec/register_spec.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 49: # Given the contents, evaluate it inside the sandbox and returns the", "file": "lib/thor/util.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 62: formatted_specific_usage.strip", "file": "lib/thor/command.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 166: def _parse_initialization_options(args, opts, config) #:nodoc:", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor.rb\nLine 1: require_relative \"line_editor/basic\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 34: expect(shell.set_color(\"\", :blue)).to eq \"<htmlcontent>\"", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Como funciona a lógica que recupera e mescla os argumentos, opções e configurações iniciais a partir do estado armazenado?", "query": "parse initialization options", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lang": "pt", "candidates": [{"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Como funciona a lógica que recupera e mescla os argumentos, opções e configurações iniciais a partir do estado armazenado?", "query": "parse initialization options", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=131-154\nread find_class_and_command_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_class_and_command_by_namespace", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/base_spec.rb lines=4-27\nread Amazing for detail", "file": "spec/base_spec.rb", "symbol": "Amazing", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=115-138\nread say_error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_error", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=329-352\nread subcommand for detail", "file": "lib/thor.rb", "symbol": "subcommand", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=83-106\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=235-258\nread command_conflict for detail", "file": "spec/fixtures/script.thor", "symbol": "command_conflict", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=147-170\nread replacement_present? for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/base_spec.rb lines=6-29\nread hello for detail", "file": "spec/base_spec.rb", "symbol": "hello", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=86-109\nread force_or_skip_or_conflict for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_or_skip_or_conflict", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=84-107\nread current_is_value? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=179-202\nread boom for detail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=166-189\nread _parse_initialization_options for detail", "file": "lib/thor/invocation.rb", "symbol": "_parse_initialization_options", "line": 166, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/error.rb lines=32-55\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=200-223\nread in_root for detail", "file": "lib/thor/actions.rb", "symbol": "in_root", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=50-73\nread PluginInheritingFromClassOptionsGroup for detail", "file": "spec/register_spec.rb", "symbol": "PluginInheritingFromClassOptionsGroup", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "implémenter le suivi des invocations dans l'initialiseur", "query": "invocation tracking initializer", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lang": "fr", "candidates": [{"text": "File: spec/helper.rb\nLine 19: require \"rspec\"", "file": "spec/helper.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 236: runner.instance_variable_set(\"@klass\", \"Config\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 236, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 76: #", "file": "lib/thor/shell.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 78: say \"Your Thorfile contains:\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 8: end", "file": "spec/group_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 37: def diff_lcs_loaded? #:nodoc:", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 28: if @type == :array and @default.is_a?(Array)", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 273: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 10: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 22: it \"raises an error if argument is required and has default values\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 59: # new, passing in the two halves of the arguments Array as the", "file": "lib/thor/base.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 345: @table << [\"abc\", \"#123\", \"first three\"]", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 3: class Amazing < Thor", "file": "spec/fixtures/command.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 14: subcommand \"sub\", Subcommand", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 120: base.send :include, Invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 120, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 23: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 17: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 2: module Invocation", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_link_spec.rb\nLine 46: expect(File.exist?(destination_path)).to be true", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 1: # frozen_string_literal: true", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 20: it \"shows information about a specific Thor::Runner command\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 200: end", "file": "spec/register_spec.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 588: exit(false) if exit_on_failure?", "file": "lib/thor/base.rb", "symbol": "", "line": 588, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "implémenter le suivi des invocations dans l'initialiseur", "query": "invocation tracking initializer", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lang": "fr", "candidates": [{"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "implémenter le suivi des invocations dans l'initialiseur", "query": "invocation tracking initializer", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=92-115\nread long_description for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=709-732\nread find_and_refresh_command for detail", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=4-27\nread command for detail", "file": "spec/command_spec.rb", "symbol": "command", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=104-127\nread F for detail", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=61-84\nread namespace for detail", "file": "lib/thor/rake_compat.rb", "symbol": "namespace", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=184-207\nread check_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "check_default_type!", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=45-68\nread key? for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "key?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=56-79\nread exists? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=101-124\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=91-114\nread required_options for detail", "file": "lib/thor/command.rb", "symbol": "required_options", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=107-130\nread show_default? for detail", "file": "lib/thor/parser/option.rb", "symbol": "show_default?", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=556-579\nread dynamic_command_class for detail", "file": "lib/thor.rb", "symbol": "dynamic_command_class", "line": 556, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read Thorfile lines=26-49\nread spec for detail", "file": "Thorfile", "symbol": "spec", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=458-481\nread group for detail", "file": "lib/thor/base.rb", "symbol": "group", "line": 458, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=21-44\nread output_diff_line for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "output_diff_line", "line": 21, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I'm trying to figure out how the command line interface determines if a provided input matches one of the allowed data categories. Can you show me the logic that checks a value against the predefined set of permitted types?", "query": "valid type check", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lang": "en", "candidates": [{"text": "File: spec/actions/empty_directory_spec.rb\nLine 30: it \"takes relative root into account\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 28: it \"injects arguments into usage\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 48: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 5: module LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 412: create \"--no-foo\" => true", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 1: require \"helper\"", "file": "spec/sort_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 52: expect(parse).to eq({})", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 17: get_input", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 136: G.start(%w(--invoked e))", "file": "spec/group_spec.rb", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 29: include Thor::RakeCompat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 67: def valid_type?(type)", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 17: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 246: def method_at_least_one(*args, &block)", "file": "lib/thor.rb", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 469: | Erik | 1 | green |", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 30: instance.__send__(:method_missing, name.to_sym, *args)", "file": "lib/thor/command.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 36: # for diff.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 67: # It also accepts :force, :skip and :pretend to set the behavior", "file": "lib/thor/actions.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 10: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 33: def part_one", "file": "spec/register_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 110: # are passed straight to puts (behavior got from Highline).", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 1: class Thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 2: class NestedContext", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm trying to figure out how the command line interface determines if a provided input matches one of the allowed data categories. Can you show me the logic that checks a value against the predefined set of permitted types?", "query": "valid type check", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lang": "en", "candidates": [{"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\ndefines valid_type?", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "I'm trying to figure out how the command line interface determines if a provided input matches one of the allowed data categories. Can you show me the logic that checks a value against the predefined set of permitted types?", "query": "valid type check", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lang": "en", "candidates": [{"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm trying to figure out how the command line interface determines if a provided input matches one of the allowed data categories. Can you show me the logic that checks a value against the predefined set of permitted types?", "query": "valid type check", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lang": "en", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=200-223\nread in_root for detail", "file": "lib/thor/actions.rb", "symbol": "in_root", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=216-239\nread apply for detail", "file": "lib/thor/actions.rb", "symbol": "apply", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=154-177\nread ClassMethods for detail", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=47-70\nread SubcommandTest1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "SubcommandTest1", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/enum.thor lines=1-24\nread Enum for detail", "file": "spec/fixtures/enum.thor", "symbol": "Enum", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=43-66\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=246-269\nread method_at_least_one for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=12-35\nread initialize for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "initialize", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=163-186\nread attr_accessor for detail", "file": "lib/thor/base.rb", "symbol": "attr_accessor", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=329-352\nread subcommand for detail", "file": "lib/thor.rb", "symbol": "subcommand", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=2-25\nread Argument for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Argument", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=147-170\nread replacement_present? for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=692-715\nread build_command_tree for detail", "file": "lib/thor.rb", "symbol": "build_command_tree", "line": 692, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=66-89\nread with_padding for detail", "file": "lib/thor/shell.rb", "symbol": "with_padding", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=67-90\nread valid_type? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=84-107\nread current_is_value? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "current_is_value?", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=671-694\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 671, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Je cherche la logique qui gère le chargement automatique des fichiers de configuration lors de l'initialisation. Comment est gérée la recherche récursive dans les répertoires et la vérification des doublons ?", "query": "load thorfiles", "file": "lib/thor/runner.rb", "symbol": "initialize_thorfiles", "line": 225, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/help.thor\nLine 9: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 15: public", "file": "spec/fixtures/script.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 28: @dynamic_width ||= (dynamic_width_stty.nonzero? || dynamic_width_tput)", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 261: return if options[:pretend]", "file": "lib/thor/actions.rb", "symbol": "", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 126: def on_file_clash_behavior", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 17: get_input", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 402: it \"does not log status if required\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 402, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 163: alias_method :_retrieve_class_and_task, :_retrieve_class_and_command", "file": "lib/thor/invocation.rb", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 225: def initialize_thorfiles(relevant_to = nil, skip_lookup = false)", "file": "lib/thor/runner.rb", "symbol": "initialize_thorfiles", "line": 225, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/thor_spec.rb\nLine 5: it \"sets options to the next method to be invoked\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 248: # thor class by another ways which is not the Thor::Runner.", "file": "lib/thor/group.rb", "symbol": "", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 99: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 57: type: :array,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 39: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/A subcommand/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 17: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 62: expect(argument(:foo, {", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 22: YELLOW = \"color: yellow\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 24: end", "file": "lib/thor/actions.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 27: let(:action) do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 27: autoload :Basic, File.expand_path(\"shell/basic\", __dir__)", "file": "lib/thor/shell.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 3: gem_dir= File.expand_path(\"#{File.dirname(__FILE__)}/..\")", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 136: # A dynamic command that handles method missing scenarios.", "file": "lib/thor/command.rb", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 100: exists_and_identical?(\"encoding_with_utf8.thor\", \"encoding_with_utf8.thor\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 25: desc \"spec\", \"Run RSpec code examples\"", "file": "Thorfile", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche la logique qui gère le chargement automatique des fichiers de configuration lors de l'initialisation. Comment est gérée la recherche récursive dans les répertoires et la vérification des doublons ?", "query": "load thorfiles", "file": "lib/thor/runner.rb", "symbol": "initialize_thorfiles", "line": 225, "lang": "fr", "candidates": [{"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Je cherche la logique qui gère le chargement automatique des fichiers de configuration lors de l'initialisation. Comment est gérée la recherche récursive dans les répertoires et la vérification des doublons ?", "query": "load thorfiles", "file": "lib/thor/runner.rb", "symbol": "initialize_thorfiles", "line": 225, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/runner.rb -> group", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> open-uri", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> ../thor", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche la logique qui gère le chargement automatique des fichiers de configuration lors de l'initialisation. Comment est gérée la recherche récursive dans les répertoires et la vérification des doublons ?", "query": "load thorfiles", "file": "lib/thor/runner.rb", "symbol": "initialize_thorfiles", "line": 225, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=264-287\nread prepare_message for detail", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=12-35\nread command2 for detail", "file": "spec/tree_spec.rb", "symbol": "command2", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=100-123\nread force_on_collision? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_on_collision?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=101-124\nread map for detail", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=505-528\nread dispatch for detail", "file": "lib/thor.rb", "symbol": "dispatch", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=67-90\nread valid_type? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=4-27\nread shell for detail", "file": "spec/sort_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=185-208\nread Barn for detail", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=253-276\nread zero_args for detail", "file": "spec/fixtures/script.thor", "symbol": "zero_args", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=145-168\nread register_klass_file for detail", "file": "lib/thor/base.rb", "symbol": "register_klass_file", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=112-135\nread are_colors_disabled? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_disabled?", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=60-83\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/runner_spec.rb lines=5-28\nread when_no_thorfiles_exist for detail", "file": "spec/runner_spec.rb", "symbol": "when_no_thorfiles_exist", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=345-368\nread only_one for detail", "file": "spec/fixtures/script.thor", "symbol": "only_one", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=225-248\nread initialize_thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "initialize_thorfiles", "line": 225, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "查找获取并缓存搜索路径的方法", "query": "source_paths search", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 127, "lang": "zh", "candidates": [{"text": "File: lib/thor/util.rb\nLine 36: #", "file": "lib/thor/util.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 217: allow($stdout).to receive(:print)", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 26: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 88: else", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 127: def source_paths", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 127, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/group.thor\nLine 14: source_paths << File.expand_path(\"broken\", File.dirname(__FILE__))", "file": "spec/fixtures/group.thor", "symbol": "", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nLine 209: expect(parse(:foo, :numeric).usage).to eq(\"[--foo=N]\")", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 62: if klass = Thor::RakeCompat.rake_classes.last # rubocop:disable Lint/AssignmentInCondition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 151: require \"fileutils\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 165: str.sub(/^-{1,2}/, \"\")", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 142: runner.instance_variable_set(:@source_paths, nil)", "file": "spec/actions_spec.rb", "symbol": "", "line": 142, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 160: before do", "file": "spec/group_spec.rb", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 13: counter = words.first.length", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 19: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 64: end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 28: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 105: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 78: def glob_pattern", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 193: allow($stdout).to receive(:tty?).and_return(true)", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 193, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 235: def command_conflict", "file": "spec/fixtures/script.thor", "symbol": "", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 30: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/├─ command1/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 18: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "查找获取并缓存搜索路径的方法", "query": "source_paths search", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 127, "lang": "zh", "candidates": [{"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "查找获取并缓存搜索路径的方法", "query": "source_paths search", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 127, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/inject_into_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/empty_directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/file_manipulation", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> revoke", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "查找获取并缓存搜索路径的方法", "query": "source_paths search", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 127, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/actions/create_link.rb lines=40-63\nread invoke! for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=170-193\nread prepend_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "prepend_to_file", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=68-91\nread ClearCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "ClearCounter", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=185-208\nread Barn for detail", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=460-483\nread method_exclusive_option_names for detail", "file": "lib/thor.rb", "symbol": "method_exclusive_option_names", "line": 460, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=27-50\nread revoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=127-150\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 127, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=264-287\nread prepare_message for detail", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=203-226\nread method_exclusive for detail", "file": "lib/thor.rb", "symbol": "method_exclusive", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=248-271\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=26-49\nread squirrel for detail", "file": "spec/register_spec.rb", "symbol": "squirrel", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=57-80\nread PluginWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefault", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=32-55\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=69-92\nread initialize for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "find the command line interface that prints a message about loving nuts", "query": "squirrel nuts", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lang": "en", "candidates": [{"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 50: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 6: arguments = opts.map do |type, default|", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 295: list = Hash.new { |h, k| h[k] = [] }", "file": "lib/thor/runner.rb", "symbol": "", "line": 295, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 16: def parse(*args)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 321: it \"removes directories too\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 218: klass = Class.new(Thor::Group) do", "file": "spec/group_spec.rb", "symbol": "", "line": 218, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 13: Thor::LineEditor::Basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 57: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 157: class MyChildScript < MyScript", "file": "spec/fixtures/script.thor", "symbol": "", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 24: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 22: class SuperSecretPlugin < Thor", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/command_spec.rb\nLine 48: it \"does not invoke an existing method\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 236: @file = \"/\"", "file": "spec/actions_spec.rb", "symbol": "", "line": 236, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 37: # override task on (main), for compatibility with Rake 0.9", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 79: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 37: # Injects the given content into a file. Different from gsub_file, this", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 49: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 85: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 34: load File.join(File.dirname(__FILE__), \"fixtures\", \"group.thor\")", "file": "spec/helper.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 246: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 13: p 2", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 29: ARGV.clear", "file": "spec/helper.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find the command line interface that prints a message about loving nuts", "query": "squirrel nuts", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lang": "en", "candidates": [{"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nsibling in spec", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nsibling in spec", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nsibling in spec", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\ndefines SuperSecretPlugin", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "thor", "task": "find the command line interface that prints a message about loving nuts", "query": "squirrel nuts", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lang": "en", "candidates": [{"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find the command line interface that prints a message about loving nuts", "query": "squirrel nuts", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lang": "en", "candidates": [{"text": "Next: read lib/thor/actions/directory.rb lines=99-122\nread file_level_lookup for detail", "file": "lib/thor/actions/directory.rb", "symbol": "file_level_lookup", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=9-32\nread option for detail", "file": "spec/parser/option_spec.rb", "symbol": "option", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=493-516\nread print_at_least_one_required_options for detail", "file": "lib/thor.rb", "symbol": "print_at_least_one_required_options", "line": 493, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=12-35\nread hooray for detail", "file": "spec/register_spec.rb", "symbol": "hooray", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=541-564\nread no_commands? for detail", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=320-343\nread exclusive for detail", "file": "spec/fixtures/script.thor", "symbol": "exclusive", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=62-85\nread InvocationError for detail", "file": "lib/thor/error.rb", "symbol": "InvocationError", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=10-33\nread Parent for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=811-834\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 811, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=145-168\nread chmod for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "chmod", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=22-45\nread SuperSecretPlugin for detail", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=333-356\nread at_least_one for detail", "file": "spec/fixtures/script.thor", "symbol": "at_least_one", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=103-126\nread files for detail", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=118-141\nread parse_array for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_array", "line": 118, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "CLI 실행 시 명령어 사용법을 출력하는 형식을 수정하고 싶어요. 명령줄 도구의 기본 배너 문자열을 생성하는 로직이 어디에 있나요?", "query": "command usage banner", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lang": "ko", "candidates": [{"text": "File: lib/thor.rb\nLine 160: # :banner - String to show on usage notes.", "file": "lib/thor.rb", "symbol": "", "line": 160, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 259: def baseclass #:nodoc:", "file": "lib/thor/group.rb", "symbol": "", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 2: module LineEditor", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 118: \"purple monkey dishwasher\"", "file": "spec/register_spec.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 176: it \"shows usage with banner content\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 176, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nLine 10: def self.banner(command, all = false, subcommand = false)", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/command_spec.rb\nLine 6: options[key] = Thor::Option.parse(key, value)", "file": "spec/command_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 50: invoke! \"doc\"", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 36: it \"changes the file adding content after the flag\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 202: #", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 7: class Test < Thor", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 1: #!/usr/bin/ruby", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 247: it \"uses banner when supplied\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 247, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 31: shell.say \" #{banner}\\n\"", "file": "lib/thor/group.rb", "symbol": "", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nLine 146: end.to raise_error(ArgumentError, 'Expected array default value for \\'--foo-bar\\'; got \"baz\" (string)')", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 43: FileUtils.mkdir_p(File.dirname(destination))", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 12: puts \"ok\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 146: file = caller[1].match(/(.*):\\d+/)[1]", "file": "lib/thor/base.rb", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 10: it \"respects explicit UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 20: :banner => \"THREE\", :aliases => \"-t\"", "file": "spec/fixtures/group.thor", "symbol": "", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 426: end", "file": "lib/thor.rb", "symbol": "", "line": 426, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 257: # :banner - String to show on usage notes.", "file": "lib/thor/base.rb", "symbol": "", "line": 257, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 307: def mix", "file": "spec/fixtures/script.thor", "symbol": "", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 28: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub print_opt --help)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "CLI 실행 시 명령어 사용법을 출력하는 형식을 수정하고 싶어요. 명령줄 도구의 기본 배너 문자열을 생성하는 로직이 어디에 있나요?", "query": "command usage banner", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lang": "ko", "candidates": [{"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "CLI 실행 시 명령어 사용법을 출력하는 형식을 수정하고 싶어요. 명령줄 도구의 기본 배너 문자열을 생성하는 로직이 어디에 있나요?", "query": "command usage banner", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/runner.rb -> ../thor", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> group", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> open-uri", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "CLI 실행 시 명령어 사용법을 출력하는 형식을 수정하고 싶어요. 명령줄 도구의 기본 배너 문자열을 생성하는 로직이 어디에 있나요?", "query": "command usage banner", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lang": "ko", "candidates": [{"text": "Next: read spec/actions/create_link_spec.rb lines=31-54\nread invoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "invoke!", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=85-108\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=49-72\nread capture for detail", "file": "spec/helper.rb", "symbol": "capture", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=5-28\nread print_opt for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "print_opt", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=478-501\nread disable_required_check for detail", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=384-407\nread diff_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "diff_tool", "line": 384, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=286-309\nread is? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "is?", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=89-112\nread default for detail", "file": "spec/register_spec.rb", "symbol": "default", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=170-193\nread prepend_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "prepend_to_file", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=126-149\nread validate! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate!", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=31-54\nread dynamic_width_stty for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_stty", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=58-81\nread initialize for detail", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=276-299\nread _invoke_for_class_method for detail", "file": "lib/thor/group.rb", "symbol": "_invoke_for_class_method", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=96-119\nread public_method? for detail", "file": "lib/thor/command.rb", "symbol": "public_method?", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=49-72\nread values_at for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "values_at", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/tree_spec.rb lines=18-41\nread subcommand1 for detail", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=123-146\nread version for detail", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Le test ne capture pas les sorties standard lors de l'exécution de l'action, ce qui empêche de vérifier les logs produits.", "query": "capture stdout invoke", "file": "spec/actions/create_link_spec.rb", "symbol": "invoke!", "line": 31, "lang": "fr", "candidates": [{"text": "File: lib/thor/runner.rb\nLine 88: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 22: desc \"four\", \"invoke four\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 683: # Build an option and adds it to the given scope.", "file": "lib/thor/base.rb", "symbol": "", "line": 683, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 42: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 36: required? ? banner : \"[#{banner}]\"", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 29: @default.map(&:dump).join(\" \")", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 66: #", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 165: expect(File.directory?(file)).to be true", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 4: describe Thor::Runner do", "file": "spec/runner_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 65: default: \"foobar\"", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 29: options = {required: true, type: :string}", "file": "spec/command_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 19: #", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 154: end", "file": "lib/thor/actions.rb", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 12: def command2", "file": "spec/tree_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 168: def dasherize(str)", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 31: def invoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "invoke!", "line": 31, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/color_spec.rb\nLine 87: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 14: def z; end", "file": "spec/sort_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 54: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 8: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 12: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 17: DEFAULT_TERMINAL_WIDTH", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 178: end", "file": "spec/register_spec.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 633: [--all=ALL] # Do bazing for all the things", "file": "spec/thor_spec.rb", "symbol": "", "line": 633, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Le test ne capture pas les sorties standard lors de l'exécution de l'action, ce qui empêche de vérifier les logs produits.", "query": "capture stdout invoke", "file": "spec/actions/create_link_spec.rb", "symbol": "invoke!", "line": 31, "lang": "fr", "candidates": [{"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nsibling in spec/actions", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\ndefines invoke!", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Le test ne capture pas les sorties standard lors de l'exécution de l'action, ce qui empêche de vérifier les logs produits.", "query": "capture stdout invoke", "file": "spec/actions/create_link_spec.rb", "symbol": "invoke!", "line": 31, "lang": "fr", "candidates": [{"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> tempfile", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Le test ne capture pas les sorties standard lors de l'exécution de l'action, ce qui empêche de vérifier les logs produits.", "query": "capture stdout invoke", "file": "spec/actions/create_link_spec.rb", "symbol": "invoke!", "line": 31, "lang": "fr", "candidates": [{"text": "Next: read spec/actions/create_link_spec.rb lines=31-54\nread invoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "invoke!", "line": 31, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=722-745\nread inherited for detail", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=122-145\nread baz for detail", "file": "spec/fixtures/group.thor", "symbol": "baz", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=80-103\nread ask for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=130-153\nread say_status for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_status", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=167-190\nread installed for detail", "file": "lib/thor/runner.rb", "symbol": "installed", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=95-118\nread RequiredArgumentMissingError for detail", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=304-327\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=68-91\nread peek for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "peek", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=1-24\nread Thor for detail", "file": "lib/thor/command.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=144-167\nread method_missing for detail", "file": "spec/fixtures/script.thor", "symbol": "method_missing", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=76-99\nread unshift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "unshift", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=223-246\nread strict_args_position? for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position?", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=15-38\nread entered? for detail", "file": "lib/thor/nested_context.rb", "symbol": "entered?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=24-47\nread UndefinedCommandError for detail", "file": "lib/thor/error.rb", "symbol": "UndefinedCommandError", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_link_spec.rb lines=35-58\nread revoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "revoke!", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "명령어 실행 시 필수 옵션이 누락되어도 실행을 중단하지 않게 설정하는 로직을 찾고 있어요. 특정 명령어가 필수 체크를 건너뛰도록 하는 조건이 어디에 정의되어 있나요?", "query": "disable required check", "file": "lib/thor/base.rb", "symbol": "disable_required_check?", "line": 208, "lang": "ko", "candidates": [{"text": "File: spec/fixtures/enum.thor\nLine 2: include Thor::Actions", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 121: # Invoke the given command if the given args.", "file": "lib/thor/invocation.rb", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 26: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 113: !ENV[\"NO_COLOR\"].nil? && !ENV[\"NO_COLOR\"].empty?", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 21: def run(instance, args = [])", "file": "lib/thor/command.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 313: exclusive do", "file": "spec/fixtures/script.thor", "symbol": "", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 2: module CoreExt #:nodoc:", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 169: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 11: if SOME_STRING.encoding.name == \"UTF-8\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 26: @silence = true", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 201: inside(@destination_stack.first) { yield }", "file": "lib/thor/actions.rb", "symbol": "", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 9: describe \"errors\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 63: it \"invoking the thor task invokes the rake task\" do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 5: desc :bugs, \"ALL THE BUGZ!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 233: TEMPLATE", "file": "spec/actions_spec.rb", "symbol": "", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 208: def disable_required_check?(command_name) #:nodoc:", "file": "lib/thor/base.rb", "symbol": "disable_required_check?", "line": 208, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/color_spec.rb\nLine 115: it \"handles an Array of colors\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 23: config = args.last.is_a?(Hash) ? args.pop : {}", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 70: required: false,", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 8: puts \"Invoked!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 21: end", "file": "spec/command_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 30: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 40: # Checks if the destination file already exists.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "명령어 실행 시 필수 옵션이 누락되어도 실행을 중단하지 않게 설정하는 로직을 찾고 있어요. 특정 명령어가 필수 체크를 건너뛰도록 하는 조건이 어디에 정의되어 있나요?", "query": "disable required check", "file": "lib/thor/base.rb", "symbol": "disable_required_check?", "line": 208, "lang": "ko", "candidates": [{"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "명령어 실행 시 필수 옵션이 누락되어도 실행을 중단하지 않게 설정하는 로직을 찾고 있어요. 특정 명령어가 필수 체크를 건너뛰도록 하는 조건이 어디에 정의되어 있나요?", "query": "disable required check", "file": "lib/thor/base.rb", "symbol": "disable_required_check?", "line": 208, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "명령어 실행 시 필수 옵션이 누락되어도 실행을 중단하지 않게 설정하는 로직을 찾고 있어요. 특정 명령어가 필수 체크를 건너뛰도록 하는 조건이 어디에 정의되어 있나요?", "query": "disable required check", "file": "lib/thor/base.rb", "symbol": "disable_required_check?", "line": 208, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=118-141\nread parse_array for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_array", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=75-98\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=56-79\nread exists? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/verbose.thor lines=8-31\nread exit_on_failure? for detail", "file": "spec/fixtures/verbose.thor", "symbol": "exit_on_failure?", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=105-128\nread wrong_arity for detail", "file": "spec/fixtures/group.thor", "symbol": "wrong_arity", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=30-53\nread current_command_chain for detail", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=371-394\nread capture for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "capture", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=224-247\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=53-76\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=377-400\nread merge_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge_tool", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=28-51\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=60-83\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=248-271\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=208-231\nread disable_required_check? for detail", "file": "lib/thor/base.rb", "symbol": "disable_required_check?", "line": 208, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/util.rb lines=4-27\nread Sandbox for detail", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=16-39\nread parse for detail", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "trouve les lignes utilisant des guillemets simples avec describe context et it", "query": "single quote spec", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lang": "fr", "candidates": [{"text": "File: spec/sort_spec.rb\nLine 9: my_script = Class.new(Thor) do", "file": "spec/sort_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 350: correct_answer = nil", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 117: describe \"#yes?\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 2: def check_for_spec_defs_with_single_quotes(filename)", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nLine 68: # :black", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 73: end", "file": "spec/register_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 5: false", "file": "spec/fixtures/command.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 123: break", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 11: if SOME_STRING.encoding.name == \"UTF-8\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 218: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 218, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 66: expect(File.exist?(destination_path)).to be true", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 4: desc \"snack\"", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 69: super", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 522: it \"quits if the user chooses quit\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 522, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 750: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 750, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 83: def windows?", "file": "spec/helper.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 68: it \"prints none arrays as default\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 492: #", "file": "lib/thor/base.rb", "symbol": "", "line": 492, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 7: class Test < Thor", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 5: SOME_STRING = \"Some ������\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 13: w.close", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 16: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "trouve les lignes utilisant des guillemets simples avec describe context et it", "query": "single quote spec", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nsibling in spec", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nsibling in spec", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nsibling in spec", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nsibling in spec", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\ndefines check_for_spec_defs_with_single_quotes", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "trouve les lignes utilisant des guillemets simples avec describe context et it", "query": "single quote spec", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lang": "fr", "candidates": [{"text": "Next: read spec/helper.rb lines=83-106\nread windows? for detail", "file": "spec/helper.rb", "symbol": "windows?", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=258-281\nread command_help for detail", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=66-89\nread with_padding for detail", "file": "lib/thor/shell.rb", "symbol": "with_padding", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=93-116\nread method_missing for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "method_missing", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=127-150\nread ChildGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ChildGroup", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=11-34\nread HashWithIndifferentAccess for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=778-801\nread baseclass for detail", "file": "lib/thor/base.rb", "symbol": "baseclass", "line": 778, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=16-39\nread install for detail", "file": "Thorfile", "symbol": "install", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=23-46\nread rake_classes for detail", "file": "lib/thor/rake_compat.rb", "symbol": "rake_classes", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=172-195\nread validate_enum_value! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "validate_enum_value!", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=3-26\nread Amazing for detail", "file": "spec/fixtures/command.thor", "symbol": "Amazing", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=12-35\nread check_for_tab_characters for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/tree_spec.rb lines=12-35\nread command2 for detail", "file": "spec/tree_spec.rb", "symbol": "command2", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/options_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=12-35\nread define for detail", "file": "spec/rake_compat_spec.rb", "symbol": "define", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=89-112\nread default for detail", "file": "spec/register_spec.rb", "symbol": "default", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=2-25\nread check_for_spec_defs_with_single_quotes for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/thor_spec.rb lines=797-820\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 797, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=21-44\nread check_for_extra_spaces for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_extra_spaces", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=251-274\nread error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "error", "line": 251, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "我在处理命令行交互逻辑。帮我看看这段代码是怎么处理用户输入时自动补全机制的,以及它如何根据配置决定是否调用父类的读取方法。", "query": "Readline completion_proc", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lang": "zh", "candidates": [{"text": "File: lib/thor/actions/create_file.rb\nLine 79: end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 287: value = value.to_s", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 287, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 34: expect(shell.set_color(\"\", :blue)).to eq \"<htmlcontent>\"", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 91: end", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 31: expect(Thor::Base.shell).to eq(Thor::Shell::TestShell)", "file": "spec/shell_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 73: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 129: create_file(\"doc/config.rb\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 9: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 8: Bundler::GemHelper.install_tasks", "file": "Thorfile", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 3: describe Thor::Shell::Color do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 25: when \"+\"", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 2: require_relative \"line_editor/readline\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 221: allow(Thor::LineEditor).to receive(:readline).and_return(\"Y\")", "file": "spec/runner_spec.rb", "symbol": "", "line": 221, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 334: result = Thor::LineEditor.readline(message, options)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 334, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 96: expect(Thor::LineEditor).to receive(:readline).and_return(\"d\", \"y\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 96, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 7: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 315: # ==== Parameters", "file": "lib/thor/base.rb", "symbol": "", "line": 315, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 1: $LOAD_PATH.unshift File.expand_path(\"../lib\", __FILE__)", "file": "Thorfile", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 15: def readline", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 13: def readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/error.rb\nLine 95: class RequiredArgumentMissingError < InvocationError", "file": "lib/thor/error.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 115: expect(Thor::LineEditor).to receive(:readline).with(\"Overwrite #{file}? (enter \\\"h\\\" for help) [Ynaqdhm] \", anything).and_return(\"s\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 115, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 12: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 32: stdout.puts unless para == paras.last", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "我在处理命令行交互逻辑。帮我看看这段代码是怎么处理用户输入时自动补全机制的,以及它如何根据配置决定是否调用父类的读取方法。", "query": "Readline completion_proc", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lang": "zh", "candidates": [{"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nsibling in lib/thor/line_editor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\ndefines readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "我在处理命令行交互逻辑。帮我看看这段代码是怎么处理用户输入时自动补全机制的,以及它如何根据配置决定是否调用父类的读取方法。", "query": "Readline completion_proc", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lang": "zh", "candidates": [{"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "我在处理命令行交互逻辑。帮我看看这段代码是怎么处理用户输入时自动补全机制的,以及它如何根据配置决定是否调用父类的读取方法。", "query": "Readline completion_proc", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=53-76\nread remaining for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "remaining", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=686-709\nread tree for detail", "file": "lib/thor.rb", "symbol": "tree", "line": 686, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=69-92\nread revoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "revoke!", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=207-230\nread file_collision for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/subcommand.thor lines=10-33\nread Parent for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=35-58\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=23-46\nread rake_classes for detail", "file": "lib/thor/rake_compat.rb", "symbol": "rake_classes", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=607-630\nread public_command for detail", "file": "lib/thor/base.rb", "symbol": "public_command", "line": 607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=68-91\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=28-51\nread add_to_history? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "add_to_history?", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=52-75\nread enum_to_s for detail", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=65-88\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=482-505\nread print_exclusive_options for detail", "file": "lib/thor.rb", "symbol": "print_exclusive_options", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=64-87\nread C for detail", "file": "spec/fixtures/invoke.thor", "symbol": "C", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=189-212\nread assign_result! for detail", "file": "lib/thor/parser/options.rb", "symbol": "assign_result!", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Where is the logic that suggests alternative commands when a user types something wrong?", "query": "command suggestion logic", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 25, "lang": "en", "candidates": [{"text": "File: spec/shell_spec.rb\nLine 1: require \"helper\"", "file": "spec/shell_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 25: class SpellChecker", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 25, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/verbose.thor\nLine 9: true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 177: expect(@content).to match(/\\[\\-\\-third=THREE\\]/)", "file": "spec/base_spec.rb", "symbol": "", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 58: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 15: def entered?", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 9: method_options :forcefully => :boolean", "file": "spec/fixtures/command.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 223: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 3: class Amazing < Thor", "file": "spec/fixtures/command.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 4: DEFAULT_TERMINAL_WIDTH = 80", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 55: describe \"#dup\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 118: end", "file": "lib/thor/group.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 9: r,w= IO.pipe", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 35: expect(%w(rake_compat_spec.rb Thorfile)).to include(Rake.application.rakefile)", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 39: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 10: out = capture(:stdout) { shell.say \"Wow! Now we have colors!\", :green }", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 2: require \"thor/base\"", "file": "spec/encoding_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 308: runner = MyCounter.new([1], %w(--pretend))", "file": "spec/actions_spec.rb", "symbol": "", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 7: def bugs", "file": "spec/fixtures/help.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 340: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 340, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 21: @banner = options[:banner] || default_banner", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 80: it \"replaces camel-casing with underscores\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 15: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 11: class_option \"opt\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Where is the logic that suggests alternative commands when a user types something wrong?", "query": "command suggestion logic", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 25, "lang": "en", "candidates": [{"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Where is the logic that suggests alternative commands when a user types something wrong?", "query": "command suggestion logic", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 25, "lang": "en", "candidates": [{"text": "Next: read lib/thor/error.rb lines=25-48\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 25, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=138-161\nread potentially_ambiguous_but_hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous_but_hidden", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=6-29\nread show_diff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "show_diff", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=6-29\nread readline for detail", "file": "lib/thor/line_editor.rb", "symbol": "readline", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=24-47\nread UndefinedCommandError for detail", "file": "lib/thor/error.rb", "symbol": "UndefinedCommandError", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=20-43\nread Error for detail", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=21-44\nread base for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "base", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=89-112\nread parse for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=216-239\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=622-645\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=629-652\nread exit_on_failure? for detail", "file": "lib/thor/base.rb", "symbol": "exit_on_failure?", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=4-27\nread Thor for detail", "file": "lib/thor/rake_compat.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=10-33\nread Parent for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=153-176\nread load_thorfile for detail", "file": "lib/thor/util.rb", "symbol": "load_thorfile", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=261-284\nread two_args for detail", "file": "spec/fixtures/script.thor", "symbol": "two_args", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=24-47\nread remaining for detail", "file": "spec/parser/options_spec.rb", "symbol": "remaining", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Estoy revisando cómo se listan las herramientas disponibles en la terminal. ¿Podrías mostrarme el método que se encarga de cargar los archivos de configuración y mostrar la lista de clases?", "query": "display classes installed", "file": "lib/thor/runner.rb", "symbol": "installed", "line": 167, "lang": "es", "candidates": [{"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 40: # Checks if the destination file already exists.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 1: require_relative \"create_file\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 27: alias_method :add_file, :create_file", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 313: def show_diff(destination, content) #:nodoc:", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 8: def encoding", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 20: require \"diff/lcs\" # You need diff/lcs installed to run specs (but not to run Thor).", "file": "spec/helper.rb", "symbol": "", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 124: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 11: ret = \"#{name} is amazing\"", "file": "spec/fixtures/command.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 167: def installed", "file": "lib/thor/runner.rb", "symbol": "installed", "line": 167, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 23: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 3: require_relative \"basic\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 14: def print(array)", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 642: unique_possibilities", "file": "lib/thor.rb", "symbol": "", "line": 642, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 122: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 6: def self.available?", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 752: it \"does not print if a method is defined by code in an installed gem\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 752, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nLine 26: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 291: create({foo: :boolean, bar: :boolean, baz: :boolean, qux: :boolean}, {}, false,", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 45: non_namespaced_name = task.name.split(\":\").last", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 33: expect(File.exist?(File.join(destination_root, \"doc/config.rb\"))).to be true", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 204: describe \"installed\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 204, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nLine 66: end).to eq(\"COOL\\n\")", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estoy revisando cómo se listan las herramientas disponibles en la terminal. ¿Podrías mostrarme el método que se encarga de cargar los archivos de configuración y mostrar la lista de clases?", "query": "display classes installed", "file": "lib/thor/runner.rb", "symbol": "installed", "line": 167, "lang": "es", "candidates": [{"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Estoy revisando cómo se listan las herramientas disponibles en la terminal. ¿Podrías mostrarme el método que se encarga de cargar los archivos de configuración y mostrar la lista de clases?", "query": "display classes installed", "file": "lib/thor/runner.rb", "symbol": "installed", "line": 167, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/runner.rb -> ../thor", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> group", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> open-uri", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estoy revisando cómo se listan las herramientas disponibles en la terminal. ¿Podrías mostrarme el método que se encarga de cargar los archivos de configuración y mostrar la lista de clases?", "query": "display classes installed", "file": "lib/thor/runner.rb", "symbol": "installed", "line": 167, "lang": "es", "candidates": [{"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=689-712\nread build_option for detail", "file": "lib/thor/base.rb", "symbol": "build_option", "line": 689, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=117-140\nread with_optional for detail", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=167-190\nread installed for detail", "file": "lib/thor/runner.rb", "symbol": "installed", "line": 167, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=86-109\nread force_or_skip_or_conflict for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_or_skip_or_conflict", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=10-33\nread describe for detail", "file": "spec/fixtures/command.thor", "symbol": "describe", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/html_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/html_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=100-123\nread private_method? for detail", "file": "lib/thor/command.rb", "symbol": "private_method?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=35-58\nread usage for detail", "file": "lib/thor/parser/argument.rb", "symbol": "usage", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=18-41\nread subcommand1 for detail", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=144-167\nread method_missing for detail", "file": "spec/fixtures/script.thor", "symbol": "method_missing", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=225-248\nread current_is_value? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_value?", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=552-575\nread baseclass for detail", "file": "lib/thor.rb", "symbol": "baseclass", "line": 552, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=20-43\nread unix? for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "unix?", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=286-309\nread is? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "is?", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Comment est généré le motif pour la recherche de fichiers via l'éditeur ?", "query": "glob pattern path", "file": "lib/thor/line_editor/readline.rb", "symbol": "glob_pattern", "line": 78, "lang": "fr", "candidates": [{"text": "File: spec/command_spec.rb\nLine 80: end", "file": "spec/command_spec.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 383: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 383, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 458: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 458, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 24: # Prints help information.", "file": "lib/thor/group.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 71: it \"downcases all-caps strings\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 56: #", "file": "lib/thor/invocation.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 93: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 103: it \"returns true if the destination link exists and is identical\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 37: klass, command = Thor::Util.find_class_and_command_by_namespace(meth)", "file": "lib/thor/runner.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 51: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 32: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 8: def initialize(name, options = {})", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 34: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 101: invoke Defined", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 78: def glob_pattern", "file": "lib/thor/line_editor/readline.rb", "symbol": "glob_pattern", "line": 78, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/exit_status.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 323: # Allow current root to be shared between invocations.", "file": "lib/thor/actions.rb", "symbol": "", "line": 323, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 16: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 82: # @return [TrueClass/FalseClass]", "file": "spec/helper.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 602: action(:inject_into_module, \"application_helper.rb\", \"ApplicationHelper\") { \" def help; 'help'; end\\n\" }", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 602, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 14: puts \"expected #{SOME_STRING.encoding.name} to equal ISO-8859-7\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 63: # Extends initializer to add more configuration options.", "file": "lib/thor/actions.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 297: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 297, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 50: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Comment est généré le motif pour la recherche de fichiers via l'éditeur ?", "query": "glob pattern path", "file": "lib/thor/line_editor/readline.rb", "symbol": "glob_pattern", "line": 78, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nsibling in lib/thor/line_editor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\ndefines glob_pattern", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Comment est généré le motif pour la recherche de fichiers via l'éditeur ?", "query": "glob pattern path", "file": "lib/thor/line_editor/readline.rb", "symbol": "glob_pattern", "line": 78, "lang": "fr", "candidates": [{"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Comment est généré le motif pour la recherche de fichiers via l'éditeur ?", "query": "glob pattern path", "file": "lib/thor/line_editor/readline.rb", "symbol": "glob_pattern", "line": 78, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=671-694\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=78-101\nread glob_pattern for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "glob_pattern", "line": 78, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/group.thor lines=89-112\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=223-246\nread strict_args_position? for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position?", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=399-422\nread set_eoutvar for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "set_eoutvar", "line": 399, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=172-195\nread animal for detail", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=20-43\nread help for detail", "file": "lib/thor/runner.rb", "symbol": "help", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=189-212\nread assign_result! for detail", "file": "lib/thor/parser/options.rb", "symbol": "assign_result!", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=556-579\nread dynamic_command_class for detail", "file": "lib/thor.rb", "symbol": "dynamic_command_class", "line": 556, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=117-140\nread template for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=473-496\nread stop_on_unknown_option for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option", "line": 473, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=308-331\nread thor for detail", "file": "lib/thor/actions.rb", "symbol": "thor", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=65-88\nread peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=276-299\nread thorfiles_relevant_to for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "find the method that prints a specific warning when a certain weapon is provided", "query": "shotgun mark", "file": "spec/fixtures/script.thor", "symbol": "open", "line": 191, "lang": "en", "candidates": [{"text": "File: spec/fixtures/script.thor\nLine 191: def open(item = nil)", "file": "spec/fixtures/script.thor", "symbol": "open", "line": 191, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 159: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 26: # Lazy-load io/console since it is gem-ified as of 2.3", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 308: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 21: RUBY_PLATFORM =~ /(aix|darwin|linux|(net|free|open)bsd|cygwin|solaris)/i", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nLine 247: # 1. c:\\Documents and Settings\\james\\dev\\thor", "file": "lib/thor/runner.rb", "symbol": "", "line": 247, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 64: File.open(destination, \"wb\", config[:perm]) { |f| f.write render }", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 64, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nLine 89: File.open(File.join(destination_root, \"doc/config.rb\"), \"w\") { |f| f.write(\"FOO = 3\") }", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 89, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 670: desc \"help [COMMAND]\", \"Describe available commands or one specific command\"", "file": "lib/thor.rb", "symbol": "", "line": 670, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 160: before do", "file": "spec/group_spec.rb", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 43: def show_default?", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 125: shell.say \"Wow! This still works?\", [:blue, true]", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 11: expect(capture(:stdout) { Scripts::MyDefaults.start(%w(barn open)) }.strip).to eq(\"Open sesame!\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 186: end", "file": "spec/base_spec.rb", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 25: end.to raise_error(ArgumentError, \"An argument cannot be required and have default value.\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 56: super", "file": "spec/fixtures/group.thor", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 301: describe \"#start\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 301, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 17: Rake::Task[\"install\"].execute", "file": "Thorfile", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 237: allow(File).to receive(:open).and_return(@template)", "file": "spec/actions_spec.rb", "symbol": "", "line": 237, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 315: Tempfile.open(File.basename(destination), File.dirname(destination), binmode: true) do |temp|", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 315, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 217: config = args.last.is_a?(Hash) ? args.pop : {}", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 1: # encoding: ISO-8859-7", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 94: foreground, bold = colors", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 36: expect(output).to eq(sub_help)", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find the method that prints a specific warning when a certain weapon is provided", "query": "shotgun mark", "file": "spec/fixtures/script.thor", "symbol": "open", "line": 191, "lang": "en", "candidates": [{"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines open", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find the method that prints a specific warning when a certain weapon is provided", "query": "shotgun mark", "file": "spec/fixtures/script.thor", "symbol": "open", "line": 191, "lang": "en", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=25-48\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=38-61\nread part_two for detail", "file": "spec/register_spec.rb", "symbol": "part_two", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=203-226\nread method_exclusive for detail", "file": "lib/thor.rb", "symbol": "method_exclusive", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=191-214\nread open for detail", "file": "spec/fixtures/script.thor", "symbol": "open", "line": 191, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/terminal.rb lines=27-50\nread dynamic_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=85-108\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=41-64\nread task for detail", "file": "lib/thor/rake_compat.rb", "symbol": "task", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=21-44\nread revoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=274-297\nread parse_peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_peek", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=168-191\nread dasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherize", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=778-801\nread baseclass for detail", "file": "lib/thor/base.rb", "symbol": "baseclass", "line": 778, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "erstelle eine kopie ohne bestimmte schlüssel", "query": "hash except keys", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lang": "de", "candidates": [{"text": "File: lib/thor/rake_compat.rb\nLine 2: require \"rake/dsl_definition\"", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 65: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 129: end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 2: check_unknown_options! :except => :with_optional", "file": "spec/fixtures/script.thor", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 9: # This method is responsible for receiving a name and find the proper", "file": "lib/thor/invocation.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 97: context \"with source path relative to destination\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 349: # options: A hash containing :only and/or :except keys", "file": "lib/thor.rb", "symbol": "", "line": 349, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 46: ::File.exist?(destination)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 18: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 357: it \"subtracts even with double before injection\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 357, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 269: def multiple_usages(arg)", "file": "spec/fixtures/script.thor", "symbol": "", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 5: SOME_STRING = \"Some λέξεις 一些词 🎉\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 26: # ==== Options", "file": "lib/thor/group.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 43: @content = capture(:stdout) { my_script.help(shell) }", "file": "spec/sort_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 34: elsif argument.required?", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 71: end", "file": "lib/thor/error.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 111: switch = $1", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 144: end", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 339: it \"checks unknown options except specified\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 339, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 56: describe \"#argument\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 31: def except(*keys)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 86: else", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 28: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 75: # class_option :mock_framework, :type => :string, :default => :rr", "file": "lib/thor/invocation.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "erstelle eine kopie ohne bestimmte schlüssel", "query": "hash except keys", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lang": "de", "candidates": [{"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "erstelle eine kopie ohne bestimmte schlüssel", "query": "hash except keys", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lang": "de", "candidates": [{"text": "Next: read lib/thor/util.rb lines=221-244\nread ruby_command for detail", "file": "lib/thor/util.rb", "symbol": "ruby_command", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=276-299\nread apple for detail", "file": "spec/fixtures/script.thor", "symbol": "apple", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=10-33\nread describe for detail", "file": "spec/fixtures/command.thor", "symbol": "describe", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=21-44\nread revoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=215-238\nread current_is_switch_formatted? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch_formatted?", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=483-506\nread all_commands for detail", "file": "lib/thor/base.rb", "symbol": "all_commands", "line": 483, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=142-165\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=31-54\nread except for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=27-50\nread delete for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "delete", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=12-35\nread initialize for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "initialize", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=96-119\nread print_border_separator for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print_border_separator", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=385-408\nread actually_gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "actually_gsub_file", "line": 385, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=277-300\nread rotten_apple for detail", "file": "spec/fixtures/script.thor", "symbol": "rotten_apple", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=11-34\nread HashWithIndifferentAccess for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/command.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=17-40\nread Util for detail", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=78-101\nread long_desc for detail", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=129-152\nread HiddenCommand for detail", "file": "lib/thor/command.rb", "symbol": "HiddenCommand", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=228-251\nread dispatch for detail", "file": "lib/thor/group.rb", "symbol": "dispatch", "line": 228, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "コマンドラインの出力結果にステータスを表示して、メッセージを整形して出力しているメソッドを探しています。ログを出力するかどうかの制御や、色指定ができる仕組みになっている箇所はどこですか?", "query": "status message color", "file": "lib/thor/shell/basic.rb", "symbol": "say_status", "line": 130, "lang": "ja", "candidates": [{"text": "File: spec/fixtures/invoke.thor\nLine 96: say_status :finished, :counting", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 96, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nLine 50: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 98: end", "file": "lib/thor/command.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 75: say_status :identical, :blue", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 27: print_border_separator", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 25: def pop", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 83: expect(MyClassOptionScript.class_at_least_one_option_names.first.size).to be(2)", "file": "spec/base_spec.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 244: # inside('vendor') do", "file": "lib/thor/actions.rb", "symbol": "", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 92: p 5", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 11: @indent = options[:indent].to_i", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 43: content = capture(:stderr) { Thor::Runner.start(%w(help unknown)) }", "file": "spec/runner_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 6: def hello", "file": "spec/base_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 42: expect(capture(:stdout) { base.say_status :padding, \"cool\" }.strip).to eq(\"padding cool\")", "file": "spec/shell_spec.rb", "symbol": "", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 24: SHELL_DELEGATED_METHODS = [:ask, :error, :set_color, :yes?, :no?, :say, :say_error, :say_status, :print_in_columns, :print_table, :print_wrapped, :file_collision, :terminal_width]", "file": "lib/thor/shell.rb", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nLine 25: describe \"#say_status\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 25, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 372: #", "file": "lib/thor/base.rb", "symbol": "", "line": 372, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 25: # Set the terminal's foreground HTML color to magenta.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 57: say_status :remove, :red", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 57, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 16: $stdout.print(prompt)", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 34: it \"allows multiple usages\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 130: def say_status(status, message, log_status = true)", "file": "lib/thor/shell/basic.rb", "symbol": "say_status", "line": 130, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 15: end", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 134: elsif behavior == :unchanged", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 69: say_status :invoke, #{name.inspect}, #{verbose.inspect}", "file": "lib/thor/group.rb", "symbol": "", "line": 69, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "コマンドラインの出力結果にステータスを表示して、メッセージを整形して出力しているメソッドを探しています。ログを出力するかどうかの制御や、色指定ができる仕組みになっている箇所はどこですか?", "query": "status message color", "file": "lib/thor/shell/basic.rb", "symbol": "say_status", "line": 130, "lang": "ja", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "コマンドラインの出力結果にステータスを表示して、メッセージを整形して出力しているメソッドを探しています。ログを出力するかどうかの制御や、色指定ができる仕組みになっている箇所はどこですか?", "query": "status message color", "file": "lib/thor/shell/basic.rb", "symbol": "say_status", "line": 130, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "コマンドラインの出力結果にステータスを表示して、メッセージを整形して出力しているメソッドを探しています。ログを出力するかどうかの制御や、色指定ができる仕組みになっている箇所はどこですか?", "query": "status message color", "file": "lib/thor/shell/basic.rb", "symbol": "say_status", "line": 130, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=130-153\nread say_status for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_status", "line": 130, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/terminal.rb lines=2-25\nread Shell for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Shell", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=589-612\nread defined_in_gem? for detail", "file": "lib/thor.rb", "symbol": "defined_in_gem?", "line": 589, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=325-348\nread _shared_configuration for detail", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=83-106\nread windows? for detail", "file": "spec/helper.rb", "symbol": "windows?", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=142-165\nread update for detail", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=113-136\nread invoke_with_conflict_check for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke_with_conflict_check", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=174-197\nread list for detail", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=103-126\nread files for detail", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=126-149\nread on_file_clash_behavior for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_file_clash_behavior", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I'm looking at how we handle command validation. Where is the logic that allows certain commands to bypass the mandatory argument verification?", "query": "bypass required check", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lang": "en", "candidates": [{"text": "File: spec/sort_spec.rb\nLine 37: list.reverse!", "file": "spec/sort_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 93: say_status :conflict, :red", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 11: if SOME_STRING.encoding.name == \"ISO-8859-7\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 260: expect(URI).to receive(:open).with(location).and_raise(OpenURI::HTTPError.new(\"foo\", StringIO.new))", "file": "spec/runner_spec.rb", "symbol": "", "line": 260, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 13: case name", "file": "lib/thor/invocation.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 62: METHOD", "file": "lib/thor/shell.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 11: expect do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 66: when Numeric", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 275: namespace :fruits", "file": "spec/fixtures/script.thor", "symbol": "", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 92: disable_required_check = self.class.disable_required_check? current_command", "file": "lib/thor/base.rb", "symbol": "", "line": 92, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nLine 10: #", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 148: end", "file": "lib/thor/command.rb", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 268: File.directory?(file) ? File.join(file, \"main.thor\") : file", "file": "lib/thor/runner.rb", "symbol": "", "line": 268, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 281: describe \"#disable_required_check!\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 281, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nLine 26: @depth -= 1", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 11: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 136: # Hash[path => Class]", "file": "lib/thor/base.rb", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 357: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 357, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 25: failing_lines << number + 1 if line =~ /\\s+\\n$/", "file": "spec/quality_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 26: say \"+ #{diff.new_element.chomp}\", :green, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 281: yield(self, klass, command)", "file": "lib/thor/group.rb", "symbol": "", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 478: def disable_required_check #:nodoc:", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/options.rb\nLine 32: def initialize(hash_options = {}, defaults = {}, stop_on_unknown = false, disable_required_check = false, relations = {})", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 9: # require 'rspec/core/rake_task'", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm looking at how we handle command validation. Where is the logic that allows certain commands to bypass the mandatory argument verification?", "query": "bypass required check", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lang": "en", "candidates": [{"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "I'm looking at how we handle command validation. Where is the logic that allows certain commands to bypass the mandatory argument verification?", "query": "bypass required check", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lang": "en", "candidates": [{"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm looking at how we handle command validation. Where is the logic that allows certain commands to bypass the mandatory argument verification?", "query": "bypass required check", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lang": "en", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=276-299\nread apple for detail", "file": "spec/fixtures/script.thor", "symbol": "apple", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=262-285\nread argument for detail", "file": "lib/thor/base.rb", "symbol": "argument", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=622-645\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=174-197\nread list for detail", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=104-127\nread camel_case for detail", "file": "lib/thor/util.rb", "symbol": "camel_case", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=128-151\nread bar for detail", "file": "spec/fixtures/group.thor", "symbol": "bar", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=478-501\nread disable_required_check for detail", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=52-75\nread animal for detail", "file": "spec/register_spec.rb", "symbol": "animal", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=194-217\nread print_wrapped for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_wrapped", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=73-96\nread on_conflict_behavior for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "on_conflict_behavior", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=403-426\nread class_exclusive_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=41-64\nread task for detail", "file": "lib/thor/rake_compat.rb", "symbol": "task", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=161-184\nread class_options_help for detail", "file": "lib/thor/group.rb", "symbol": "class_options_help", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=215-238\nread current_is_switch_formatted? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch_formatted?", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=48-71\nread Child1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "Child1", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_link_spec.rb lines=31-54\nread invoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "invoke!", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "inicializar directorio con ruta fuente destino y config opcional", "query": "directory init source", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lang": "es", "candidates": [{"text": "File: lib/thor/parser/option.rb\nLine 7: def initialize(name, options = {})", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nLine 29: it \"prints a tree of all commands\" do", "file": "spec/tree_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 120: class I < Thor", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 68: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 8: # Returns the shell used in all Thor classes. If you are in a Unix platform", "file": "lib/thor/shell.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 60: shell.#{method}(*args,&block)", "file": "lib/thor/shell.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 101: invoke Defined", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 58: def initialize(base, source, destination = nil, config = {}, &block)", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 9: def initialize(stdout, options = {})", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 12: @options = options", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 274: # Shortcut to invoke with padding and block handling. Use internally by", "file": "lib/thor/group.rb", "symbol": "", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 26: def initialize(arguments = [])", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nLine 61: def namespace(name)", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 161: def initialize(*args)", "file": "spec/fixtures/script.thor", "symbol": "", "line": 161, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 18: # Hold source paths for one Thor instance. source_paths_for_search is the", "file": "lib/thor/actions.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 171: elsif ENV[\"USERPROFILE\"]", "file": "lib/thor/util.rb", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 426: it \"logs status\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 426, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 294: class_at_least_one do", "file": "spec/fixtures/script.thor", "symbol": "", "line": 294, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 12: describe \"#initialize\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 98: #", "file": "lib/thor/actions.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 8: def initialize(stdout, options = {})", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 36: second", "file": "spec/fixtures/group.thor", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 4: require \"thor/rake_compat\"", "file": "Thorfile", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 543: # the command that is going to be invoked and a boolean which indicates if", "file": "lib/thor.rb", "symbol": "", "line": 543, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "inicializar directorio con ruta fuente destino y config opcional", "query": "directory init source", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lang": "es", "candidates": [{"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "inicializar directorio con ruta fuente destino y config opcional", "query": "directory init source", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lang": "es", "candidates": [{"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "inicializar directorio con ruta fuente destino y config opcional", "query": "directory init source", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lang": "es", "candidates": [{"text": "Next: read lib/thor/base.rb lines=190-213\nread allow_incompatible_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "allow_incompatible_default_type!", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=330-353\nread ask_simply for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_simply", "line": 330, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=5-28\nread LineEditor for detail", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=709-732\nread find_and_refresh_command for detail", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=149-172\nread remove_invocation for detail", "file": "lib/thor/group.rb", "symbol": "remove_invocation", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=64-87\nread invoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=375-398\nread with_output_buffer for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "with_output_buffer", "line": 375, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=68-91\nread ClearCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "ClearCounter", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=730-753\nread method_added for detail", "file": "lib/thor/base.rb", "symbol": "method_added", "line": 730, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=31-54\nread GroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "GroupPlugin", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=556-579\nread dynamic_command_class for detail", "file": "lib/thor.rb", "symbol": "dynamic_command_class", "line": 556, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=58-81\nread initialize for detail", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=144-167\nread method_missing for detail", "file": "spec/fixtures/script.thor", "symbol": "method_missing", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=689-712\nread build_option for detail", "file": "lib/thor/base.rb", "symbol": "build_option", "line": 689, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=880-903\nread no_arg for detail", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=165-188\nread print_in_columns for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_in_columns", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Como encontrar a classe e o comando corretos a partir do nome recebido?", "query": "find class command name", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lang": "pt", "candidates": [{"text": "File: spec/subcommand_spec.rb\nLine 8: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 126: # Thor::Util.namespace_to_thor_class(\"foo:bar:baz\") #=> Foo::Bar, \"baz\"", "file": "lib/thor/util.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 12: def command2", "file": "spec/tree_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 62: formatted_specific_usage.strip", "file": "lib/thor/command.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 35: def two", "file": "spec/fixtures/group.thor", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 42: # Set the terminal's background HTML color to magenta.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 114: expect(Thor::Util.find_class_and_command_by_namespace(\"fruits:apple\")).to eq([Apple, \"apple\"])", "file": "spec/util_spec.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 96: say_status(:unchanged, color: :blue)", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 3: class Amazing < Thor", "file": "spec/fixtures/command.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 8: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 32: # Load fixtures", "file": "spec/helper.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 68: describe \"with value as string\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 66: klass, command = self.class.prepare_for_invocation(nil, #{name.inspect})", "file": "lib/thor/group.rb", "symbol": "", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nLine 68: when Hash, Array, String", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 100: File.join(previous_lookup, \"*\")", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 12: def prepare_for_invocation(key, name) #:nodoc:", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/group_spec.rb\nLine 108: expect(content).to match(/\\[--unused\\]/)", "file": "spec/group_spec.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 229: expect(parse(:foo, :boolean).usage).to include(\"[--no-foo]\")", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 179: expect(remaining).to eq([])", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 49: def values_at(*indices)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 269: say_status :gsub, relative_to_original_destination_root(path), config.fetch(:verbose, true)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 202: # ==== Parameters", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Como encontrar a classe e o comando corretos a partir do nome recebido?", "query": "find class command name", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lang": "pt", "candidates": [{"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Como encontrar a classe e o comando corretos a partir do nome recebido?", "query": "find class command name", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=65-88\nread UnknownArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=273-296\nread lookup_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "lookup_color", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/argument_spec.rb lines=5-28\nread argument for detail", "file": "spec/parser/argument_spec.rb", "symbol": "argument", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=120-143\nread I for detail", "file": "spec/fixtures/invoke.thor", "symbol": "I", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=32-55\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=23-46\nread rake_classes for detail", "file": "lib/thor/rake_compat.rb", "symbol": "rake_classes", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/application_helper.rb lines=1-24\nread ApplicationHelper for detail", "file": "spec/fixtures/application_helper.rb", "symbol": "ApplicationHelper", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=138-161\nread potentially_ambiguous_but_hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous_but_hidden", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=66-89\nread method_exclusive_option_names for detail", "file": "lib/thor/command.rb", "symbol": "method_exclusive_option_names", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=3-26\nread Amazing for detail", "file": "spec/fixtures/command.thor", "symbol": "Amazing", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=243-266\nread ChildDefault for detail", "file": "spec/fixtures/script.thor", "symbol": "ChildDefault", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=291-314\nread gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Como recuperar a configuração de opções de método que já foi definida. Preciso acessá-la para verificar quais atributos foram especificados ou para garantir que as opções foram construídas corretamente.", "query": "method options", "file": "lib/thor.rb", "symbol": "method_options", "line": 129, "lang": "pt", "candidates": [{"text": "File: lib/thor/nested_context.rb\nLine 13: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 69: # :red", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 337: end", "file": "lib/thor/actions.rb", "symbol": "", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 416: describe \"#method_options\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 416, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 18: it \"has implicit UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 807: # Get target(method_options or class_options) options", "file": "lib/thor/base.rb", "symbol": "", "line": 807, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nLine 3: Module.new do", "file": "lib/thor/error.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 71: self.options_relation[:at_least_one_option_names] || []", "file": "lib/thor/command.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 18: # This parse quick options given as method_options. It makes several", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 26: Thor::Base.subclasses.detect { |klass| klass.namespace == namespace }", "file": "lib/thor/util.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 44: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 142: \"any content\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 129: def method_options(options = nil)", "file": "lib/thor.rb", "symbol": "method_options", "line": 129, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/error.rb\nLine 39: end", "file": "lib/thor/error.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 35: end", "file": "spec/register_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 268: elsif options.key?(:required)", "file": "lib/thor/base.rb", "symbol": "", "line": 268, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 9: method_options :forcefully => :boolean", "file": "spec/fixtures/command.thor", "symbol": "", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 186: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 151: end", "file": "lib/thor/command.rb", "symbol": "", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 70: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 52: eval \"$#{stream} = StringIO.new\"", "file": "spec/helper.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 8: width = Terminal.terminal_width - @indent", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 44: method_options as: :string, relative: :boolean, force: :boolean", "file": "lib/thor/runner.rb", "symbol": "", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 70: method_options :with => :string", "file": "spec/fixtures/script.thor", "symbol": "", "line": 70, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Como recuperar a configuração de opções de método que já foi definida. Preciso acessá-la para verificar quais atributos foram especificados ou para garantir que as opções foram construídas corretamente.", "query": "method options", "file": "lib/thor.rb", "symbol": "method_options", "line": 129, "lang": "pt", "candidates": [{"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Como recuperar a configuração de opções de método que já foi definida. Preciso acessá-la para verificar quais atributos foram especificados ou para garantir que as opções foram construídas corretamente.", "query": "method options", "file": "lib/thor.rb", "symbol": "method_options", "line": 129, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Como recuperar a configuração de opções de método que já foi definida. Preciso acessá-la para verificar quais atributos foram especificados ou para garantir que as opções foram construídas corretamente.", "query": "method options", "file": "lib/thor.rb", "symbol": "method_options", "line": 129, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=163-186\nread attr_accessor for detail", "file": "lib/thor/base.rb", "symbol": "attr_accessor", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=689-712\nread build_option for detail", "file": "lib/thor/base.rb", "symbol": "build_option", "line": 689, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=17-40\nread invoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=15-38\nread hidden? for detail", "file": "lib/thor/command.rb", "symbol": "hidden?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=117-140\nread template for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=35-58\nread dynamic_width_tput for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_tput", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=129-152\nread method_options for detail", "file": "lib/thor.rb", "symbol": "method_options", "line": 129, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=168-191\nread user_home for detail", "file": "lib/thor/util.rb", "symbol": "user_home", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/runner_spec.rb lines=5-28\nread when_no_thorfiles_exist for detail", "file": "spec/runner_spec.rb", "symbol": "when_no_thorfiles_exist", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=5-28\nread LineEditor for detail", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=186-209\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=147-170\nread replacement_present? for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "コマンドライン引数の解析ロジックを修正しています。内部で保持している要素のリストから、先頭のアイテムを取り除くメソッドはどこに定義されていますか?", "query": "shift pile", "file": "lib/thor/parser/arguments.rb", "symbol": "shift", "line": 72, "lang": "ja", "candidates": [{"text": "File: lib/thor/parser/options.rb\nLine 70: shift", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 70, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nLine 7: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 93: else", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 158: # When at least one is required of the options A and B,", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 103: def files(lookup)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 33: attr_reader :data", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 9: true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 15: def parse(*args)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 47: #", "file": "lib/thor/base.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 10: if SOME_STRING.encoding.name == \"UTF-8\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 13: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 602: args.shift if meth && (map[meth] || meth !~ /^\\-/)", "file": "lib/thor.rb", "symbol": "", "line": 602, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 87: it \"allows to invoke a class from the class binding\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 57: say_status :remove, :red", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 36: runner(pretend: true)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 7: def bugs", "file": "spec/fixtures/help.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 10: class Parent < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 27: data = block_given? ? block : args.shift", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nLine 127: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 16: $stdout.print(prompt)", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 48: expect(empty_directory(\"contents\").given_destination).to eq(\"contents\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 42: runner = MyCounter.new([1], %w(--force), behavior: :skip)", "file": "spec/actions_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 72: def shift", "file": "lib/thor/parser/arguments.rb", "symbol": "shift", "line": 72, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "コマンドライン引数の解析ロジックを修正しています。内部で保持している要素のリストから、先頭のアイテムを取り除くメソッドはどこに定義されていますか?", "query": "shift pile", "file": "lib/thor/parser/arguments.rb", "symbol": "shift", "line": 72, "lang": "ja", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "コマンドライン引数の解析ロジックを修正しています。内部で保持している要素のリストから、先頭のアイテムを取り除くメソッドはどこに定義されていますか?", "query": "shift pile", "file": "lib/thor/parser/arguments.rb", "symbol": "shift", "line": 72, "lang": "ja", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=333-356\nread at_least_one for detail", "file": "spec/fixtures/script.thor", "symbol": "at_least_one", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/base_spec.rb lines=6-29\nread hello for detail", "file": "spec/base_spec.rb", "symbol": "hello", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=168-191\nread dasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherize", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=116-139\nread ParentGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ParentGroup", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=2-25\nread Arguments for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Arguments", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=32-55\nread echo? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "echo?", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=69-92\nread initialize for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "initialize", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=129-152\nread subclasses for detail", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=224-247\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=38-61\nread source_paths_for_search for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths_for_search", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=72-95\nread shift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "shift", "line": 72, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=94-117\nread with_args for detail", "file": "spec/register_spec.rb", "symbol": "with_args", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=248-271\nread run for detail", "file": "lib/thor/actions.rb", "symbol": "run", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=17-40\nread create_link for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "create_link", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Como formatar uma mensagem com cor e indentação no Thor?", "query": "format message color", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lang": "pt", "candidates": [{"text": "File: spec/encoding_spec.rb\nLine 15: load_thorfile(\"encoding_other.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 264: def prepare_message(message, *color)", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/base_spec.rb\nLine 335: MyScript.start(%w(foo bar --force true --unknown baz))", "file": "spec/base_spec.rb", "symbol": "", "line": 335, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 71: end", "file": "lib/thor/error.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 3: $VERBOSE = true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 47: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 795: klass = Class.new(Thor) do", "file": "spec/thor_spec.rb", "symbol": "", "line": 795, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 63: describe \"#run\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 16: r.read", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 9: def terminal_width", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 40: expect(parse(\"product\", \"title\", \"age\")[\"array\"]).to eq(%w(title age))", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 27: expect($stdout).to receive(:print).with(\" conflict README\\n\")", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 115: private :private_file_name", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 55: ensure", "file": "spec/helper.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 141: checked ||= !!(content =~ /FOO/)", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 10: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 3: class Help < Thor", "file": "spec/fixtures/help.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 3: $VERBOSE = true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 56: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 41: @pile = args.dup", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 7: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 64: def relative_matches", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 14: subcommand \"sub\", Subcommand", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 16: r.read", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Como formatar uma mensagem com cor e indentação no Thor?", "query": "format message color", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lang": "pt", "candidates": [{"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Como formatar uma mensagem com cor e indentação no Thor?", "query": "format message color", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Como formatar uma mensagem com cor e indentação no Thor?", "query": "format message color", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=230-253\nread switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch?", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=264-287\nread prepare_message for detail", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=37-60\nread diff_lcs_loaded? for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=8-31\nread initialize for detail", "file": "spec/rake_compat_spec.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=3-26\nread EncodingImplicit for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "EncodingImplicit", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=9-32\nread error for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "error", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=64-87\nread last? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=93-116\nread method_missing for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "method_missing", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=11-34\nread HashWithIndifferentAccess for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=35-58\nread dynamic_width_tput for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_tput", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=880-903\nread no_arg for detail", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=446-469\nread remove_class_option for detail", "file": "lib/thor/base.rb", "symbol": "remove_class_option", "line": 446, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=27-50\nread source_root for detail", "file": "lib/thor/actions.rb", "symbol": "source_root", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=179-202\nread boom for detail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "这个方法是怎么判断某个指令是否需要跳过必填项检查的?", "query": "disable required check", "file": "lib/thor.rb", "symbol": "disable_required_check?", "line": 438, "lang": "zh", "candidates": [{"text": "File: lib/thor/runner.rb\nLine 24: self.class.handle_no_command_error(command, false) if klass.nil?", "file": "lib/thor/runner.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 52: def render", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 53: expect(invoke!(\"doc/README\", \"more specific content\\n\")).to(", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 4: lib_path= \"#{gem_dir}/lib\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 38: # Set the terminal's background ANSI color to red.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 27: alias_method :add_file, :create_file", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 8: puts \"Invoked!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 194: expect(@action.exists?).to be false", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 26: class Thor::Shell::TestShell < Thor::Shell::Basic; end", "file": "spec/shell_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 34: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 7: # Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 19: def invoke!(*args, &block)", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 11: args.each do |item|", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 180: Thor::Util.clear_user_home!", "file": "spec/util_spec.rb", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 14: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 321: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 438: def disable_required_check?(command) #:nodoc:", "file": "lib/thor.rb", "symbol": "disable_required_check?", "line": 438, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/invoke.thor\nLine 78: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 15: # create_file \"lib/fun_party.rb\" do", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 169: option(\"foo\", type: :string, default: :bar, check_default_type: true)", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 40: stat = File.stat(File.join(destination_root, \"config/private.key\"))", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "这个方法是怎么判断某个指令是否需要跳过必填项检查的?", "query": "disable required check", "file": "lib/thor.rb", "symbol": "disable_required_check?", "line": 438, "lang": "zh", "candidates": [{"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "这个方法是怎么判断某个指令是否需要跳过必填项检查的?", "query": "disable required check", "file": "lib/thor.rb", "symbol": "disable_required_check?", "line": 438, "lang": "zh", "candidates": [{"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "这个方法是怎么判断某个指令是否需要跳过必填项检查的?", "query": "disable required check", "file": "lib/thor.rb", "symbol": "disable_required_check?", "line": 438, "lang": "zh", "candidates": [{"text": "Next: read spec/subcommand_spec.rb lines=50-73\nread foo for detail", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=37-60\nread diff_lcs_loaded? for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/quality_spec.rb lines=2-25\nread check_for_spec_defs_with_single_quotes for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=438-461\nread disable_required_check? for detail", "file": "lib/thor.rb", "symbol": "disable_required_check?", "line": 438, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/create_link.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=283-306\nread pear for detail", "file": "spec/fixtures/script.thor", "symbol": "pear", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=4-27\nread Base for detail", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=224-247\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=12-35\nread command2 for detail", "file": "spec/tree_spec.rb", "symbol": "command2", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=709-732\nread find_and_refresh_command for detail", "file": "lib/thor/base.rb", "symbol": "find_and_refresh_command", "line": 709, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=157-180\nread MyChildScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyChildScript", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=4-27\nread EncodingWithUtf8 for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=76-99\nread call_myself_with_wrong_arity for detail", "file": "spec/fixtures/script.thor", "symbol": "call_myself_with_wrong_arity", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=16-39\nread parse for detail", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Je cherche la méthode qui définit l'état de sortie pour un processus réussi dans les fichiers de test. Peux-tu me montrer où est défini ce code de retour ?", "query": "exit status ok", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 12: puts \"ok\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 11: puts \"ok\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nLine 14: def ok", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/arguments_spec.rb\nLine 24: expect(parse(\"name\", \"+13\")[\"numeric\"]).to eq(13)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 225: it \"sets a group\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 88: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 8: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 345: before do", "file": "spec/actions_spec.rb", "symbol": "", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 3: class Thor", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 7: # This code was copied from Rake, available under MIT-LICENSE", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 311: end", "file": "spec/base_spec.rb", "symbol": "", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 14: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 402: compiler.pre_cmd = [\"#{eoutvar} = ''.dup\"]", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 402, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 135: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 7: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 2: module LineEditor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 26: # Calculate the dynamic width of the terminal", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 12: puts \"ok\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nLine 6: ruby_lib= ENV[\"RUBYLIB\"].nil? ? lib_path : \"#{lib_path}:#{ENV['RUBYLIB']}\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 27: expect(thor_command(\"ok\")).to eq(0)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 12: expect(capture(:stdout) { Thor::Sandbox::EncodingWithUtf8.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nLine 9: method_options :forcefully => :boolean", "file": "spec/fixtures/command.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 44: # Set the terminal's background ANSI color to blue.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche la méthode qui définit l'état de sortie pour un processus réussi dans les fichiers de test. Peux-tu me montrer où est défini ce code de retour ?", "query": "exit status ok", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\ndefines ok", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Je cherche la méthode qui définit l'état de sortie pour un processus réussi dans les fichiers de test. Peux-tu me montrer où est défini ce code de retour ?", "query": "exit status ok", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lang": "fr", "candidates": [{"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche la méthode qui définit l'état de sortie pour un processus réussi dans les fichiers de test. Peux-tu me montrer où est défini ce code de retour ?", "query": "exit status ok", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lang": "fr", "candidates": [{"text": "Next: read lib/thor.rb lines=671-694\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=179-202\nread boom for detail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=3-26\nread ExitStatus for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ExitStatus", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=296-319\nread file_collision_help for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=28-51\nread ThorTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "ThorTask", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=65-88\nread peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=263-286\nread gsub_file! for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file!", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=56-79\nread exists? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "exists?", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=14-37\nread ok for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=68-91\nread reverse_merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=55-78\nread Parent for detail", "file": "spec/subcommand_spec.rb", "symbol": "Parent", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=12-35\nread command2 for detail", "file": "spec/tree_spec.rb", "symbol": "command2", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=64-87\nread relative_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "relative_matches", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=9-32\nread error for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "error", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=537-560\nread no_commands_context for detail", "file": "lib/thor/base.rb", "symbol": "no_commands_context", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=482-505\nread print_exclusive_options for detail", "file": "lib/thor.rb", "symbol": "print_exclusive_options", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=52-75\nread animal for detail", "file": "spec/register_spec.rb", "symbol": "animal", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=14-37\nread print for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=793-816\nread dispatch for detail", "file": "lib/thor/base.rb", "symbol": "dispatch", "line": 793, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Je cherche la méthode qui permet de lancer une commande en appliquant un retrait ou un espacement dans la console. Comment fonctionne l'encapsulation de l'appel avec la gestion des marges ?", "query": "invoke padding", "file": "lib/thor/invocation.rb", "symbol": "invoke_with_padding", "line": 138, "lang": "fr", "candidates": [{"text": "File: spec/runner_spec.rb\nLine 167: it \"doesn't list superclass commands in the subclass\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 9: @command ||= Thor::Command.new(:can_has, \"I can has cheezburger\", \"I can has cheezburger\\nLots and lots of it\", nil, usage, options)", "file": "spec/command_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 93: end", "file": "lib/thor/error.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 207: end", "file": "spec/util_spec.rb", "symbol": "", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 39: return @diff_lcs_loaded unless @diff_lcs_loaded.nil?", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 7: def bugs", "file": "spec/fixtures/help.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 114: end", "file": "spec/fixtures/group.thor", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 12: else", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 76: # options", "file": "lib/thor.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 885: expect do", "file": "spec/thor_spec.rb", "symbol": "", "line": 885, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 138: # path:: the name of the file to change mode", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 10: describe \"#find_by_namespace\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 10: super(other)", "file": "lib/thor/command.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 34: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 19: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 25: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 13: $main.instance_eval do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 11: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 234: #", "file": "lib/thor.rb", "symbol": "", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 46: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 8: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 17: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 1: require \"rake\"", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 138: def invoke_with_padding(*args)", "file": "lib/thor/invocation.rb", "symbol": "invoke_with_padding", "line": 138, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Je cherche la méthode qui permet de lancer une commande en appliquant un retrait ou un espacement dans la console. Comment fonctionne l'encapsulation de l'appel avec la gestion des marges ?", "query": "invoke padding", "file": "lib/thor/invocation.rb", "symbol": "invoke_with_padding", "line": 138, "lang": "fr", "candidates": [{"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Je cherche la méthode qui permet de lancer une commande en appliquant un retrait ou un espacement dans la console. Comment fonctionne l'encapsulation de l'appel avec la gestion des marges ?", "query": "invoke padding", "file": "lib/thor/invocation.rb", "symbol": "invoke_with_padding", "line": 138, "lang": "fr", "candidates": [{"text": "Next: read lib/thor.rb lines=129-152\nread method_options for detail", "file": "lib/thor.rb", "symbol": "method_options", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=311-334\nread MyOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyOptionScript", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=678-701\nread is_thor_reserved_word? for detail", "file": "lib/thor/base.rb", "symbol": "is_thor_reserved_word?", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=6-29\nread Default for detail", "file": "Thorfile", "symbol": "Default", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/invocation.rb lines=138-161\nread invoke_with_padding for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_with_padding", "line": 138, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=154-177\nread ClassMethods for detail", "file": "lib/thor/base.rb", "symbol": "ClassMethods", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=172-195\nread animal for detail", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=403-426\nread class_exclusive_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=64-87\nread invoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=28-51\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=4-27\nread Thor for detail", "file": "lib/thor/rake_compat.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=276-299\nread thorfiles_relevant_to for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=34-57\nread invoker for detail", "file": "spec/fixtures/invoke.thor", "symbol": "invoker", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=158-181\nread parse_string for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_string", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Estou configurando o Thor para testes e preciso garantir que ele encontre os arquivos corretos na pasta fixtures. Como configuro o diretório raiz das fontes para apontar para o local atual?", "query": "thor source root test", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 101, "lang": "pt", "candidates": [{"text": "File: spec/runner_spec.rb\nLine 35: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 235: merge(destination, yield)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 8: ::FileUtils.cp_r(source_root, destination_root)", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 58: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 62: :string", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 105: end", "file": "lib/thor/error.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 77: when \"revoke\"", "file": "lib/thor/actions.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 452: expect(at_least_ones.first).to eq(%w[one two three])", "file": "spec/thor_spec.rb", "symbol": "", "line": 452, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 60: def invoke!", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 88: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 5: require \"pathname\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 29: source = File.join(source_root, source_path, file)", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nLine 10: #", "file": "lib/thor/util.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 16: source = File.join(source_root, source)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 27: def source_root(path = nil)", "file": "lib/thor/actions.rb", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 101: def self.source_root", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 101, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 62: def source_root", "file": "spec/helper.rb", "symbol": "", "line": 62, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nLine 13: desc \"sub\", \"My subcommand\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 110: it \"add source_root to source_paths_for_search\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 110, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nLine 17: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 21: map \"animal_prison\" => \"zoo\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 108: args.unshift(nil) if args.first.is_a?(Array) || args.first.nil?", "file": "lib/thor/invocation.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 93: expect(@action.exists?).to be false", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estou configurando o Thor para testes e preciso garantir que ele encontre os arquivos corretos na pasta fixtures. Como configuro o diretório raiz das fontes para apontar para o local atual?", "query": "thor source root test", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 101, "lang": "pt", "candidates": [{"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\ndefines source_root", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estou configurando o Thor para testes e preciso garantir que ele encontre os arquivos corretos na pasta fixtures. Como configuro o diretório raiz das fontes para apontar para o local atual?", "query": "thor source root test", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 101, "lang": "pt", "candidates": [{"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=23-46\nread initialize for detail", "file": "lib/thor/invocation.rb", "symbol": "initialize", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=142-165\nread run for detail", "file": "lib/thor/command.rb", "symbol": "run", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Thorfile lines=21-44\nread release for detail", "file": "Thorfile", "symbol": "release", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=103-126\nread truncate for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "truncate", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=71-94\nread default_banner for detail", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=101-124\nread ExclusiveArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "ExclusiveArgumentError", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=424-447\nread stop_on_unknown_option? for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=147-170\nread replacement_present? for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "replacement_present?", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=12-35\nread command2 for detail", "file": "spec/tree_spec.rb", "symbol": "command2", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=68-91\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=101-124\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 101, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/command.rb lines=104-127\nread local_method? for detail", "file": "lib/thor/command.rb", "symbol": "local_method?", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/shell/color_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/color_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=144-167\nread method_missing for detail", "file": "spec/fixtures/script.thor", "symbol": "method_missing", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=1-24\nread LCSDiff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "LCSDiff", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=172-195\nread validate_enum_value! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "validate_enum_value!", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=75-98\nread switch_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "switch_name", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Investigate why the logic for determining if a command-line argument is a boolean flag fails to return a truthy value when passed a string that matches a defined option.", "query": "switch option check", "file": "lib/thor/parser/options.rb", "symbol": "switch?", "line": 230, "lang": "en", "candidates": [{"text": "File: spec/register_spec.rb\nLine 163: context \"with a default command,\" do", "file": "spec/register_spec.rb", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 524: else", "file": "lib/thor.rb", "symbol": "", "line": 524, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 6: option \"--not_help\", :type => :boolean", "file": "spec/fixtures/help.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 19: counter += (word.length + 1)", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 254: expect(parse(%w(-- --verbose))).to eq({})", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 73: protected", "file": "lib/thor/shell.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 3: describe Thor::Shell::HTML do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 308: end.to raise_error(Thor::UndefinedCommandError, 'Could not find command \"what\" in \"my_script\" namespace.')", "file": "spec/base_spec.rb", "symbol": "", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 73: }).print_default).to eq(13)", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 169: @content = capture(:stdout) { MyCounter.help(Thor::Base.shell.new) }", "file": "spec/base_spec.rb", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 171: config = args.last.is_a?(Hash) ? args.pop : {}", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 89: # options.force? # => !!options['force']", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 83: def convert_key(key)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 15: load_thorfile(\"encoding_other.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 11: arguments.sort! { |a, b| b.name <=> a.name }", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 21: it \"returns the shell in use\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 46: end", "file": "spec/command_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 190: end", "file": "spec/register_spec.rb", "symbol": "", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 64: expect(Thor::Runner.start).to be true", "file": "spec/runner_spec.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 290: invoke_with_a_bang! \"idontexist\", before: \"something\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 290, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 8: describe \"#initialize\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 230: def switch?(arg)", "file": "lib/thor/parser/options.rb", "symbol": "switch?", "line": 230, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Investigate why the logic for determining if a command-line argument is a boolean flag fails to return a truthy value when passed a string that matches a defined option.", "query": "switch option check", "file": "lib/thor/parser/options.rb", "symbol": "switch?", "line": 230, "lang": "en", "candidates": [{"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Investigate why the logic for determining if a command-line argument is a boolean flag fails to return a truthy value when passed a string that matches a defined option.", "query": "switch option check", "file": "lib/thor/parser/options.rb", "symbol": "switch?", "line": 230, "lang": "en", "candidates": [{"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=112-135\nread private_file_name for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=52-75\nread render for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "render", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=230-253\nread switch? for detail", "file": "lib/thor/parser/options.rb", "symbol": "switch?", "line": 230, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/parser/options_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/options_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=80-103\nread Defined for detail", "file": "spec/fixtures/invoke.thor", "symbol": "Defined", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=1-24\nread LCSDiff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "LCSDiff", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_link_spec.rb lines=35-58\nread revoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "revoke!", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=50-73\nread PluginInheritingFromClassOptionsGroup for detail", "file": "spec/register_spec.rb", "symbol": "PluginInheritingFromClassOptionsGroup", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=32-55\nread completion_proc for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_proc", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=83-106\nread invoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "invoke!", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=103-126\nread files for detail", "file": "lib/thor/actions/directory.rb", "symbol": "files", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=20-43\nread Error for detail", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=208-231\nread disable_required_check? for detail", "file": "lib/thor/base.rb", "symbol": "disable_required_check?", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=385-408\nread actually_gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "actually_gsub_file", "line": 385, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=97-120\nread parse_hash for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_hash", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=12-35\nread define for detail", "file": "spec/rake_compat_spec.rb", "symbol": "define", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=24-47\nread remaining for detail", "file": "spec/parser/options_spec.rb", "symbol": "remaining", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=126-149\nread on_file_clash_behavior for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_file_clash_behavior", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "find where the shell command for merging is parsed from environment variables", "query": "merge tool shellwords", "file": "lib/thor/shell/basic.rb", "symbol": "merge_tool", "line": 377, "lang": "en", "candidates": [{"text": "File: spec/fixtures/help.thor\nLine 11: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 377: def merge_tool #:nodoc:", "file": "lib/thor/shell/basic.rb", "symbol": "merge_tool", "line": 377, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions_spec.rb\nLine 139: expect { runner.find_in_source_paths(\"README\") }.to raise_error(Thor::Error, /Could not find \"README\" in any of your source paths./)", "file": "spec/actions_spec.rb", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 199: # If true, option parsing is suspended as soon as an unknown option or a", "file": "lib/thor/base.rb", "symbol": "", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 72: # Returns the thor classes declared inside the given class.", "file": "lib/thor/util.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 178: end", "file": "spec/register_spec.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 165: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 137: # Invokes using shell padding.", "file": "lib/thor/invocation.rb", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 62: def source_root", "file": "spec/helper.rb", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 29: it \"allows options to be given as symbols or strings\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 6: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 119: allow(runner.shell).to receive(:merge_tool).and_return(\"meld\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 119, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nLine 16: argument :first, :type => :numeric", "file": "spec/fixtures/group.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 125: \"Shows a provided animal or just zebra\"", "file": "spec/register_spec.rb", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 163: #", "file": "lib/thor/actions.rb", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 9: r,w= IO.pipe", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 8: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 76: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 554: allow(shell).to receive(:merge_tool).and_return(\"meld\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 554, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 180: @switches.map do |_, o|", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 173: revoke! \"doc\"", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 143: allow(@base.shell).to receive(:merge_tool).and_return(\"meld\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 143, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 31: no_commands do", "file": "spec/fixtures/script.thor", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find where the shell command for merging is parsed from environment variables", "query": "merge tool shellwords", "file": "lib/thor/shell/basic.rb", "symbol": "merge_tool", "line": 377, "lang": "en", "candidates": [{"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "find where the shell command for merging is parsed from environment variables", "query": "merge tool shellwords", "file": "lib/thor/shell/basic.rb", "symbol": "merge_tool", "line": 377, "lang": "en", "candidates": [{"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find where the shell command for merging is parsed from environment variables", "query": "merge tool shellwords", "file": "lib/thor/shell/basic.rb", "symbol": "merge_tool", "line": 377, "lang": "en", "candidates": [{"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=42-65\nread completion_options for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_options", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=377-400\nread merge_tool for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge_tool", "line": 377, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=215-238\nread strict_args_position! for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=67-90\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=70-93\nread method_at_least_one_option_names for detail", "file": "lib/thor/command.rb", "symbol": "method_at_least_one_option_names", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=329-352\nread _cleanup_options_and_set for detail", "file": "lib/thor/actions.rb", "symbol": "_cleanup_options_and_set", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=501-524\nread remove_command for detail", "file": "lib/thor/base.rb", "symbol": "remove_command", "line": 501, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=205-228\nread save_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "save_yaml", "line": 205, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/exit_status.thor lines=14-37\nread ok for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=10-33\nread banner for detail", "file": "lib/thor/runner.rb", "symbol": "banner", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=107-130\nread revoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "revoke!", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=276-299\nread apple for detail", "file": "spec/fixtures/script.thor", "symbol": "apple", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=112-135\nread private_file_name for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=179-202\nread names_to_switch_names for detail", "file": "lib/thor/parser/options.rb", "symbol": "names_to_switch_names", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=52-75\nread render for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "render", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=86-109\nread force_or_skip_or_conflict for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_or_skip_or_conflict", "line": 86, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "find where command arguments and options are paired together in tests", "query": "options args pair", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lang": "en", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nLine 138: #", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 1: class Thor", "file": "lib/thor/invocation.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 13: Test.start(ARGV)", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 209: # Adds and declares option group for required at least one of options in the", "file": "lib/thor.rb", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 2: require \"thor/base\"", "file": "spec/encoding_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 8: Bundler::GemHelper.install_tasks", "file": "Thorfile", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 8: describe \"#say\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 9: options[:required] = false unless options.key?(:required)", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 39: # argument :first, :type => :numeric", "file": "lib/thor/shell.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 13: Test.start(ARGV)", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 238: #", "file": "lib/thor/base.rb", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 31: Rake.application.instance_variable_set(:@rakefile, rakefile)", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 102: thor_yaml[as] = {", "file": "lib/thor/runner.rb", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 318: invoke_with_a_bang! \"doc/README.zh\", \"\\n中文\", after: \"__start__\"", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 318, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 19: load_thorfile(\"encoding_implicit.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 188: expect(output.strip).to eql(\"received arguments: actual_argument\")", "file": "spec/register_spec.rb", "symbol": "", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 227: def checked(*args)", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/arguments_spec.rb\nLine 53: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 88: dirname = File.dirname(file_destination).gsub(%r{/\\.$}, \"\")", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 132: spaces = \" \" * (padding + 1)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 139: checked = false", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 139, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 83: usage.to_s", "file": "lib/thor/command.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 304: # ==== Parameters", "file": "lib/thor/base.rb", "symbol": "", "line": 304, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find where command arguments and options are paired together in tests", "query": "options args pair", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lang": "en", "candidates": [{"text": "File: spec/thor_spec.rb\ndefines checked", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nsibling in spec", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nsibling in spec", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nsibling in spec", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "find where command arguments and options are paired together in tests", "query": "options args pair", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find where command arguments and options are paired together in tests", "query": "options args pair", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lang": "en", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=661-684\nread sort_commands! for detail", "file": "lib/thor.rb", "symbol": "sort_commands!", "line": 661, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=722-745\nread inherited for detail", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=231-254\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/terminal.rb lines=9-32\nread terminal_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "terminal_width", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=213-236\nread globs_for for detail", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=80-103\nread ask for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=163-186\nread attr_accessor for detail", "file": "lib/thor/base.rb", "symbol": "attr_accessor", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=132-155\nread on_conflict_behavior for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_conflict_behavior", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=83-106\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=105-128\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 105, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/shell/color_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/color_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=560-583\nread create_command for detail", "file": "lib/thor.rb", "symbol": "create_command", "line": 560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=12-35\nread initialize for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "initialize", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=177-200\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 177, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=76-99\nread unshift for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "unshift", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/terminal.rb lines=1-24\nread Thor for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=57-80\nread AmbiguousCommandError for detail", "file": "lib/thor/error.rb", "symbol": "AmbiguousCommandError", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=115-138\nread say_error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_error", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=291-314\nread gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file", "line": 291, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "パス内の特殊なシェル文字をエスケープするユーティリティ関数を作成してください。これはコマンド実行時のインジェクション対策として使用します。", "query": "shell glob escape", "file": "lib/thor/util.rb", "symbol": "escape_globs", "line": 264, "lang": "ja", "candidates": [{"text": "File: lib/thor/actions.rb\nLine 63: # Extends initializer to add more configuration options.", "file": "lib/thor/actions.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 19: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 82: undef_method :source_root", "file": "spec/fixtures/group.thor", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 84: invoke!", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 104: filename.gsub(/%(.*?)%/) do |initial_string|", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 40: describe \"#dynamic\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 200: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 41: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 3: class Amazing < Thor", "file": "spec/fixtures/command.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 101: \"exciting\",", "file": "spec/register_spec.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 201: describe \"#escape_globs\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 201, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 21: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 25: expect(parse(\"name\", \"+13.3\")[\"numeric\"]).to eq(13.3)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 45: invoke! \"doc\", \"ghost\", pretend: true", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 59: @source = File.expand_path(Dir[Util.escape_globs(base.find_in_source_paths(source.to_s))].first)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nLine 8: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 25: attr_writer :shell", "file": "lib/thor/shell.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 115: /(#{Regexp.escape(replacement)})(.*)(#{flag})/m", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 2: require \"thor\"", "file": "spec/tree_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 5: def print_opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 30: number == 5", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 264: def escape_globs(path)", "file": "lib/thor/util.rb", "symbol": "escape_globs", "line": 264, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/rake_compat_spec.rb\nLine 30: RakeTask.new", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 14: def ok", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "パス内の特殊なシェル文字をエスケープするユーティリティ関数を作成してください。これはコマンド実行時のインジェクション対策として使用します。", "query": "shell glob escape", "file": "lib/thor/util.rb", "symbol": "escape_globs", "line": 264, "lang": "ja", "candidates": [{"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "パス内の特殊なシェル文字をエスケープするユーティリティ関数を作成してください。これはコマンド実行時のインジェクション対策として使用します。", "query": "shell glob escape", "file": "lib/thor/util.rb", "symbol": "escape_globs", "line": 264, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "パス内の特殊なシェル文字をエスケープするユーティリティ関数を作成してください。これはコマンド実行時のインジェクション対策として使用します。", "query": "shell glob escape", "file": "lib/thor/util.rb", "symbol": "escape_globs", "line": 264, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/util.rb lines=4-27\nread Sandbox for detail", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=304-327\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=552-575\nread baseclass for detail", "file": "lib/thor.rb", "symbol": "baseclass", "line": 552, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=164-187\nread undasherize for detail", "file": "lib/thor/parser/option.rb", "symbol": "undasherize", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=129-152\nread subclasses for detail", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=24-47\nread find_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_by_namespace", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/command.thor lines=3-26\nread Amazing for detail", "file": "spec/fixtures/command.thor", "symbol": "Amazing", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=67-90\nread valid_type? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=537-560\nread no_commands_context for detail", "file": "lib/thor/base.rb", "symbol": "no_commands_context", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=264-287\nread escape_globs for detail", "file": "lib/thor/util.rb", "symbol": "escape_globs", "line": 264, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/util_spec.rb lines=4-27\nread clear_user_home! for detail", "file": "spec/util_spec.rb", "symbol": "clear_user_home!", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=180-203\nread print_table for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_table", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=320-343\nread subcommands for detail", "file": "lib/thor.rb", "symbol": "subcommands", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=368-391\nread merge for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge", "line": 368, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=5-28\nread boring for detail", "file": "spec/register_spec.rb", "symbol": "boring", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=199-222\nread printable_commands for detail", "file": "lib/thor/group.rb", "symbol": "printable_commands", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=483-506\nread all_commands for detail", "file": "lib/thor/base.rb", "symbol": "all_commands", "line": 483, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=256-279\nread parse_boolean for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_boolean", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=10-33\nread create_file for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "create_file", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=17-40\nread Util for detail", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Como o código verifica se deve interromper a execução quando encontra uma opção desconhecida em um comando?", "query": "stop unknown option", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lang": "pt", "candidates": [{"text": "File: lib/thor/error.rb\nLine 19: # ensure that developer errors are shown with full backtrace.", "file": "lib/thor/error.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 37: sentence = truncate(sentence)", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 6: #", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 25: ensure", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 29: ENV[\"THOR_SHELL\"] = \"TestShell\"", "file": "spec/shell_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 289: # end", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 38: def part_two", "file": "spec/register_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 102: end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 21: def push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 32: def corrections", "file": "lib/thor/error.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 7: @hardlink_to = File.join(Dir.tmpdir, \"linkdest.rb\")", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 53: #", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 64: when TrueClass, FalseClass", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 67: end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 53: # contents", "file": "lib/thor/util.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 8: puts \"Invoked!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 867: option \"bar\", type: :numeric, default: \"foo\"", "file": "spec/thor_spec.rb", "symbol": "", "line": 867, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 16: expect(out.chomp).to eq('Wow! Now we have colors *and* bold!')", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 18: def subcommand1", "file": "spec/tree_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 95: def print_status", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 213: class_options :force => :boolean", "file": "spec/fixtures/script.thor", "symbol": "", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 47: module SubcommandTest1", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 47: end", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 424: def stop_on_unknown_option?(command) #:nodoc:", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Como o código verifica se deve interromper a execução quando encontra uma opção desconhecida em um comando?", "query": "stop unknown option", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lang": "pt", "candidates": [{"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Como o código verifica se deve interromper a execução quando encontra uma opção desconhecida em um comando?", "query": "stop unknown option", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Como o código verifica se deve interromper a execução quando encontra uma opção desconhecida em um comando?", "query": "stop unknown option", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/error.rb lines=73-96\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=11-34\nread build for detail", "file": "Thorfile", "symbol": "build", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=108-131\nread are_colors_supported? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_supported?", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=145-168\nread register_klass_file for detail", "file": "lib/thor/base.rb", "symbol": "register_klass_file", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=446-469\nread remove_class_option for detail", "file": "lib/thor/base.rb", "symbol": "remove_class_option", "line": 446, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=424-447\nread stop_on_unknown_option? for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=6-29\nread snack for detail", "file": "spec/fixtures/enum.thor", "symbol": "snack", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/basic_spec.rb lines=5-28\nread shell for detail", "file": "spec/shell/basic_spec.rb", "symbol": "shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=138-161\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=32-55\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "LineEditor", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=4-27\nread Sandbox for detail", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Shell", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=5-28\nread initialize for detail", "file": "lib/thor/command.rb", "symbol": "initialize", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=7-30\nread initialize for detail", "file": "lib/thor/parser/option.rb", "symbol": "initialize", "line": 7, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "子クラスのデフォルト設定をテストするための、Thorベースのスクリプトのモックを作成しています。ネームスペースが設定されている、このテスト用データの定義場所を教えてください。", "query": "thor namespace child", "file": "spec/fixtures/script.thor", "symbol": "ChildDefault", "line": 243, "lang": "ja", "candidates": [{"text": "File: lib/thor/nested_context.rb\nLine 19: private", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 14: subcommand \"sub\", Subcommand", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 166: invoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 243: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 5: class_option \"fruit\", :aliases => \"-f\", :type => :string, :enum => %w(apple banana)", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 156: expect do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 243: class ChildDefault < Thor", "file": "spec/fixtures/script.thor", "symbol": "ChildDefault", "line": 243, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/exit_status.thor\nLine 11: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 235: silence(:stdout) { Thor::Runner.start(%w(update random)) }", "file": "spec/runner_spec.rb", "symbol": "", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 255: # Apply color to the given string with optional bold. Disabled in the", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 255, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 96: if args.empty?", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 16: def install", "file": "Thorfile", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 22: expect(MyCounter.new([1, 2]).shell).to be_kind_of(Thor::Base.shell)", "file": "spec/shell_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 109: expect(File.exist?(file)).to be true", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 21: def push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 56: it \"supports the legacy color syntax\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 53: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 20: BLACK = \"\\e[30m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 597: expect(content).not_to match(/Exclusive Options:/)", "file": "spec/thor_spec.rb", "symbol": "", "line": 597, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 47: # directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 29: sub_help = capture(:stdout) { TestSubcommands::Parent.start(%w(sub help print_opt)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 30: else", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 16: expect(Thor::Util.find_by_namespace(\":child\")).to eq(Scripts::ChildDefault)", "file": "spec/util_spec.rb", "symbol": "", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 252: Scripts::ChildDefault, Scripts::Arities, Apple, Pear, MyClassOptionScript, MyOptionScript", "file": "spec/base_spec.rb", "symbol": "", "line": 252, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "子クラスのデフォルト設定をテストするための、Thorベースのスクリプトのモックを作成しています。ネームスペースが設定されている、このテスト用データの定義場所を教えてください。", "query": "thor namespace child", "file": "spec/fixtures/script.thor", "symbol": "ChildDefault", "line": 243, "lang": "ja", "candidates": [{"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\ndefines ChildDefault", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "子クラスのデフォルト設定をテストするための、Thorベースのスクリプトのモックを作成しています。ネームスペースが設定されている、このテスト用データの定義場所を教えてください。", "query": "thor namespace child", "file": "spec/fixtures/script.thor", "symbol": "ChildDefault", "line": 243, "lang": "ja", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=91-114\nread five for detail", "file": "spec/fixtures/invoke.thor", "symbol": "five", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=273-296\nread lookup_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "lookup_color", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=296-319\nread file_collision_help for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision_help", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=43-66\nread indent for detail", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=363-386\nread check_unknown_options? for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options?", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=547-570\nread shell for detail", "file": "spec/thor_spec.rb", "symbol": "shell", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=115-138\nread say_error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_error", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=263-286\nread create_command for detail", "file": "lib/thor/group.rb", "symbol": "create_command", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=16-39\nread parse for detail", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=98-121\nread WhinyGenerator for detail", "file": "spec/fixtures/group.thor", "symbol": "WhinyGenerator", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=95-118\nread RequiredArgumentMissingError for detail", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=243-266\nread ChildDefault for detail", "file": "spec/fixtures/script.thor", "symbol": "ChildDefault", "line": 243, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/rake_compat.rb lines=41-64\nread task for detail", "file": "lib/thor/rake_compat.rb", "symbol": "task", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=614-637\nread handle_no_command_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_no_command_error", "line": 614, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=38-61\nread source_paths_for_search for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths_for_search", "line": 38, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "기존 데이터에 새로운 값을 덮어쓰지 않고, 누락된 키와 값만 추가하여 원본 객체를 직접 수정하는 기능이 제대로 동작하지 않습니다.", "query": "reverse merge bang", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lang": "ko", "candidates": [{"text": "File: spec/tree_spec.rb\nLine 22: desc \"sub\", \"Subcommands\"", "file": "spec/tree_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 278: shell.say command.description", "file": "lib/thor.rb", "symbol": "", "line": 278, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 92: else", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 198: end", "file": "spec/base_spec.rb", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 81: allow(ENV).to receive(:[]).with(\"NO_COLOR\").and_return(\"non-empty string value\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 126: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 10: def describe(name, opts)", "file": "spec/fixtures/command.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 67: def one", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 88: say_status :force, :yellow", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 106: content = capture(:stdout) { E.help(Thor::Base.shell.new) }", "file": "spec/group_spec.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 68: def reverse_merge!(other_hash)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nLine 74: nil", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 13: desc \"ok\", \"exit with no error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 6: option \"--not_help\", :type => :boolean", "file": "spec/fixtures/help.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 426: it \"logs status\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 426, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 20: desc \"release\", \"Create tag v#{Thor::VERSION} and build and push thor-#{Thor::VERSION}.gem to Rubygems\"", "file": "Thorfile", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 428: expect(action(:gsub_file!, \"doc/README\", \"__start__\", \"START\", force: true)).to eq(\" gsub doc/README\\n\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 428, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 15: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 20: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 823: end", "file": "lib/thor/base.rb", "symbol": "", "line": 823, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 180: expect do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "기존 데이터에 새로운 값을 덮어쓰지 않고, 누락된 키와 값만 추가하여 원본 객체를 직접 수정하는 기능이 제대로 동작하지 않습니다.", "query": "reverse merge bang", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lang": "ko", "candidates": [{"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "기존 데이터에 새로운 값을 덮어쓰지 않고, 누락된 키와 값만 추가하여 원본 객체를 직접 수정하는 기능이 제대로 동작하지 않습니다.", "query": "reverse merge bang", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=11-34\nread HashWithIndifferentAccess for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/quality_spec.rb lines=2-25\nread check_for_spec_defs_with_single_quotes for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_spec_defs_with_single_quotes", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=68-91\nread reverse_merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=269-292\nread multiple_usages for detail", "file": "spec/fixtures/script.thor", "symbol": "multiple_usages", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=283-306\nread pear for detail", "file": "spec/fixtures/script.thor", "symbol": "pear", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=75-98\nread execute! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "execute!", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=9-32\nread terminal_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "terminal_width", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=249-272\nread banner for detail", "file": "lib/thor/group.rb", "symbol": "banner", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=173-196\nread check_unknown_options for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=27-50\nread delete for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "delete", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=27-50\nread included for detail", "file": "lib/thor/rake_compat.rb", "symbol": "included", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=21-44\nread push for detail", "file": "lib/thor/nested_context.rb", "symbol": "push", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=59-82\nread foo for detail", "file": "spec/fixtures/script.thor", "symbol": "foo", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=33-56\nread part_one for detail", "file": "spec/register_spec.rb", "symbol": "part_one", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=2-25\nread CoreExt for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "CoreExt", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=107-130\nread show_default? for detail", "file": "lib/thor/parser/option.rb", "symbol": "show_default?", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=12-35\nread initialize for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "initialize", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=107-130\nread revoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "revoke!", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=221-244\nread MyDefaults for detail", "file": "spec/fixtures/script.thor", "symbol": "MyDefaults", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/argument.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Ich arbeite gerade an den CLI-Befehlen und muss sicherstellen, dass Pfadänderungen sauber zurückgesetzt werden. Gibt es eine Methode, die einen Block direkt im obersten Verzeichnis des Zielpfad-Stacks ausführt?", "query": "execute block root", "file": "lib/thor/actions.rb", "symbol": "in_root", "line": 200, "lang": "de", "candidates": [{"text": "File: lib/thor/shell/table_printer.rb\nLine 31: sentence = \"\".dup", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 207: describe \"#in_root\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 207, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 200: def in_root", "file": "lib/thor/actions.rb", "symbol": "in_root", "line": 200, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/basic.rb\nLine 99: return if quiet?", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 490: # are inheriting from another class and don't want it to be available", "file": "lib/thor/base.rb", "symbol": "", "line": 490, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 5: module LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 20: task :super do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 215: describe \"when a block is given\" do", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 5: def argument(name, options = {})", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 25: expect do", "file": "spec/group_spec.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 14: def ok", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 10: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 18: memo = \"#{memo} #{word}\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 4: lib_path= \"#{gem_dir}/lib\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 10: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 115: expect(ClearCounter.source_paths_for_search).to include(File.expand_path(\"fixtures/bundle\", File.dirname(__FILE__)))", "file": "spec/actions_spec.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 13: $main.instance_eval do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 72: case type", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 56: formatted_specific_usage += required_arguments_for(klass, specific_usage)", "file": "lib/thor/command.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 5: @shell ||= Thor::Shell::HTML.new", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 76: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 12: expect(capture(:stdout) { Thor::Sandbox::EncodingWithUtf8.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 208: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 22: action add_file create_file in_root inside run run_ruby_script)", "file": "lib/thor/base.rb", "symbol": "", "line": 22, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Ich arbeite gerade an den CLI-Befehlen und muss sicherstellen, dass Pfadänderungen sauber zurückgesetzt werden. Gibt es eine Methode, die einen Block direkt im obersten Verzeichnis des Zielpfad-Stacks ausführt?", "query": "execute block root", "file": "lib/thor/actions.rb", "symbol": "in_root", "line": 200, "lang": "de", "candidates": [{"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Ich arbeite gerade an den CLI-Befehlen und muss sicherstellen, dass Pfadänderungen sauber zurückgesetzt werden. Gibt es eine Methode, die einen Block direkt im obersten Verzeichnis des Zielpfad-Stacks ausführt?", "query": "execute block root", "file": "lib/thor/actions.rb", "symbol": "in_root", "line": 200, "lang": "de", "candidates": [{"text": "Import (outbound): lib/thor/actions.rb -> actions/directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/file_manipulation", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/inject_into_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> revoke", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/empty_directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Ich arbeite gerade an den CLI-Befehlen und muss sicherstellen, dass Pfadänderungen sauber zurückgesetzt werden. Gibt es eine Methode, die einen Block direkt im obersten Verzeichnis des Zielpfad-Stacks ausführt?", "query": "execute block root", "file": "lib/thor/actions.rb", "symbol": "in_root", "line": 200, "lang": "de", "candidates": [{"text": "Next: read spec/thor_spec.rb lines=811-834\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 811, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=556-579\nread dynamic_command_class for detail", "file": "lib/thor.rb", "symbol": "dynamic_command_class", "line": 556, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=200-223\nread in_root for detail", "file": "lib/thor/actions.rb", "symbol": "in_root", "line": 200, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=96-119\nread name_with_dashes for detail", "file": "spec/fixtures/script.thor", "symbol": "name_with_dashes", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=434-457\nread disable_required_check! for detail", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=33-56\nread part_one for detail", "file": "spec/register_spec.rb", "symbol": "part_one", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=678-701\nread is_thor_reserved_word? for detail", "file": "lib/thor/base.rb", "symbol": "is_thor_reserved_word?", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=85-108\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=30-53\nread current_command_chain for detail", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=27-50\nread delete for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "delete", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=37-60\nread diff_lcs_loaded? for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "diff_lcs_loaded?", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=83-106\nread windows? for detail", "file": "spec/helper.rb", "symbol": "windows?", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=6-29\nread Default for detail", "file": "Thorfile", "symbol": "Default", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=109-132\nread CommandConflict for detail", "file": "spec/fixtures/group.thor", "symbol": "CommandConflict", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=671-694\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=114-137\nread handle_argument_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_argument_error?", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=59-82\nread no_or_skip? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "imprime las opciones de la consola con sus descripciones y valores por defecto", "query": "print options shell", "file": "lib/thor/base.rb", "symbol": "print_options", "line": 657, "lang": "es", "candidates": [{"text": "File: lib/thor/group.rb\nLine 31: shell.say \" #{banner}\\n\"", "file": "lib/thor/group.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 80: true", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 28: say \"- #{diff.old_element.chomp}\", :red, true", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 47: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 158: it \"includes the plugin's usage in the help\" do", "file": "spec/register_spec.rb", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 657: def print_options(shell, options, group_name = nil)", "file": "lib/thor/base.rb", "symbol": "print_options", "line": 657, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/nested_context.rb\nLine 23: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 1: require \"thor\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 4: require \"coveralls\"", "file": "spec/helper.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 7: include Thor::RakeCompat", "file": "Thorfile", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 16: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 5: # Create a new file relative to the destination root with the given data,", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 53: shell.ask \"Is this green on white?\", [:green, :on_white, :bold]", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 7: expect(barn_help).to include(\"barn help [COMMAND] # Describe subcommands or one specific subcommand\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 6: # destination:: the relative path to the destination root.", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 540: it \"accepts a block\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 540, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 21: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 10: if SOME_STRING.encoding.name == \"UTF-8\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 9: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 128: validate_default_type!", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 42: def completion_options", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 5: module Shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 53: if enum.respond_to? :join", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 10: pid= spawn({\"RUBYLIB\" => ruby_lib},", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "imprime las opciones de la consola con sus descripciones y valores por defecto", "query": "print options shell", "file": "lib/thor/base.rb", "symbol": "print_options", "line": 657, "lang": "es", "candidates": [{"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "imprime las opciones de la consola con sus descripciones y valores por defecto", "query": "print options shell", "file": "lib/thor/base.rb", "symbol": "print_options", "line": 657, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "imprime las opciones de la consola con sus descripciones y valores por defecto", "query": "print options shell", "file": "lib/thor/base.rb", "symbol": "print_options", "line": 657, "lang": "es", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=333-356\nread at_least_one for detail", "file": "spec/fixtures/script.thor", "symbol": "at_least_one", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/html_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/html_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=20-43\nread Error for detail", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=127-150\nread ChildGroup for detail", "file": "spec/fixtures/group.thor", "symbol": "ChildGroup", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=314-337\nread uncomment_lines for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "uncomment_lines", "line": 314, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/shell/color_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/color_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/arguments_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/arguments_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=133-156\nread invoke_all for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_all", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=38-61\nread source_paths_for_search for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths_for_search", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=657-680\nread print_options for detail", "file": "lib/thor/base.rb", "symbol": "print_options", "line": 657, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=258-281\nread set_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "set_color", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=91-114\nread required_options for detail", "file": "lib/thor/command.rb", "symbol": "required_options", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=552-575\nread baseclass for detail", "file": "lib/thor.rb", "symbol": "baseclass", "line": 552, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=211-234\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=45-68\nread install for detail", "file": "lib/thor/runner.rb", "symbol": "install", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=26-49\nread insert_into_file! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "指定したディレクトリに移動してブロックを実行し、スタックを管理する仕組みはどこにありますか?", "query": "destination_stack push pop", "file": "lib/thor/actions.rb", "symbol": "inside", "line": 170, "lang": "ja", "candidates": [{"text": "File: spec/fixtures/command.thor\nLine 9: method_options :forcefully => :boolean", "file": "spec/fixtures/command.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 35: #", "file": "lib/thor/shell.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 581: \"Call desc if you want this method to be available as command or declare it inside a \" \\", "file": "lib/thor.rb", "symbol": "", "line": 581, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nLine 269: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 113: #", "file": "lib/thor/util.rb", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 80: desc \"call_unexistent_method\", \"Call unexistent method inside a command\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 80, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\nLine 9: # source:: the relative path to the source root.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 35: elsif completion_options.any?", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 89: cell = \"\".dup", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 3: class Amazing < Thor", "file": "spec/fixtures/command.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 168: it \"returns the value yielded by the block\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 170: def inside(dir = \"\", config = {}, &block)", "file": "lib/thor/actions.rb", "symbol": "inside", "line": 170, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 16: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 86: invoker.inside \"doc\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 86, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nLine 15: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 29: @default.map(&:dump).join(\" \")", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 90: It even has two paragraphs.", "file": "spec/fixtures/script.thor", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 22: action add_file create_file in_root inside run run_ruby_script)", "file": "lib/thor/base.rb", "symbol": "", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 20: # Mute everything that's inside given block", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\nLine 396: end", "file": "lib/thor/base.rb", "symbol": "", "line": 396, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 10: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 63: runner.inside(\"doc\") do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 63, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 61: empty_directory(\"doc\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 189: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "指定したディレクトリに移動してブロックを実行し、スタックを管理する仕組みはどこにありますか?", "query": "destination_stack push pop", "file": "lib/thor/actions.rb", "symbol": "inside", "line": 170, "lang": "ja", "candidates": [{"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "指定したディレクトリに移動してブロックを実行し、スタックを管理する仕組みはどこにありますか?", "query": "destination_stack push pop", "file": "lib/thor/actions.rb", "symbol": "inside", "line": 170, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor/actions.rb -> actions/empty_directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/file_manipulation", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> revoke", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/inject_into_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/directory", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "指定したディレクトリに移動してブロックを実行し、スタックを管理する仕組みはどこにありますか?", "query": "destination_stack push pop", "file": "lib/thor/actions.rb", "symbol": "inside", "line": 170, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=368-391\nread merge for detail", "file": "lib/thor/shell/basic.rb", "symbol": "merge", "line": 368, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=170-193\nread inside for detail", "file": "lib/thor/actions.rb", "symbol": "inside", "line": 170, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=131-154\nread validate_default_type! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate_default_type!", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=123-146\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=219-242\nread strict_args_position for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=17-40\nread ClassMethods for detail", "file": "lib/thor/actions.rb", "symbol": "ClassMethods", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=115-138\nread H for detail", "file": "spec/fixtures/invoke.thor", "symbol": "H", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=110-133\nread G for detail", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=194-217\nread thor_yaml for detail", "file": "lib/thor/runner.rb", "symbol": "thor_yaml", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=46-69\nread use_path_completion? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "use_path_completion?", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=31-54\nread file for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=7-30\nread command1 for detail", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=117-140\nread with_optional for detail", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=123-146\nread version for detail", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=8-31\nread Thor for detail", "file": "lib/thor/actions.rb", "symbol": "Thor", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=52-75\nread animal for detail", "file": "spec/register_spec.rb", "symbol": "animal", "line": 52, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "busca la lógica que ordena y luego invierte una colección de instrucciones", "query": "sort reverse commands", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lang": "es", "candidates": [{"text": "File: spec/actions/inject_into_file_spec.rb\nLine 241: end.to raise_error(Thor::Error, \"The content of #{destination_root}/doc/README did not change\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 241, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 147: end", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 57: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 103: ARGV.replace %w(my_script:call_unexistent_method)", "file": "spec/runner_spec.rb", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 35: def self.sort_commands!(list)", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/tree_spec.rb\nLine 5: desc \"command1\", \"A top level command\"", "file": "spec/tree_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 287: type: :boolean,", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 287, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 254: invoke_with_a_bang! \"doc/README\", before: /(__end__)/ do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 69: expect(File.exist?(File.join(base.destination_root, \"ghost\"))).to be false", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 49: describe \"accessors\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 9: it \"sets shell value\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 2: module Invocation", "file": "lib/thor/invocation.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 16: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 10: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 364: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 364, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 309: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 309, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 14: it \"sets bold if specified\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 141: desc \"update NAME\", \"Update a Thor file from its original location\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 55: empty_directory(\"doc\")", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 70: end", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 341: expect(MyScript.start(%w(with_optional NAME --omg --invalid))).to eq([\"NAME\", {}, %w(--omg --invalid)])", "file": "spec/base_spec.rb", "symbol": "", "line": 341, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 22: Rake::Task[\"release\"].invoke", "file": "Thorfile", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 30: rakefile = File.basename(caller[0].match(/(.*):\\d+/)[1])", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 38: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/Another top level command/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "busca la lógica que ordena y luego invierte una colección de instrucciones", "query": "sort reverse commands", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lang": "es", "candidates": [{"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nsibling in spec", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nsibling in spec", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nsibling in spec", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\ndefines sort_commands!", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nsibling in spec", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "busca la lógica que ordena y luego invierte una colección de instrucciones", "query": "sort reverse commands", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lang": "es", "candidates": [{"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "busca la lógica que ordena y luego invierte una colección de instrucciones", "query": "sort reverse commands", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lang": "es", "candidates": [{"text": "Next: read spec/helper.rb lines=72-95\nread silence_warnings for detail", "file": "spec/helper.rb", "symbol": "silence_warnings", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=17-40\nread invoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=177-200\nread check_unknown_options? for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=67-90\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=66-89\nread PluginWithDefaultMultipleArguments for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefaultMultipleArguments", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=783-806\nread create_command for detail", "file": "lib/thor/base.rb", "symbol": "create_command", "line": 783, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=126-149\nread validate! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate!", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=35-58\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 35, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=4-27\nread shell for detail", "file": "spec/sort_spec.rb", "symbol": "shell", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=8-31\nread initialize for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=61-84\nread namespace for detail", "file": "lib/thor/rake_compat.rb", "symbol": "namespace", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=9-32\nread error for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "error", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=104-127\nread can_display_colors? for detail", "file": "lib/thor/shell/color.rb", "symbol": "can_display_colors?", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/shell/color_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/color_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=30-53\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 30, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Como esse método recebe os dados e passa as configurações para a classe pai?", "query": "initialize data config", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lang": "pt", "candidates": [{"text": "File: spec/parser/argument_spec.rb\nLine 31: end.to raise_error(ArgumentError, \"An argument cannot have an enum other than an enumerable.\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 14: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 147: end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 14: puts \"expected #{SOME_STRING.encoding.name} to equal UTF-8\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 8: def initialize", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nLine 6: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 72: def initialize(args = [], options = {}, config = {})", "file": "lib/thor/actions.rb", "symbol": "", "line": 72, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nLine 42: before do", "file": "spec/sort_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 854: it \"allows incompatible types if `check_default_type: false` is given\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 854, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 69: @formats << \"%s\"", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 13: def initialize #:nodoc:", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nLine 14: ].detect(&:available?)", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 148: self.options = options.merge(\"as\" => name)", "file": "lib/thor/runner.rb", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 3: class Help < Thor", "file": "spec/fixtures/help.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 35: def initialize(base, destination, data, config = {})", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/arguments.rb\nLine 26: def initialize(arguments = [])", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 23: def initialize(args = [], options = {}, config = {}, &block) #:nodoc:", "file": "lib/thor/invocation.rb", "symbol": "", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 133: end", "file": "lib/thor/command.rb", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 54: def initialize(text)", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 348: # remove_file 'app/controllers/application_controller.rb'", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 348, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 21: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 330: expect(File.read(file)).to eq(\"__start__\\nmore content\\nREADME\\n__end__\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 330, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 11: expect do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 47: end", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Como esse método recebe os dados e passa as configurações para a classe pai?", "query": "initialize data config", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lang": "pt", "candidates": [{"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Como esse método recebe os dados e passa as configurações para a classe pai?", "query": "initialize data config", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Como esse método recebe os dados e passa as configurações para a classe pai?", "query": "initialize data config", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lang": "pt", "candidates": [{"text": "Next: read lib/thor.rb lines=546-569\nread banner for detail", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=22-45\nread create_file for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "create_file", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=304-327\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=307-330\nread class_options for detail", "file": "lib/thor/base.rb", "symbol": "class_options", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=65-88\nread baz for detail", "file": "spec/fixtures/script.thor", "symbol": "baz", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=78-101\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=493-516\nread print_at_least_one_required_options for detail", "file": "lib/thor.rb", "symbol": "print_at_least_one_required_options", "line": 493, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=38-61\nread source_paths_for_search for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths_for_search", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=35-58\nread initialize for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "initialize", "line": 35, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=105-128\nread wrong_arity for detail", "file": "spec/fixtures/group.thor", "symbol": "wrong_arity", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=482-505\nread print_exclusive_options for detail", "file": "lib/thor.rb", "symbol": "print_exclusive_options", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=45-68\nread identical? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "identical?", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=49-72\nread directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "directory", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=153-176\nread what for detail", "file": "spec/fixtures/script.thor", "symbol": "what", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=216-239\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=239-262\nread inject_into_module for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_module", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=55-78\nread Directory for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Directory", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=21-44\nread base for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "base", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=59-82\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "O prompt de entrada do terminal não está retornando o valor padrão quando o usuário apenas pressiona Enter sem digitar nada.", "query": "readline default value", "file": "lib/thor/shell/basic.rb", "symbol": "ask_simply", "line": 330, "lang": "pt", "candidates": [{"text": "File: lib/thor/command.rb\nLine 68: end", "file": "lib/thor/command.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 17: end", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 30: # source:: Relative path to the source of this file", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 22: @base ||= MyCounter.new([1, 2], {}, destination_root: destination_root)", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 19: p 3", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 330: def ask_simply(statement, color, options)", "file": "lib/thor/shell/basic.rb", "symbol": "ask_simply", "line": 330, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/error.rb\nLine 43: def initialize(command, all_commands, namespace)", "file": "lib/thor/error.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 2: require \"thor/base\"", "file": "spec/encoding_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 64: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 13: w.close", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 274: # Run a regular expression replacement on a file.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 15: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 75: # Allow shell to be shared between invocations.", "file": "lib/thor/shell.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 13: desc \"sub\", \"My subcommand\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 171: expect(invoke!) .to eq(\" file_clash doc/config\\n\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 48: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 43: `git ls-files`.split(\"\\n\").each do |filename|", "file": "spec/quality_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 192: if item == \"shotgun\"", "file": "spec/fixtures/script.thor", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 191: Thor::Util.thor_root", "file": "lib/thor/runner.rb", "symbol": "", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 448: it \"returns the at least one of option names for the class\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 448, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 672: shell.say(group_name ? \"#{group_name} options:\" : \"Options:\")", "file": "lib/thor/base.rb", "symbol": "", "line": 672, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 24: GREEN = \"\\e[32m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 37: it \"escapes HTML content when not using the default colors\" do", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 36: match(&:empty?)", "file": "spec/quality_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "O prompt de entrada do terminal não está retornando o valor padrão quando o usuário apenas pressiona Enter sem digitar nada.", "query": "readline default value", "file": "lib/thor/shell/basic.rb", "symbol": "ask_simply", "line": 330, "lang": "pt", "candidates": [{"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "O prompt de entrada do terminal não está retornando o valor padrão quando o usuário apenas pressiona Enter sem digitar nada.", "query": "readline default value", "file": "lib/thor/shell/basic.rb", "symbol": "ask_simply", "line": 330, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "O prompt de entrada do terminal não está retornando o valor padrão quando o usuário apenas pressiona Enter sem digitar nada.", "query": "readline default value", "file": "lib/thor/shell/basic.rb", "symbol": "ask_simply", "line": 330, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=248-271\nread parsing_options? for detail", "file": "lib/thor/parser/options.rb", "symbol": "parsing_options?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=50-73\nread PluginInheritingFromClassOptionsGroup for detail", "file": "spec/register_spec.rb", "symbol": "PluginInheritingFromClassOptionsGroup", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=86-109\nread force_or_skip_or_conflict for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_or_skip_or_conflict", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=3-26\nread Subcommand for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Subcommand", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=730-753\nread method_added for detail", "file": "lib/thor/base.rb", "symbol": "method_added", "line": 730, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=594-617\nread initialize_added for detail", "file": "lib/thor.rb", "symbol": "initialize_added", "line": 594, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=104-127\nread camel_case for detail", "file": "lib/thor/util.rb", "symbol": "camel_case", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=89-112\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=172-195\nread get_options_from_invocations for detail", "file": "lib/thor/group.rb", "symbol": "get_options_from_invocations", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=19-42\nread parse for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=330-353\nread ask_simply for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_simply", "line": 330, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=191-214\nread open for detail", "file": "spec/fixtures/script.thor", "symbol": "open", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=434-457\nread disable_required_check! for detail", "file": "lib/thor.rb", "symbol": "disable_required_check!", "line": 434, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=5-28\nread create for detail", "file": "spec/parser/options_spec.rb", "symbol": "create", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "find where the exception is initialized for missing commands including namespace formatting", "query": "could not find command", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 43, "lang": "en", "candidates": [{"text": "File: spec/encoding_spec.rb\nLine 18: it \"has implicit UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 56: data", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 261: # end", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 51: end", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 15: word = word.gsub(/\\n\\005/, \"\\n\").gsub(/\\005/, \"\\n\")", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 92: as = ask(\"Please specify a name for #{name} in the system repository [#{basename}]:\")", "file": "lib/thor/runner.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 295: describe \"#from_superclass\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 295, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 43: def initialize(command, all_commands, namespace)", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 43, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/base_spec.rb\nLine 12: describe \"#initialize\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 67: shell.padding += 1", "file": "lib/thor/shell.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 35: def initialize(base, destination, data, config = {})", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 5: def initialize(name, description, long_description, wrap_long_description, usage, options = nil, options_relation = nil)", "file": "lib/thor/command.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 85: it \"copies files from the source relative to the current path\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 542: expect { parse(\"--limit\", \"3\") }.to raise_error(Thor::MalformattedArgumentError,", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 542, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 242: stub_request(:get, @file)", "file": "spec/actions_spec.rb", "symbol": "", "line": 242, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 145: expected_type = (@repeatable && @type != :hash) ? :array : @type", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 79: expect(invoke!).to eq(\" create doc/config.rb\\n\")", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 84: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 139: super(name.to_s, \"A dynamically-generated command\", name.to_s, nil, name.to_s, options)", "file": "lib/thor/command.rb", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 8: def initialize(name, options = {})", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 54: def initialize(text)", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nLine 10: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 7: def initialize(name, options = {})", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find where the exception is initialized for missing commands including namespace formatting", "query": "could not find command", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 43, "lang": "en", "candidates": [{"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find where the exception is initialized for missing commands including namespace formatting", "query": "could not find command", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 43, "lang": "en", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=253-276\nread zero_args for detail", "file": "spec/fixtures/script.thor", "symbol": "zero_args", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=104-127\nread F for detail", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=24-47\nread UndefinedCommandError for detail", "file": "lib/thor/error.rb", "symbol": "UndefinedCommandError", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=20-43\nread Error for detail", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=86-109\nread force_or_skip_or_conflict for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_or_skip_or_conflict", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=10-33\nread Parent for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=269-292\nread multiple_usages for detail", "file": "spec/fixtures/script.thor", "symbol": "multiple_usages", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=42-65\nread formatted_usage for detail", "file": "lib/thor/command.rb", "symbol": "formatted_usage", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=64-87\nread reverse_merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=363-386\nread check_unknown_options? for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options?", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=185-208\nread Barn for detail", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=129-152\nread subclasses for detail", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=50-73\nread foo for detail", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=53-76\nread remaining for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "remaining", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=689-712\nread build_option for detail", "file": "lib/thor/base.rb", "symbol": "build_option", "line": 689, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=43-66\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 43, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions.rb lines=89-112\nread action for detail", "file": "lib/thor/actions.rb", "symbol": "action", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I'm trying to figure out how to track the sequence of nested commands being executed. Is there a way to retrieve the full list of active subcommands as symbols?", "query": "command chain symbols", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lang": "en", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nLine 79: else", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 66: it \"preserves no-cap strings\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 16: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 208: # ==== Examples", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 8: def initialize", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 21: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 253: end.strip).to eq(\"Unknown switches \\\"--foo\\\", \\\"--bar\\\"\")", "file": "spec/thor_spec.rb", "symbol": "", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 60: end", "file": "spec/command_spec.rb", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 65: describe \"#snake_case\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 33: Thor::Base.shell = shell.class", "file": "spec/shell_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 30: def current_command_chain", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 14: puts \"expected #{SOME_STRING.encoding.name} to equal UTF-8\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 34: # shell:: An instance of the shell to be used.", "file": "lib/thor/shell.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 271: it \"logs its status\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 109: stdout.tty? && ENV[\"TERM\"] != \"dumb\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 1: module ApplicationHelper", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 453: action(:gsub_file, \"doc/README\", \"__start__\") { |match| match.gsub(\"__\", \"\").upcase }", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 453, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 53: @shell ||= Thor::Base.shell.new", "file": "lib/thor/shell.rb", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 123: current_command_chain", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 123, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 9: it \"sets shell value\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 14: def ok", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 24: end", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 1: require \"helper\"", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm trying to figure out how to track the sequence of nested commands being executed. Is there a way to retrieve the full list of active subcommands as symbols?", "query": "command chain symbols", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lang": "en", "candidates": [{"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm trying to figure out how to track the sequence of nested commands being executed. Is there a way to retrieve the full list of active subcommands as symbols?", "query": "command chain symbols", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lang": "en", "candidates": [{"text": "Next: read lib/thor/error.rb lines=62-85\nread InvocationError for detail", "file": "lib/thor/error.rb", "symbol": "InvocationError", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=589-612\nread defined_in_gem? for detail", "file": "lib/thor.rb", "symbol": "defined_in_gem?", "line": 589, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=424-447\nread stop_on_unknown_option? for detail", "file": "lib/thor.rb", "symbol": "stop_on_unknown_option?", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=72-95\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/create_link_spec.rb lines=31-54\nread invoke! for detail", "file": "spec/actions/create_link_spec.rb", "symbol": "invoke!", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=289-312\nread display_klasses for detail", "file": "lib/thor/runner.rb", "symbol": "display_klasses", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=190-213\nread thor_root for detail", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=360-383\nread answer_match for detail", "file": "lib/thor/shell/basic.rb", "symbol": "answer_match", "line": 360, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=143-166\nread content for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=79-102\nread shift for detail", "file": "lib/thor/parser/options.rb", "symbol": "shift", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=247-270\nread Arities for detail", "file": "spec/fixtures/script.thor", "symbol": "Arities", "line": 247, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=231-254\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=10-33\nread describe for detail", "file": "spec/fixtures/command.thor", "symbol": "describe", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=215-238\nread strict_args_position! for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position!", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=288-311\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=30-53\nread current_command_chain for detail", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Ich schreibe gerade die Tests für die Verzeichnis-Aktionen. Kannst du mir die Hilfsmethode zeigen, die prüft, ob bestimmte Dateien in einem Zielordner vorhanden sind und inhaltlich mit der Quelle übereinstimmen?", "query": "identical file check", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lang": "de", "candidates": [{"text": "File: lib/thor/invocation.rb\nLine 178: end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 67: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 37: DidYouMean::SpellChecker.new(dictionary: error.all_commands)", "file": "lib/thor/error.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 63: end", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 25: when \"+\"", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 72: end", "file": "lib/thor/runner.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 11: desc \"two\", \"invoke two\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 27: def exists_and_identical?(source_path, destination_path)", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/invocation.rb\nLine 2: module Invocation", "file": "lib/thor/invocation.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 66: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 42: expect(capture(:stdout) { base.say_status :padding, \"cool\" }.strip).to eq(\"padding cool\")", "file": "spec/shell_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 8: desc \"error\", \"exit with a planned error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 55: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 47: end", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 402: [\"Name\", \"Number\", \"Color\"], # rubocop: disable Style/WordArray", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 402, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 2: require \"thor\"", "file": "spec/tree_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 39: # argument :first, :type => :numeric", "file": "lib/thor/shell.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 11: puts \"ok\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 102: # String", "file": "lib/thor/util.rb", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 28: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 55: class Directory < EmptyDirectory #:nodoc:", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 56: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Ich schreibe gerade die Tests für die Verzeichnis-Aktionen. Kannst du mir die Hilfsmethode zeigen, die prüft, ob bestimmte Dateien in einem Zielordner vorhanden sind und inhaltlich mit der Quelle übereinstimmen?", "query": "identical file check", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lang": "de", "candidates": [{"text": "File: spec/actions/create_link_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\ndefines exists_and_identical?", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nsibling in spec/actions", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Ich schreibe gerade die Tests für die Verzeichnis-Aktionen. Kannst du mir die Hilfsmethode zeigen, die prüft, ob bestimmte Dateien in einem Zielordner vorhanden sind und inhaltlich mit der Quelle übereinstimmen?", "query": "identical file check", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lang": "de", "candidates": [{"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> thor/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Ich schreibe gerade die Tests für die Verzeichnis-Aktionen. Kannst du mir die Hilfsmethode zeigen, die prüft, ob bestimmte Dateien in einem Zielordner vorhanden sind und inhaltlich mit der Quelle übereinstimmen?", "query": "identical file check", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lang": "de", "candidates": [{"text": "Next: read spec/fixtures/script.thor lines=133-156\nread potentially_ambiguous for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=68-91\nread ClearCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "ClearCounter", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=21-44\nread release for detail", "file": "Thorfile", "symbol": "release", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=38-61\nread part_two for detail", "file": "spec/register_spec.rb", "symbol": "part_two", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=40-63\nread animal for detail", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=138-161\nread potentially_ambiguous_but_hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous_but_hidden", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoker", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/directory_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=114-137\nread handle_argument_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_argument_error?", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=127-150\nread J for detail", "file": "spec/fixtures/invoke.thor", "symbol": "J", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=157-180\nread MyChildScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyChildScript", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=173-196\nread check_unknown_options for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=10-33\nread describe for detail", "file": "spec/fixtures/command.thor", "symbol": "describe", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=123-146\nread say_status for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "say_status", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=155-178\nread attr_reader for detail", "file": "lib/thor/base.rb", "symbol": "attr_reader", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoker", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor.rb lines=4-27\nread Thor for detail", "file": "lib/thor/line_editor.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=42-65\nread completion_options for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "completion_options", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=60-83\nread sort_commands! for detail", "file": "spec/sort_spec.rb", "symbol": "sort_commands!", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=23-46\nread revoke! for detail", "file": "spec/actions/directory_spec.rb", "symbol": "revoke!", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=657-680\nread print_options for detail", "file": "lib/thor/base.rb", "symbol": "print_options", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=96-119\nread print_border_separator for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print_border_separator", "line": 96, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Estoy revisando cómo se generan los datos de prueba para los scripts de Thor. ¿Podrías mostrarme el método que devuelve un array con un único elemento basado en el tipo que se le pase?", "query": "thor type array", "file": "spec/fixtures/script.thor", "symbol": "hidden", "line": 47, "lang": "es", "candidates": [{"text": "File: spec/thor_spec.rb\nLine 407: expect(capture(:stdout) { MyScript.start(%w(help)) }).not_to match(/this is hidden/m)", "file": "spec/thor_spec.rb", "symbol": "", "line": 407, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nLine 131: end", "file": "spec/base_spec.rb", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 19: load_thorfile(\"encoding_implicit.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 43: end", "file": "spec/helper.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 28: super(convert_key(key))", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 21: memo = \"#{memo}\\n#{word}\"", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 311: next if command.hidden?", "file": "lib/thor.rb", "symbol": "", "line": 311, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nLine 42: it \"doesn't show hidden commands\" do", "file": "spec/tree_spec.rb", "symbol": "", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 47: def hidden(type)", "file": "spec/fixtures/script.thor", "symbol": "hidden", "line": 47, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nLine 44: # Set the terminal's background ANSI color to blue.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 257: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 27: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 24: end", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 34: expect(shell.set_color(\"\", :blue)).to eq \"<htmlcontent>\"", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 15: def hidden?", "file": "lib/thor/command.rb", "symbol": "", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nLine 15: failing_lines << number + 1 if line =~ /\\t/", "file": "spec/quality_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 204: context \"when hidden\" do", "file": "spec/register_spec.rb", "symbol": "", "line": 204, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 52: end", "file": "spec/command_spec.rb", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 30: WHITE = \"color: white\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 101: end", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 529: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 529, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 38: super(convert_key(key), *args)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 14: puts \"expected #{SOME_STRING.encoding.name} to equal UTF-8\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 41: let(:config) { {symbolic: true} }", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estoy revisando cómo se generan los datos de prueba para los scripts de Thor. ¿Podrías mostrarme el método que devuelve un array con un único elemento basado en el tipo que se le pase?", "query": "thor type array", "file": "spec/fixtures/script.thor", "symbol": "hidden", "line": 47, "lang": "es", "candidates": [{"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_implicit.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\ndefines hidden", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/invoke.thor\nsibling in spec/fixtures", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estoy revisando cómo se generan los datos de prueba para los scripts de Thor. ¿Podrías mostrarme el método que devuelve un array con un único elemento basado en el tipo que se le pase?", "query": "thor type array", "file": "spec/fixtures/script.thor", "symbol": "hidden", "line": 47, "lang": "es", "candidates": [{"text": "Next: read lib/thor/parser/options.rb lines=168-191\nread check_unknown! for detail", "file": "lib/thor/parser/options.rb", "symbol": "check_unknown!", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=62-85\nread validate! for detail", "file": "lib/thor/parser/argument.rb", "symbol": "validate!", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=107-130\nread revoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "revoke!", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=57-80\nread merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "merge!", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=114-137\nread handle_argument_error? for detail", "file": "lib/thor/command.rb", "symbol": "handle_argument_error?", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=505-528\nread dispatch for detail", "file": "lib/thor.rb", "symbol": "dispatch", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=9-32\nread initialize_copy for detail", "file": "lib/thor/command.rb", "symbol": "initialize_copy", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=45-68\nread parse for detail", "file": "lib/thor/parser/option.rb", "symbol": "parse", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=493-516\nread print_at_least_one_required_options for detail", "file": "lib/thor.rb", "symbol": "print_at_least_one_required_options", "line": 493, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=767-790\nread hi for detail", "file": "spec/thor_spec.rb", "symbol": "hi", "line": 767, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/help.thor lines=3-26\nread Help for detail", "file": "spec/fixtures/help.thor", "symbol": "Help", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=20-43\nread RakeCompat for detail", "file": "lib/thor/rake_compat.rb", "symbol": "RakeCompat", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=72-95\nread replace for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "replace", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=47-70\nread hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "hidden", "line": 47, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=24-47\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/parser/options_spec.rb lines=24-47\nread remaining for detail", "file": "spec/parser/options_spec.rb", "symbol": "remaining", "line": 24, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Estou tentando entender como o Thor encontra comandos semelhantes quando um usuário digita o nome errado de um comando. Preciso saber qual método é responsável por criar o verificador de ortografia que faz essa correção.", "query": "spell checker", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 36, "lang": "pt", "candidates": [{"text": "File: lib/thor/shell/basic.rb\nLine 32: @mute", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 72: create string: \"foo\", numeric: 3.0", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 96: expect(Thor::LineEditor).to receive(:readline).and_return(\"d\", \"y\")", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 42: ARGV.replace []", "file": "spec/helper.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 334: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 334, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 4: class Thor", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 59: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 18: _, options = MyScript.start(%w(with_optional --lazy))", "file": "spec/thor_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 48: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 18: # Don't output trailing spaces when printing the last column", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 66: def destination_root", "file": "spec/helper.rb", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 16: end", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 24: # files (assuming that the `app_name` method returns the value \"blog\"):", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 341: option :two", "file": "spec/fixtures/script.thor", "symbol": "", "line": 341, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 161: it \"works with windows temp dir\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 509: end", "file": "lib/thor/base.rb", "symbol": "", "line": 509, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 656: # Receives a set of options and print them.", "file": "lib/thor/base.rb", "symbol": "", "line": 656, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 15: desc \"install\", \"Build and install thor-#{Thor::VERSION}.gem into system gems\"", "file": "Thorfile", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 61: end", "file": "spec/command_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 36: def spell_checker", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 36, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/rake_compat.rb\nLine 30: rakefile = File.basename(caller[0].match(/(.*):\\d+/)[1])", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 2: module Shell", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 153: expect(File.read(file)).to eq(\"__start__\\nREADME\\nmore content\\n__end__\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Estou tentando entender como o Thor encontra comandos semelhantes quando um usuário digita o nome errado de um comando. Preciso saber qual método é responsável por criar o verificador de ortografia que faz essa correção.", "query": "spell checker", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 36, "lang": "pt", "candidates": [{"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Estou tentando entender como o Thor encontra comandos semelhantes quando um usuário digita o nome errado de um comando. Preciso saber qual método é responsável por criar o verificador de ortografia que faz essa correção.", "query": "spell checker", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 36, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=115-138\nread say_error for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_error", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=90-113\nread snake_case for detail", "file": "lib/thor/util.rb", "symbol": "snake_case", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/shell/color_spec.rb lines=4-27\nread shell for detail", "file": "spec/shell/color_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=4-27\nread to_s for detail", "file": "lib/thor/error.rb", "symbol": "to_s", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=286-309\nread MyClassOptionScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyClassOptionScript", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=11-34\nread Color for detail", "file": "lib/thor/shell/color.rb", "symbol": "Color", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=24-47\nread UndefinedCommandError for detail", "file": "lib/thor/error.rb", "symbol": "UndefinedCommandError", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/exit_status.thor lines=3-26\nread ExitStatus for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ExitStatus", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=45-68\nread key? for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "key?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=190-213\nread allow_incompatible_default_type! for detail", "file": "lib/thor/base.rb", "symbol": "allow_incompatible_default_type!", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=20-43\nread Error for detail", "file": "lib/thor/error.rb", "symbol": "Error", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/html.rb lines=73-96\nread ask for detail", "file": "lib/thor/shell/html.rb", "symbol": "ask", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=126-149\nread validate! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate!", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=101-124\nread map for detail", "file": "lib/thor.rb", "symbol": "map", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=4-27\nread Base for detail", "file": "lib/thor/shell.rb", "symbol": "Base", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=10-33\nread describe for detail", "file": "spec/fixtures/command.thor", "symbol": "describe", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=4-27\nread shell for detail", "file": "spec/sort_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=583-606\nread start for detail", "file": "lib/thor/base.rb", "symbol": "start", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=36-59\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 36, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/create_file.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "find logic that converts a hash into command line flag strings", "query": "hash to switches", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lang": "en", "candidates": [{"text": "File: lib/thor/rake_compat.rb\nLine 15: # t.spec_opts = ['--options', './.rspec']", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 159: if no_or_skip?(name)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 49: describe \"with no inputs\" do", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 85: end", "file": "spec/group_spec.rb", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 8: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 13: end", "file": "Thorfile", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 33: desc \"invoker\", \"invoke a b command\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 189: expect(@content).to match(/Options\\:/)", "file": "spec/base_spec.rb", "symbol": "", "line": 189, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 71: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 69: ThorTask::HiperMega.start %w(super)", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 222: expect(output).to match(/\\e\\[31m\\- __start__\\e\\[0m/)", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 222, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 190: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 26: # ==== Options", "file": "lib/thor/group.rb", "symbol": "", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 76: human_name.upcase", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 204: #", "file": "lib/thor/runner.rb", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 75: # Let Thor::Options parse the options first, so it can remove", "file": "lib/thor/base.rb", "symbol": "", "line": 75, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nLine 154: # ==== Options", "file": "lib/thor.rb", "symbol": "", "line": 154, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nLine 2: class Options < Arguments #:nodoc:", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell_spec.rb\nLine 15: base = MyCounter.new [1, 2], {}, shell: shell", "file": "spec/shell_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 49: # Set color by using a string or one of the defined constants. If a third", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 9: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 4: describe Thor::Options do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/basic.rb\nLine 175: # ==== Options", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 175, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 7: # Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "find logic that converts a hash into command line flag strings", "query": "hash to switches", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lang": "en", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "find logic that converts a hash into command line flag strings", "query": "hash to switches", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lang": "en", "candidates": [{"text": "Next: read lib/thor/group.rb lines=221-244\nread command_exists? for detail", "file": "lib/thor/group.rb", "symbol": "command_exists?", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=783-806\nread create_command for detail", "file": "lib/thor/base.rb", "symbol": "create_command", "line": 783, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=43-66\nread indent for detail", "file": "lib/thor/shell/basic.rb", "symbol": "indent", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=283-306\nread pear for detail", "file": "spec/fixtures/script.thor", "symbol": "pear", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=22-45\nread get_input for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "get_input", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=17-40\nread revoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "revoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=269-292\nread can_display_colors? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "can_display_colors?", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=38-61\nread source_paths_for_search for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths_for_search", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=32-55\nread this_is_not_a_command for detail", "file": "spec/fixtures/script.thor", "symbol": "this_is_not_a_command", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=177-200\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=350-373\nread remove_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "remove_file", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=65-88\nread peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=393-416\nread class_at_least_one for detail", "file": "lib/thor/base.rb", "symbol": "class_at_least_one", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/directory.rb lines=58-81\nread initialize for detail", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=93-116\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=48-71\nread add_runtime_options! for detail", "file": "lib/thor/actions.rb", "symbol": "add_runtime_options!", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/base_spec.rb lines=6-29\nread hello for detail", "file": "spec/base_spec.rb", "symbol": "hello", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=105-128\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=607-630\nread public_command for detail", "file": "lib/thor/base.rb", "symbol": "public_command", "line": 607, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Necesito verificar que la codificación de una cadena con caracteres UTF-8 especiales, como emojis y acentos, se detecte correctamente. Quiero que el método imprima el nombre de la codificación y confirme si es UTF-8, o muestre un error en caso contrario.", "query": "utf8 encoding check thor", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lang": "es", "candidates": [{"text": "File: spec/rake_compat_spec.rb\nLine 59: it \"does not add tasks from higher namespaces in lowers namespaces\" do", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 513: it \"raises error when value isn't in enum\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 513, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 12: expect(capture(:stdout) { Thor::Sandbox::EncodingWithUtf8.new.invoke(:encoding) }).to match(/ok/)", "file": "spec/encoding_spec.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nLine 147: )", "file": "spec/register_spec.rb", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 128: desc \"i\", \"I\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 28: BLUE = \"\\e[34m\"", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 5: SOME_STRING = \"Some ������\"", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 11: # :: give :symbolic => false for hard link.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 79: \"#{base_path}#{text}*\"", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 14: def print(array)", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 3: class ExitStatus < Thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 21: it \"sorts them lexicographillay\" do", "file": "spec/sort_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 4: class EncodingWithUtf8 < Thor", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/color.rb\nLine 19: # Set the terminal's foreground ANSI color to black.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 3: add_runtime_options!", "file": "spec/fixtures/group.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 77: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 3: class ExitStatus < Thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 11: # available only in class methods invocations (i.e. in Thor::Group).", "file": "lib/thor/invocation.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 13: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 115: FileUtils.mkdir_p(destination_root)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 83: def windows?", "file": "spec/helper.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 28: paras.each do |para|", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 14: else", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 31: base.inside(\"doc\") do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Necesito verificar que la codificación de una cadena con caracteres UTF-8 especiales, como emojis y acentos, se detecte correctamente. Quiero que el método imprima el nombre de la codificación y confirme si es UTF-8, o muestre un error en caso contrario.", "query": "utf8 encoding check thor", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lang": "es", "candidates": [{"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\ndefines EncodingWithUtf8", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nsibling in spec/fixtures", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Necesito verificar que la codificación de una cadena con caracteres UTF-8 especiales, como emojis y acentos, se detecte correctamente. Quiero que el método imprima el nombre de la codificación y confirme si es UTF-8, o muestre un error en caso contrario.", "query": "utf8 encoding check thor", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lang": "es", "candidates": [{"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Necesito verificar que la codificación de una cadena con caracteres UTF-8 especiales, como emojis y acentos, se detecte correctamente. Quiero que el método imprima el nombre de la codificación y confirme si es UTF-8, o muestre un error en caso contrario.", "query": "utf8 encoding check thor", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lang": "es", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=5-28\nread parse for detail", "file": "spec/parser/option_spec.rb", "symbol": "parse", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/directory.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=547-570\nread shell for detail", "file": "spec/thor_spec.rb", "symbol": "shell", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=118-141\nread parse_array for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_array", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=99-122\nread aliases_for_usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "aliases_for_usage", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=722-745\nread inherited for detail", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=9-32\nread encoding for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "encoding", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=61-84\nread namespace for detail", "file": "lib/thor/rake_compat.rb", "symbol": "namespace", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=35-58\nread dynamic_width_tput for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "dynamic_width_tput", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=45-68\nread exists? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "exists?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=163-186\nread attr_accessor for detail", "file": "lib/thor/base.rb", "symbol": "attr_accessor", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=139-162\nread parse_numeric for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_numeric", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=592-615\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=206-229\nread PackageNameScript for detail", "file": "spec/fixtures/script.thor", "symbol": "PackageNameScript", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=34-57\nread method_missing for detail", "file": "lib/thor/runner.rb", "symbol": "method_missing", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=138-161\nread potentially_ambiguous_but_hidden for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous_but_hidden", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=291-314\nread gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=4-27\nread EncodingWithUtf8 for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/create_link.rb lines=40-63\nread invoke! for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "修复在执行命令时,如果同一个命令在当前的调用链中已经存在,就会被跳过导致无法重复执行的问题。", "query": "prevent duplicate command execution", "file": "lib/thor/invocation.rb", "symbol": "invoke_command", "line": 122, "lang": "zh", "candidates": [{"text": "File: lib/thor/actions/file_manipulation.rb\nLine 161: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 3: module Terminal", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 78: it \"shows created status to the user\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 568: allow(ENV).to receive(:[]).with(\"THOR_MERGE\").and_return(\"nvim -d\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 568, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 147: end", "file": "spec/base_spec.rb", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 8: desc \"error\", \"exit with a planned error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 349: case_insensitive = options.fetch(:case_insensitive, false)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 349, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 21: end", "file": "spec/encoding_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 32: def echo?", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 43: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 141: expect(Thor::Util.user_home).to eq(File.expand_path(\"~\"))", "file": "spec/util_spec.rb", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 538: instance.invoke_command(command, trailing || [])", "file": "lib/thor.rb", "symbol": "", "line": 538, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 241: instance.invoke_command(all_commands[command])", "file": "lib/thor/group.rb", "symbol": "", "line": 241, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 14: # description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 122: def invoke_command(command, *args) #:nodoc:", "file": "lib/thor/invocation.rb", "symbol": "invoke_command", "line": 122, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/util.rb\nLine 148: alias_method :find_class_and_task_by_namespace, :find_class_and_command_by_namespace", "file": "lib/thor/util.rb", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 32: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 476: Usage: \"thor scripts:arities:zero_args\"'", "file": "spec/thor_spec.rb", "symbol": "", "line": 476, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 201: inside(@destination_stack.first) { yield }", "file": "lib/thor/actions.rb", "symbol": "", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 297: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 297, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 73: rescue Errno::ENOENT", "file": "lib/thor/runner.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 36: end", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 22: desc \"sub\", \"Subcommands\"", "file": "spec/tree_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "修复在执行命令时,如果同一个命令在当前的调用链中已经存在,就会被跳过导致无法重复执行的问题。", "query": "prevent duplicate command execution", "file": "lib/thor/invocation.rb", "symbol": "invoke_command", "line": 122, "lang": "zh", "candidates": [{"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "修复在执行命令时,如果同一个命令在当前的调用链中已经存在,就会被跳过导致无法重复执行的问题。", "query": "prevent duplicate command execution", "file": "lib/thor/invocation.rb", "symbol": "invoke_command", "line": 122, "lang": "zh", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=59-82\nread no_or_skip? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=33-56\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=100-123\nread private_method? for detail", "file": "lib/thor/command.rb", "symbol": "private_method?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=52-75\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=122-145\nread invoke_command for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_command", "line": 122, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/invocation.rb lines=8-31\nread ClassMethods for detail", "file": "lib/thor/invocation.rb", "symbol": "ClassMethods", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=113-136\nread indentation for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "indentation", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=47-70\nread five for detail", "file": "spec/fixtures/group.thor", "symbol": "five", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=3-26\nread included for detail", "file": "lib/thor/invocation.rb", "symbol": "included", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=35-58\nread identical? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "identical?", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=52-75\nread enum_to_s for detail", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/option_spec.rb lines=5-28\nread parse for detail", "file": "spec/parser/option_spec.rb", "symbol": "parse", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=363-386\nread check_unknown_options? for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options?", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=96-119\nread print_border_separator for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print_border_separator", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=55-78\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=1-24\nread Thor for detail", "file": "lib/thor/invocation.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=12-35\nread prepare_for_invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "prepare_for_invocation", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=66-89\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=619-642\nread handle_argument_error for detail", "file": "lib/thor/base.rb", "symbol": "handle_argument_error", "line": 619, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=56-79\nread revoke! for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "revoke!", "line": 56, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "¿Cómo se inicializa el parser de opciones, configurando los valores predeterminados, la validación de requeridos y las relaciones de exclusividad?", "query": "OptionsParser initialize", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lang": "es", "candidates": [{"text": "File: lib/thor/nested_context.rb\nLine 15: def entered?", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 46: end", "file": "spec/command_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 8: def initialize", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 8: def initialize(name, options = {})", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 112: expect(File.read(file)).to eq(\"__start__\\nREADME\\nmore content\\n__end__\\n\")", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 87: it \"does not change the file if already includes content\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 211: #", "file": "lib/thor.rb", "symbol": "", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 127: class J < Thor", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 32: def initialize(hash_options = {}, defaults = {}, stop_on_unknown = false, disable_required_check = false, relations = {})", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions.rb\nLine 120: else", "file": "lib/thor/actions.rb", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 70: describe \"#relative_to_original_destination_root\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 7: end", "file": "spec/register_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 58: expect(File.exist?(destination_path)).to be true", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 54: def initialize(args = [], local_options = {}, config = {})", "file": "lib/thor/base.rb", "symbol": "", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 160: it \"can skip all filters to show all commands using --all\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 65: end", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 3: def initialize", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nLine 133: def potentially_ambiguous", "file": "spec/fixtures/script.thor", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 35: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 26: end", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 33: ON_BLACK = \"background-color: black\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 7: def initialize(name, options = {})", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 35: def initialize(base, destination, data, config = {})", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 42: it \"raises error if a class/command cannot be found\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "¿Cómo se inicializa el parser de opciones, configurando los valores predeterminados, la validación de requeridos y las relaciones de exclusividad?", "query": "OptionsParser initialize", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lang": "es", "candidates": [{"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "¿Cómo se inicializa el parser de opciones, configurando los valores predeterminados, la validación de requeridos y las relaciones de exclusividad?", "query": "OptionsParser initialize", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lang": "es", "candidates": [{"text": "Next: read lib/thor/parser/option.rb lines=99-122\nread aliases_for_usage for detail", "file": "lib/thor/parser/option.rb", "symbol": "aliases_for_usage", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=700-723\nread build_options for detail", "file": "lib/thor/base.rb", "symbol": "build_options", "line": 700, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=45-68\nread invocation_blocks for detail", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=363-386\nread check_unknown_options? for detail", "file": "lib/thor.rb", "symbol": "check_unknown_options?", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=170-193\nread prepend_to_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "prepend_to_file", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=219-242\nread strict_args_position for detail", "file": "lib/thor/base.rb", "symbol": "strict_args_position", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/create_file_spec.rb lines=17-40\nread invoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=21-44\nread revoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=257-280\nread one_arg for detail", "file": "spec/fixtures/script.thor", "symbol": "one_arg", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=59-82\nread no_or_skip? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "no_or_skip?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=351-374\nread no_relations for detail", "file": "spec/fixtures/script.thor", "symbol": "no_relations", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=291-314\nread gsub_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "gsub_file", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=285-308\nread run_ruby_script for detail", "file": "lib/thor/actions.rb", "symbol": "run_ruby_script", "line": 285, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=7-30\nread enter for detail", "file": "lib/thor/nested_context.rb", "symbol": "enter", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=65-88\nread peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Comment l'endroit où sont gérés l'aiguillage des commandes et le traitement des arguments/options.", "query": "dispatch command arguments", "file": "lib/thor.rb", "symbol": "dispatch", "line": 505, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/invoke.thor\nLine 60: options.defaulted_value", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 116: klass.send(:dispatch, command, args, opts, config) do |instance|", "file": "lib/thor/invocation.rb", "symbol": "", "line": 116, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 47: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 224: expect(File).to receive(:open).with(path, \"w\")", "file": "spec/runner_spec.rb", "symbol": "", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 228: def dispatch(command, given_args, given_opts, config) #:nodoc:", "file": "lib/thor/group.rb", "symbol": "", "line": 228, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nLine 41: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 585: dispatch(nil, given_args.dup, nil, config)", "file": "lib/thor/base.rb", "symbol": "", "line": 585, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nLine 152: it \"interprets everything after -- as args instead of options\" do", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 162: it \"creates the directory if it does not exist\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 112: if package == :file", "file": "lib/thor/runner.rb", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 18: def subcommand1", "file": "spec/tree_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 83: #", "file": "lib/thor/group.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 17: array.each_with_index do |value, index|", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 113: def invoke_with_conflict_check(&block)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 663: next if option.hide", "file": "lib/thor/base.rb", "symbol": "", "line": 663, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 58: end", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 77: $VERBOSE = old_verbose", "file": "spec/helper.rb", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 24: def zoo", "file": "spec/fixtures/script.thor", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 97: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 505: def dispatch(meth, given_args, given_opts, config) #:nodoc:", "file": "lib/thor.rb", "symbol": "dispatch", "line": 505, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/subcommand.thor\nLine 4: desc \"print_opt\", \"My method\"", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 296: # config:: give :verbose => false to not log the status, :capture => true to hide to output.", "file": "lib/thor/actions.rb", "symbol": "", "line": 296, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Comment l'endroit où sont gérés l'aiguillage des commandes et le traitement des arguments/options.", "query": "dispatch command arguments", "file": "lib/thor.rb", "symbol": "dispatch", "line": 505, "lang": "fr", "candidates": [{"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Comment l'endroit où sont gérés l'aiguillage des commandes et le traitement des arguments/options.", "query": "dispatch command arguments", "file": "lib/thor.rb", "symbol": "dispatch", "line": 505, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Comment l'endroit où sont gérés l'aiguillage des commandes et le traitement des arguments/options.", "query": "dispatch command arguments", "file": "lib/thor.rb", "symbol": "dispatch", "line": 505, "lang": "fr", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=43-66\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=21-44\nread revoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "revoke!", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=101-124\nread ExclusiveArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "ExclusiveArgumentError", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=32-55\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=80-103\nread Defined for detail", "file": "spec/fixtures/invoke.thor", "symbol": "Defined", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions.rb lines=72-95\nread initialize for detail", "file": "lib/thor/actions.rb", "symbol": "initialize", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=47-70\nread prepare for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "prepare", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=117-140\nread with_optional for detail", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=48-71\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=117-140\nread template for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=8-31\nread action for detail", "file": "spec/actions_spec.rb", "symbol": "action", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=168-191\nread user_home for detail", "file": "lib/thor/util.rb", "symbol": "user_home", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=9-32\nread error for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "error", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=158-181\nread parse_string for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_string", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=59-82\nread exit_on_failure? for detail", "file": "spec/subcommand_spec.rb", "symbol": "exit_on_failure?", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=138-161\nread invoke_with_padding for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_with_padding", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/helper.rb lines=66-89\nread destination_root for detail", "file": "spec/helper.rb", "symbol": "destination_root", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=14-37\nread z for detail", "file": "spec/sort_spec.rb", "symbol": "z", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=505-528\nread dispatch for detail", "file": "lib/thor.rb", "symbol": "dispatch", "line": 505, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "테이블 출력 시 행 사이의 구분선이 패딩 값에 맞춰서 제대로 계산되지 않거나 형식이 어긋나는 버그가 있습니다. 구분선을 생성하는 로직을 확인해 주세요.", "query": "table border separator", "file": "lib/thor/shell/table_printer.rb", "symbol": "print_border_separator", "line": 96, "lang": "ko", "candidates": [{"text": "File: lib/thor/util.rb\nLine 145: end", "file": "lib/thor/util.rb", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 3: class Thor", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 28: end", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 273: end", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 72: create string: \"foo\", numeric: 3.0", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 9: method_options :forcefully => :boolean", "file": "spec/fixtures/command.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 14: def ok", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 96: def print_border_separator", "file": "lib/thor/shell/table_printer.rb", "symbol": "print_border_separator", "line": 96, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/util_spec.rb\nLine 208: end", "file": "spec/util_spec.rb", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 114: if exists?", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 21: def output_diff_line(diff) #:nodoc:", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 11: def invoker", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 166: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 36: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 176: option.type == :boolean ? name : option.default", "file": "lib/thor/group.rb", "symbol": "", "line": 176, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 4: @depth = 0", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 535: alias_method :no_tasks, :no_commands", "file": "lib/thor/base.rb", "symbol": "", "line": 535, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 64: end", "file": "spec/sort_spec.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 104: Dir.glob(lookup, File::FNM_DOTMATCH)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 108: end", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 26: @depth -= 1", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 286: return unless behavior == :invoke", "file": "lib/thor/actions.rb", "symbol": "", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 26: def spec", "file": "Thorfile", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "테이블 출력 시 행 사이의 구분선이 패딩 값에 맞춰서 제대로 계산되지 않거나 형식이 어긋나는 버그가 있습니다. 구분선을 생성하는 로직을 확인해 주세요.", "query": "table border separator", "file": "lib/thor/shell/table_printer.rb", "symbol": "print_border_separator", "line": 96, "lang": "ko", "candidates": [{"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\ndefines print_border_separator", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "테이블 출력 시 행 사이의 구분선이 패딩 값에 맞춰서 제대로 계산되지 않거나 형식이 어긋나는 버그가 있습니다. 구분선을 생성하는 로직을 확인해 주세요.", "query": "table border separator", "file": "lib/thor/shell/table_printer.rb", "symbol": "print_border_separator", "line": 96, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "테이블 출력 시 행 사이의 구분선이 패딩 값에 맞춰서 제대로 계산되지 않거나 형식이 어긋나는 버그가 있습니다. 구분선을 생성하는 로직을 확인해 주세요.", "query": "table border separator", "file": "lib/thor/shell/table_printer.rb", "symbol": "print_border_separator", "line": 96, "lang": "ko", "candidates": [{"text": "Next: read spec/group_spec.rb lines=206-229\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=133-156\nread find_in_source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "find_in_source_paths", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=27-50\nread print_default for detail", "file": "lib/thor/parser/argument.rb", "symbol": "print_default", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=26-49\nread insert_into_file! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file!", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=96-119\nread print_border_separator for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print_border_separator", "line": 96, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/thor_spec.rb lines=797-820\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 797, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Shell", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=469-492\nread method_at_least_one_option_names for detail", "file": "lib/thor.rb", "symbol": "method_at_least_one_option_names", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=40-63\nread animal for detail", "file": "spec/fixtures/script.thor", "symbol": "animal", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=9-32\nread initialize for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "initialize", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=281-304\nread Pear for detail", "file": "spec/fixtures/script.thor", "symbol": "Pear", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=112-135\nread private_file_name for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=6-29\nread TablePrinter for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "TablePrinter", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=403-426\nread class_exclusive_option_names for detail", "file": "lib/thor/base.rb", "symbol": "class_exclusive_option_names", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/rake_compat.rb lines=27-50\nread included for detail", "file": "lib/thor/rake_compat.rb", "symbol": "included", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=613-636\nread normalize_command_name for detail", "file": "lib/thor.rb", "symbol": "normalize_command_name", "line": 613, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "Thor", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=310-333\nread display_commands for detail", "file": "lib/thor/runner.rb", "symbol": "display_commands", "line": 310, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "ヘルプ情報を表示して、使い方やオプションの解説をシェルに出力するメソッドはどこにありますか?", "query": "print help information", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lang": "ja", "candidates": [{"text": "File: lib/thor/actions/create_file.rb\nLine 42: # ==== Returns", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 70: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 20: end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 233: # inject_into_module \"app/helpers/application_helper.rb\", \"ApplicationHelper\", \" def help; 'help'; end\\n\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 233, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/group.rb\nLine 29: def help(shell)", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/options.rb\nLine 96: match, is_switch = current_is_switch?", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 5: describe Thor::Actions::CreateLink, unless: windows? do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 42: it \"invokes help message if any of the shortcuts are given\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/invocation.rb\nLine 14: when Symbol, String", "file": "lib/thor/invocation.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 7: expect(barn_help).to include(\"barn help [COMMAND] # Describe subcommands or one specific subcommand\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nLine 43: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).not_to match(/help/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 46: end", "file": "spec/command_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 11: end", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 11: def self.to_switches(options)", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 90: It even has two paragraphs.", "file": "spec/fixtures/script.thor", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 18: # Override Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 15: end", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 78: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 100: expect(Thor::Util.find_class_and_command_by_namespace(\"thor:help\")).to eq([Thor, \"help\"])", "file": "spec/util_spec.rb", "symbol": "", "line": 100, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 10: def initialize(prompt, options)", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 232: #", "file": "lib/thor/base.rb", "symbol": "", "line": 232, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "ヘルプ情報を表示して、使い方やオプションの解説をシェルに出力するメソッドはどこにありますか?", "query": "print help information", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lang": "ja", "candidates": [{"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "ヘルプ情報を表示して、使い方やオプションの解説をシェルに出力するメソッドはどこにありますか?", "query": "print help information", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "ヘルプ情報を表示して、使い方やオプションの解説をシェルに出力するメソッドはどこにありますか?", "query": "print help information", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/actions.rb lines=325-348\nread _shared_configuration for detail", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=79-102\nread human_name for detail", "file": "lib/thor/parser/option.rb", "symbol": "human_name", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=304-327\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=14-37\nread ok for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ok", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/command.rb lines=2-25\nread Command for detail", "file": "lib/thor/command.rb", "symbol": "Command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=201-224\nread paint for detail", "file": "spec/fixtures/script.thor", "symbol": "paint", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=10-33\nread ExcitingPluginCLI for detail", "file": "spec/register_spec.rb", "symbol": "ExcitingPluginCLI", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=160-183\nread dasherized? for detail", "file": "lib/thor/parser/option.rb", "symbol": "dasherized?", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=20-43\nread unix? for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "unix?", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/terminal.rb lines=9-32\nread terminal_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "terminal_width", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=203-226\nread method_exclusive for detail", "file": "lib/thor.rb", "symbol": "method_exclusive", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=12-35\nread exists_and_identical? for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=40-63\nread invoke! for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "invoke!", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=95-118\nread RequiredArgumentMissingError for detail", "file": "lib/thor/error.rb", "symbol": "RequiredArgumentMissingError", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=110-133\nread invoke_from_option for detail", "file": "lib/thor/group.rb", "symbol": "invoke_from_option", "line": 110, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/register_spec.rb lines=85-108\nread SubcommandWithDefault for detail", "file": "spec/register_spec.rb", "symbol": "SubcommandWithDefault", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=45-68\nread invocation_blocks for detail", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=330-353\nread ask_simply for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_simply", "line": 330, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I'm writing tests for the greeting logic and need to ensure the method returns a standard greeting string. I also need to verify that the name is capitalized when the loud option is enabled.", "query": "group greeting test", "file": "spec/group_spec.rb", "symbol": "hi", "line": 206, "lang": "en", "candidates": [{"text": "File: spec/thor_spec.rb\nLine 633: [--all=ALL] # Do bazing for all the things", "file": "spec/thor_spec.rb", "symbol": "", "line": 633, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 3: class Thor", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 6: attr_reader :stdout, :options", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 2: require \"rake/dsl_definition\"", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 33: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/subcommand1/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 206: def hi", "file": "spec/group_spec.rb", "symbol": "hi", "line": 206, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell_spec.rb\nLine 40: base = MyCounter.new([1, 2])", "file": "spec/shell_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 12: # include Thor::RakeCompat", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 107: end", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 33: end", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 200: #", "file": "lib/thor/util.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 10: desc \"build\", \"Build thor-#{Thor::VERSION}.gem into the pkg directory\"", "file": "Thorfile", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 96: end", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 89: begin", "file": "spec/base_spec.rb", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 147: old_filename = thor_yaml[name][:filename]", "file": "lib/thor/runner.rb", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nLine 61: end", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 12: describe \"#initialize\" do", "file": "spec/base_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 204: it \"returns usage for string types\" do", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 519: expect(MyScript.start(%w(hi arg))).to eq(MyScript.start(%w(hidden arg)))", "file": "spec/thor_spec.rb", "symbol": "", "line": 519, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nLine 144: red = shell.set_color \"hi!\", :red", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 144, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nLine 8: puts \"Invoked!\"", "file": "spec/fixtures/help.thor", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 766: end", "file": "lib/thor/base.rb", "symbol": "", "line": 766, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 214: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 214, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 83: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm writing tests for the greeting logic and need to ensure the method returns a standard greeting string. I also need to verify that the name is capitalized when the loud option is enabled.", "query": "group greeting test", "file": "spec/group_spec.rb", "symbol": "hi", "line": 206, "lang": "en", "candidates": [{"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nsibling in spec", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nsibling in spec", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nsibling in spec", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nsibling in spec", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/base_spec.rb\nsibling in spec", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\ndefines hi", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "I'm writing tests for the greeting logic and need to ensure the method returns a standard greeting string. I also need to verify that the name is capitalized when the loud option is enabled.", "query": "group greeting test", "file": "spec/group_spec.rb", "symbol": "hi", "line": 206, "lang": "en", "candidates": [{"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm writing tests for the greeting logic and need to ensure the method returns a standard greeting string. I also need to verify that the name is capitalized when the loud option is enabled.", "query": "group greeting test", "file": "spec/group_spec.rb", "symbol": "hi", "line": 206, "lang": "en", "candidates": [{"text": "Next: read lib/thor/command.rb lines=77-100\nread required_arguments_for for detail", "file": "lib/thor/command.rb", "symbol": "required_arguments_for", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=567-590\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=322-345\nread quiet? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=15-38\nread entered? for detail", "file": "lib/thor/nested_context.rb", "symbol": "entered?", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=112-135\nread private_file_name for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "private_file_name", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=104-127\nread F for detail", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=17-40\nread invoke! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "invoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=6-29\nread show_diff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "show_diff", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/group_spec.rb lines=206-229\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 206, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/color.rb lines=112-135\nread are_colors_disabled? for detail", "file": "lib/thor/shell/color.rb", "symbol": "are_colors_disabled?", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=329-352\nread class_option for detail", "file": "lib/thor/base.rb", "symbol": "class_option", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=9-32\nread error for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "error", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=55-78\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/group_spec.rb lines=223-246\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=537-560\nread no_commands_context for detail", "file": "lib/thor/base.rb", "symbol": "no_commands_context", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=8-31\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=10-33\nread best_available for detail", "file": "lib/thor/line_editor.rb", "symbol": "best_available", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "vérifier si le mode silencieux est activé", "query": "mute quiet options", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lang": "fr", "candidates": [{"text": "File: spec/runner_spec.rb\nLine 183: ARGV.replace %w(command_conflict)", "file": "spec/runner_spec.rb", "symbol": "", "line": 183, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 3: class Subcommand < Thor", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 82: expect(File.read(file)).to eq(\"BAR = BAR\\n\")", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 29: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 322: def quiet? #:nodoc:", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/runner_spec.rb\nLine 137: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 38: create string: nil, array: nil", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 203: # Save the yaml file. If none exists in thor root, creates one.", "file": "lib/thor/runner.rb", "symbol": "", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 19: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 2: require \"thor/parser\"", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 1: Bundler.require :development, :default", "file": "spec/fixtures/help.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 23: module Shell", "file": "lib/thor/shell.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 86: invoke \"a:three\"", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 49: options", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 436: expect(parse(\"--foo-bar\")[\"foo_bar\"]).to eq(true)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 436, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 158: else", "file": "lib/thor/invocation.rb", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 47: it \"raises error if a class/command cannot be found for a setup without thorfiles\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 84: # returns true, force it, otherwise skip.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 115: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 49: expect(error_messages.compact).to be_well_formed", "file": "spec/quality_spec.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 16: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 1: require_relative \"basic\"", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 17: array.each_with_index do |value, index|", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 87: when /\\.empty_directory$/", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "vérifier si le mode silencieux est activé", "query": "mute quiet options", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lang": "fr", "candidates": [{"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "vérifier si le mode silencieux est activé", "query": "mute quiet options", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> wrapped_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "vérifier si le mode silencieux est activé", "query": "mute quiet options", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=96-119\nread print_border_separator for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print_border_separator", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=288-311\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=322-345\nread quiet? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/error.rb lines=65-88\nread UnknownArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "UnknownArgumentError", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=7-30\nread Shell for detail", "file": "lib/thor/shell/color.rb", "symbol": "Shell", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=6-29\nread Shell for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Shell", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=161-184\nread class_options_help for detail", "file": "lib/thor/group.rb", "symbol": "class_options_help", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=3-26\nread Thor for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=28-51\nread ThorTask for detail", "file": "spec/rake_compat_spec.rb", "symbol": "ThorTask", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=304-327\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=1-24\nread Thor for detail", "file": "lib/thor/error.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=541-564\nread no_commands? for detail", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=93-116\nread method_missing for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "method_missing", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=276-299\nread thorfiles_relevant_to for detail", "file": "lib/thor/runner.rb", "symbol": "thorfiles_relevant_to", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=5-28\nread Thor for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Thor", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=161-184\nread initialize for detail", "file": "spec/fixtures/script.thor", "symbol": "initialize", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=177-200\nread check_unknown_options? for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options?", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=1-24\nread LCSDiff for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "LCSDiff", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=64-87\nread relative_matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "relative_matches", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=37-60\nread fetch for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "fetch", "line": 37, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "ターミナルの幅に合わせてテキストを自動で折り返して出力する仕組みを探して", "query": "terminal wrap printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Shell", "line": 5, "lang": "ja", "candidates": [{"text": "File: spec/group_spec.rb\nLine 101: expect(F.start).to eq([\"Valim, Jose\"])", "file": "spec/group_spec.rb", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 2: module Shell", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 661: it \"prints long description unwrapped if asked for\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 661, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 78: end", "file": "spec/command_spec.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 16: def install", "file": "Thorfile", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 13: Thor::Shell.const_get(ENV[\"THOR_SHELL\"])", "file": "lib/thor/shell.rb", "symbol": "", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nLine 12: def command2", "file": "spec/tree_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 7: def bugs", "file": "spec/fixtures/help.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 21: else", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 292: end", "file": "lib/thor.rb", "symbol": "", "line": 292, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 44: it \"returns usage for array types\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 11: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 7: module Shell", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/runner_spec.rb\nLine 87: it \"raises an error if class/command can't be found\" do", "file": "spec/runner_spec.rb", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 226: out << \": \" << args.join(\", \") unless args.empty?", "file": "spec/group_spec.rb", "symbol": "", "line": 226, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 121: base.send :include, Shell", "file": "lib/thor/base.rb", "symbol": "", "line": 121, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 3: describe Thor::Shell do", "file": "spec/shell_spec.rb", "symbol": "", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nLine 15: def entered?", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 4: module Shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 516: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 516, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 13: it \"includes namespace within usage\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 184: expect(capture(:stdout) { Thor::Runner.start }).to eq(\"group\\n\")", "file": "spec/runner_spec.rb", "symbol": "", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 5: module Shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Shell", "line": 5, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "thor", "task": "ターミナルの幅に合わせてテキストを自動で折り返して出力する仕組みを探して", "query": "terminal wrap printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Shell", "line": 5, "lang": "ja", "candidates": [{"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\ndefines Shell", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/column_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nsibling in lib/thor/shell", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "ターミナルの幅に合わせてテキストを自動で折り返して出力する仕組みを探して", "query": "terminal wrap printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Shell", "line": 5, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "ターミナルの幅に合わせてテキストを自動で折り返して出力する仕組みを探して", "query": "terminal wrap printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Shell", "line": 5, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/base.rb lines=772-795\nread basename for detail", "file": "lib/thor/base.rb", "symbol": "basename", "line": 772, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=114-137\nread relative_to_original_destination_root for detail", "file": "lib/thor/actions.rb", "symbol": "relative_to_original_destination_root", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=22-45\nread SuperSecretPlugin for detail", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=67-90\nread valid_type? for detail", "file": "lib/thor/parser/argument.rb", "symbol": "valid_type?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=64-87\nread last? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/create_file_spec.rb lines=25-48\nread silence! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "silence!", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=48-71\nread Child1 for detail", "file": "spec/subcommand_spec.rb", "symbol": "Child1", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=7-30\nread print for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=6-29\nread WrappedPrinter for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "WrappedPrinter", "line": 6, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/register_spec.rb lines=59-82\nread say for detail", "file": "spec/register_spec.rb", "symbol": "say", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=556-579\nread dynamic_command_class for detail", "file": "lib/thor.rb", "symbol": "dynamic_command_class", "line": 556, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=216-239\nread inject_into_class for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_class", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Thor", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/error.rb lines=101-124\nread ExclusiveArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "ExclusiveArgumentError", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=85-108\nread initialize for detail", "file": "lib/thor/error.rb", "symbol": "initialize", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=130-153\nread say_status for detail", "file": "lib/thor/shell/basic.rb", "symbol": "say_status", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=309-332\nread printable_commands for detail", "file": "lib/thor.rb", "symbol": "printable_commands", "line": 309, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=5-28\nread Shell for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "Shell", "line": 5, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "thor", "task": "devuelve la lista de comandos listos para imprimir", "query": "printable commands", "file": "lib/thor.rb", "symbol": "printable_commands", "line": 309, "lang": "es", "candidates": [{"text": "File: spec/fixtures/subcommand.thor\nLine 15: end", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 546: describe \"#help\" do", "file": "spec/thor_spec.rb", "symbol": "", "line": 546, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 14: it \"respects explicit non-UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 124: expect(error.to_s).to eq(expected)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 299: (klasses - groups).each { |k| list[k.namespace.split(\":\").first] += k.printable_commands(false) }", "file": "lib/thor/runner.rb", "symbol": "", "line": 299, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nLine 40: # Set the terminal's background HTML color to blue.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 164: expect(File.exist?(file)).to be true", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 15: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 42: ARGV.replace []", "file": "spec/helper.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 9: puts \"#{SOME_STRING.inspect}: #{SOME_STRING.encoding}:\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 31: def except(*keys)", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 28: def add_to_history?", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 143: def content", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 166: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 146: instance.class.handle_no_command_error(name)", "file": "lib/thor/command.rb", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 309: def printable_commands(all = true, subcommand = false)", "file": "lib/thor.rb", "symbol": "printable_commands", "line": 309, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/tree_spec.rb\nLine 27: let(:shell) { Thor::Shell::Basic.new }", "file": "spec/tree_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 58: default: [\"one\",\"two\"]", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 67: expect(sub_help).to eq ['ERROR: \"thor child1 foo\" was called with no arguments', 'Usage: \"thor child1 foo NAME\"', \"\"].join(\"\\n\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 199: def printable_commands(*)", "file": "lib/thor/group.rb", "symbol": "", "line": 199, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nLine 5: class_option \"fruit\", :aliases => \"-f\", :type => :string, :enum => %w(apple banana)", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 292: raise Error, \"No Thor commands available\" if klasses.empty?", "file": "lib/thor/runner.rb", "symbol": "", "line": 292, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 78: action :copy_file, \"preserve/%filename%.sh\", mode: :preserve", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "devuelve la lista de comandos listos para imprimir", "query": "printable commands", "file": "lib/thor.rb", "symbol": "printable_commands", "line": 309, "lang": "es", "candidates": [{"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "devuelve la lista de comandos listos para imprimir", "query": "printable commands", "file": "lib/thor.rb", "symbol": "printable_commands", "line": 309, "lang": "es", "candidates": [{"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions_spec.rb -> helper", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "devuelve la lista de comandos listos para imprimir", "query": "printable commands", "file": "lib/thor.rb", "symbol": "printable_commands", "line": 309, "lang": "es", "candidates": [{"text": "Next: read spec/fixtures/invoke.thor lines=95-118\nread print_status for detail", "file": "spec/fixtures/invoke.thor", "symbol": "print_status", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=375-398\nread with_output_buffer for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "with_output_buffer", "line": 375, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=110-133\nread invoke_from_option for detail", "file": "lib/thor/group.rb", "symbol": "invoke_from_option", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=83-106\nread invoke! for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "invoke!", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=194-217\nread print_wrapped for detail", "file": "lib/thor/shell/basic.rb", "symbol": "print_wrapped", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=309-332\nread printable_commands for detail", "file": "lib/thor.rb", "symbol": "printable_commands", "line": 309, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/script.thor lines=36-59\nread neither_is_this for detail", "file": "spec/fixtures/script.thor", "symbol": "neither_is_this", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=54-77\nread desc for detail", "file": "lib/thor.rb", "symbol": "desc", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=199-222\nread printable_commands for detail", "file": "lib/thor/group.rb", "symbol": "printable_commands", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=6-29\nread WrappedPrinter for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "WrappedPrinter", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions_spec.rb", "symbol": "runner", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=131-154\nread find_class_and_command_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_class_and_command_by_namespace", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=21-44\nread default_command for detail", "file": "lib/thor.rb", "symbol": "default_command", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=59-82\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=37-60\nread fetch for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "fetch", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/subcommand.thor lines=1-24\nread TestSubcommands for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "TestSubcommands", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=76-99\nread can_has for detail", "file": "spec/command_spec.rb", "symbol": "can_has", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Qual é a função deste método que captura a saída padrão?", "query": "stdout capture helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "action", "line": 8, "lang": "pt", "candidates": [{"text": "File: spec/runner_spec.rb\nLine 105: end", "file": "spec/runner_spec.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 8: def action(*args, &block)", "file": "spec/actions_spec.rb", "symbol": "", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_link.rb\nLine 31: #", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 8: def action(*args, &block)", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "action", "line": 8, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/invocation.rb\nLine 64: # which belongs to the same class and \"hello\" which belongs to the class B.", "file": "lib/thor/invocation.rb", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 13: desc \"ok\", \"exit with no error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 10: @action = Thor::Actions::EmptyDirectory.new(base, destination)", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 3: class Basic", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 98: ensure", "file": "spec/base_spec.rb", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 150: klass = Class.new(Thor) do", "file": "spec/thor_spec.rb", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 1: $LOAD_PATH.unshift File.expand_path(\"../lib\", __FILE__)", "file": "Thorfile", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 31: config = config.merge({error_on_no_change: true})", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 5: false", "file": "spec/fixtures/command.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 23: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub print_opt --opt output)) }", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 333: end", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 22: case diff.action", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 6: options[key] = Thor::Option.parse(key, value)", "file": "spec/command_spec.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 14: action EmptyDirectory.new(self, destination, config)", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 49: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 61: end", "file": "spec/command_spec.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 10: def initialize(prompt, options)", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 31: expect(command(foo: :required).formatted_usage(object)).to eq(\"foo:can_has BAR --foo=FOO\")", "file": "spec/command_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 27: let(:action) do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions.rb\nLine 87: # Wraps an action object and call it accordingly to the thor class behavior.", "file": "lib/thor/actions.rb", "symbol": "", "line": 87, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Qual é a função deste método que captura a saída padrão?", "query": "stdout capture helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "action", "line": 8, "lang": "pt", "candidates": [{"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\ndefines action", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "thor", "task": "Qual é a função deste método que captura a saída padrão?", "query": "stdout capture helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "action", "line": 8, "lang": "pt", "candidates": [{"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Qual é a função deste método que captura a saída padrão?", "query": "stdout capture helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "action", "line": 8, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/actions/inject_into_file.rb lines=143-166\nread content for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "content", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=213-236\nread globs_for for detail", "file": "lib/thor/util.rb", "symbol": "globs_for", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/subcommand_spec.rb lines=50-73\nread foo for detail", "file": "spec/subcommand_spec.rb", "symbol": "foo", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=76-99\nread call_myself_with_wrong_arity for detail", "file": "spec/fixtures/script.thor", "symbol": "call_myself_with_wrong_arity", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=161-184\nread class_options_help for detail", "file": "lib/thor/group.rb", "symbol": "class_options_help", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=31-54\nread except for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "except", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=78-101\nread long_desc for detail", "file": "lib/thor.rb", "symbol": "long_desc", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=12-35\nread exists_and_identical? for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "exists_and_identical?", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/subcommand.thor lines=1-24\nread TestSubcommands for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "TestSubcommands", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=304-327\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 304, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=8-31\nread action for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "action", "line": 8, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=567-590\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 567, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/tree_spec.rb lines=18-41\nread subcommand1 for detail", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=351-374\nread no_relations for detail", "file": "spec/fixtures/script.thor", "symbol": "no_relations", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=16-39\nread install for detail", "file": "Thorfile", "symbol": "install", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=53-76\nread remaining for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "remaining", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=22-45\nread SuperSecretPlugin for detail", "file": "spec/register_spec.rb", "symbol": "SuperSecretPlugin", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/rake_compat_spec.rb lines=8-31\nread initialize for detail", "file": "spec/rake_compat_spec.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=20-43\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/terminal.rb lines=9-32\nread terminal_width for detail", "file": "lib/thor/shell/terminal.rb", "symbol": "terminal_width", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=4-27\nread runner for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "runner", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=274-297\nread Apple for detail", "file": "spec/fixtures/script.thor", "symbol": "Apple", "line": 274, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "명령어 실행 시 옵션과 인자값이 배열 형태로 반환되는 로직 확인 필요", "query": "exec options args", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lang": "ko", "candidates": [{"text": "File: spec/shell_spec.rb\nLine 12: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 99: context \"protected methods\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 17: DEFAULT_TERMINAL_WIDTH", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 399: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 399, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 124: status = if behavior == :invoke", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 23: end", "file": "Thorfile", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 6: end", "file": "spec/fixtures/command.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 19: private", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 51: stream = stream.to_s", "file": "spec/helper.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 100: def exec(*args)", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/option_spec.rb\nLine 95: expect(parse(:foo, true).default).to eq(true)", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 5: module LineEditor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 29: # Hack. Make rakefile point to invoker, so rdoc task is generated properly.", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 35: object = Struct.new(:namespace, :arguments).new(\"foo\", [])", "file": "spec/command_spec.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 32: end", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 37: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 2: require_relative \"line_editor/readline\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 3: class Amazing < Thor", "file": "spec/fixtures/command.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 397: # stop_on_unknown_option! :exec", "file": "lib/thor.rb", "symbol": "", "line": 397, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 15: load_thorfile(\"encoding_other.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 426: end", "file": "lib/thor.rb", "symbol": "", "line": 426, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 27: exec \"bundle exec rspec spec\"", "file": "Thorfile", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/encoding_spec.rb\nLine 11: load_thorfile(\"encoding_with_utf8.thor\")", "file": "spec/encoding_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 6: def self.readline(prompt, options = {})", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "명령어 실행 시 옵션과 인자값이 배열 형태로 반환되는 로직 확인 필요", "query": "exec options args", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lang": "ko", "candidates": [{"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nsibling in spec", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nsibling in spec", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\ndefines exec", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nsibling in spec", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nsibling in spec", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nsibling in spec", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "명령어 실행 시 옵션과 인자값이 배열 형태로 반환되는 로직 확인 필요", "query": "exec options args", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lang": "ko", "candidates": [{"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_link", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions.rb -> actions/create_file", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "명령어 실행 시 옵션과 인자값이 배열 형태로 반환되는 로직 확인 필요", "query": "exec options args", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=105-128\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 105, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/command.rb lines=137-160\nread DynamicCommand for detail", "file": "lib/thor/command.rb", "symbol": "DynamicCommand", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=202-225\nread stop_on_unknown_option? for detail", "file": "lib/thor/base.rb", "symbol": "stop_on_unknown_option?", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=12-35\nread package_name for detail", "file": "lib/thor.rb", "symbol": "package_name", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=50-73\nread PathCompletion for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "PathCompletion", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=14-37\nread print for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=186-209\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=96-119\nread name_with_dashes for detail", "file": "spec/fixtures/script.thor", "symbol": "name_with_dashes", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=177-200\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 177, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=309-332\nread printable_commands for detail", "file": "lib/thor.rb", "symbol": "printable_commands", "line": 309, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=231-254\nread exit_on_failure? for detail", "file": "spec/thor_spec.rb", "symbol": "exit_on_failure?", "line": 231, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=215-238\nread current_is_switch_formatted? for detail", "file": "lib/thor/parser/options.rb", "symbol": "current_is_switch_formatted?", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=17-40\nread revoke! for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "revoke!", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/runner.rb lines=310-333\nread display_commands for detail", "file": "lib/thor/runner.rb", "symbol": "display_commands", "line": 310, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=167-190\nread zoo for detail", "file": "spec/fixtures/script.thor", "symbol": "zoo", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=258-281\nread set_color for detail", "file": "lib/thor/shell/basic.rb", "symbol": "set_color", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=281-304\nread Pear for detail", "file": "spec/fixtures/script.thor", "symbol": "Pear", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=35-58\nread identical? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "identical?", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/subcommand.thor lines=10-33\nread Parent for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "Parent", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "パス補完の設定が有効かどうかを確認したいので、その判定ロジックを教えて。", "query": "path completion check", "file": "lib/thor/line_editor/readline.rb", "symbol": "use_path_completion?", "line": 46, "lang": "ja", "candidates": [{"text": "File: lib/thor/shell/basic.rb\nLine 118: buffer = prepare_message(message, *color)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 21: create string: nil, numeric: nil", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 4: describe \"command\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 157: bold = shell.set_color \"hi!\", :white, :bold", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 65: base.empty_directory given_destination, config", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 148: end", "file": "lib/thor/command.rb", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 8: #", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 19: end", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 261: # ==== Returns", "file": "lib/thor/util.rb", "symbol": "", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 9: content = content.to_s.split(\"\\n\")", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 46: def use_path_completion?", "file": "lib/thor/line_editor/readline.rb", "symbol": "use_path_completion?", "line": 46, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/nested_context.rb\nLine 12: pop", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 10: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 34: it \"when behavior is set to force, overwrite options\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 26: @depth -= 1", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 26: desc <<-FOO", "file": "spec/fixtures/group.thor", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 57: expect(File.exist?(File.join(destination_root, \"doc\"))).to be true", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 75: f = if column.is_a?(Numeric)", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 92: prepend Correctable if Correctable", "file": "lib/thor/error.rb", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 128: end", "file": "spec/actions_spec.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 48: end", "file": "lib/thor/command.rb", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 8: end", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 109: # or tab character, a new line is not appended (print + flush). Otherwise", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 30: it \"takes relative root into account\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "パス補完の設定が有効かどうかを確認したいので、その判定ロジックを教えて。", "query": "path completion check", "file": "lib/thor/line_editor/readline.rb", "symbol": "use_path_completion?", "line": 46, "lang": "ja", "candidates": [{"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nelsewhere in the tree", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\ndefines use_path_completion?", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nsibling in lib/thor/line_editor", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "パス補完の設定が有効かどうかを確認したいので、その判定ロジックを教えて。", "query": "path completion check", "file": "lib/thor/line_editor/readline.rb", "symbol": "use_path_completion?", "line": 46, "lang": "ja", "candidates": [{"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> fileutils", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_file.rb -> empty_directory", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "パス補完の設定が有効かどうかを確認したいので、その判定ロジックを教えて。", "query": "path completion check", "file": "lib/thor/line_editor/readline.rb", "symbol": "use_path_completion?", "line": 46, "lang": "ja", "candidates": [{"text": "Next: read spec/thor_spec.rb lines=880-903\nread no_arg for detail", "file": "spec/thor_spec.rb", "symbol": "no_arg", "line": 880, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=4-27\nread available? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "available?", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/encoding_spec.rb lines=6-29\nread load_thorfile for detail", "file": "spec/encoding_spec.rb", "symbol": "load_thorfile", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=325-348\nread subcommand_classes for detail", "file": "lib/thor.rb", "symbol": "subcommand_classes", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=560-583\nread create_command for detail", "file": "lib/thor.rb", "symbol": "create_command", "line": 560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=58-81\nread namespaces_in_content for detail", "file": "lib/thor/util.rb", "symbol": "namespaces_in_content", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=67-90\nread pretend? for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "pretend?", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=12-35\nread command2 for detail", "file": "spec/tree_spec.rb", "symbol": "command2", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=3-26\nread Readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Readline", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/rake_compat.rb lines=4-27\nread Thor for detail", "file": "lib/thor/rake_compat.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=9-32\nread Actions for detail", "file": "lib/thor/actions.rb", "symbol": "Actions", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/command_spec.rb lines=72-95\nread handle_no_command_error for detail", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=43-66\nread four for detail", "file": "spec/fixtures/group.thor", "symbol": "four", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=73-96\nread corrections for detail", "file": "lib/thor/error.rb", "symbol": "corrections", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=46-69\nread use_path_completion? for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "use_path_completion?", "line": 46, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=138-161\nread say_status for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "say_status", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=100-123\nread force_on_collision? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "force_on_collision?", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=138-161\nread invoke_with_padding for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_with_padding", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=13-36\nread readline for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "readline", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoker", "line": 15, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Le convertisseur de texte qui transforme les chaînes en minuscules avec des tirets bas ne semble pas gérer correctement tous les cas de caractères majuscules intermédiaires, ce qui produit des résultats incohérents lors de la transformation de formats de type CamelCase en format avec underscores.", "query": "snake_case string conversion", "file": "lib/thor/util.rb", "symbol": "snake_case", "line": 90, "lang": "fr", "candidates": [{"text": "File: spec/shell/html_spec.rb\nLine 27: expect($stdout).to receive(:print).with(\" conflict README\\n\")", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 7: def enter", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 2: require \"thor/base\"", "file": "spec/base_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nLine 21: # Set the terminal's foreground ANSI color to red.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nLine 5: def print_opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 156: #", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 75: _cleanup_options_and_set(options, config[:behavior])", "file": "lib/thor/actions.rb", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 43: options.fetch(:limited_to, [])", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 65: end", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 113: # say_error(\"error: something went wrong\")", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 30: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 40: base = MyCounter.new([1, 2])", "file": "spec/shell_spec.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 35: def identical?", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 65: describe \"#snake_case\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 65, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 327: # config:: give :verbose => false to not log the status.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 223: # option :two", "file": "lib/thor.rb", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 189: expect(capture(:stdout) { Thor::Runner.start }).to eq(\"moo\\n\")", "file": "spec/runner_spec.rb", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 15: _, exit_status= Process.wait2(pid)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 13: @group = options[:group].to_s.capitalize if options[:group]", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 14: def ok", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 90: def snake_case(str)", "file": "lib/thor/util.rb", "symbol": "snake_case", "line": 90, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/runner.rb\nLine 158: else", "file": "lib/thor/runner.rb", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 5: describe \"file's encoding\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Le convertisseur de texte qui transforme les chaînes en minuscules avec des tirets bas ne semble pas gérer correctement tous les cas de caractères majuscules intermédiaires, ce qui produit des résultats incohérents lors de la transformation de formats de type CamelCase en format avec underscores.", "query": "snake_case string conversion", "file": "lib/thor/util.rb", "symbol": "snake_case", "line": 90, "lang": "fr", "candidates": [{"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Le convertisseur de texte qui transforme les chaînes en minuscules avec des tirets bas ne semble pas gérer correctement tous les cas de caractères majuscules intermédiaires, ce qui produit des résultats incohérents lors de la transformation de formats de type CamelCase en format avec underscores.", "query": "snake_case string conversion", "file": "lib/thor/util.rb", "symbol": "snake_case", "line": 90, "lang": "fr", "candidates": [{"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Le convertisseur de texte qui transforme les chaînes en minuscules avec des tirets bas ne semble pas gérer correctement tous les cas de caractères majuscules intermédiaires, ce qui produit des résultats incohérents lors de la transformation de formats de type CamelCase en format avec underscores.", "query": "snake_case string conversion", "file": "lib/thor/util.rb", "symbol": "snake_case", "line": 90, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/util.rb lines=4-27\nread Sandbox for detail", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=592-615\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/directory_spec.rb lines=27-50\nread exists_and_identical? for detail", "file": "spec/actions/directory_spec.rb", "symbol": "exists_and_identical?", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=541-564\nread no_commands? for detail", "file": "lib/thor/base.rb", "symbol": "no_commands?", "line": 541, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=102-125\nread invoke for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_file.rb lines=45-68\nread identical? for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "identical?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=172-195\nread get_options_from_invocations for detail", "file": "lib/thor/group.rb", "symbol": "get_options_from_invocations", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=90-113\nread snake_case for detail", "file": "lib/thor/util.rb", "symbol": "snake_case", "line": 90, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/invoke.thor lines=104-127\nread F for detail", "file": "spec/fixtures/invoke.thor", "symbol": "F", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=293-316\nread boring for detail", "file": "spec/thor_spec.rb", "symbol": "boring", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=49-72\nread values_at for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "values_at", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=126-149\nread validate! for detail", "file": "lib/thor/parser/option.rb", "symbol": "validate!", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=24-47\nread find_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_by_namespace", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/util.rb lines=17-40\nread Util for detail", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=248-271\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=20-43\nread check_unknown! for detail", "file": "spec/parser/options_spec.rb", "symbol": "check_unknown!", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=123-146\nread version for detail", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=350-373\nread remove_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "remove_file", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=179-202\nread boom for detail", "file": "spec/fixtures/script.thor", "symbol": "boom", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=200-223\nread in_root for detail", "file": "lib/thor/actions.rb", "symbol": "in_root", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=11-34\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "définir une méthode avec une arité incorrecte", "query": "wrong arity method", "file": "spec/fixtures/group.thor", "symbol": "wrong_arity", "line": 105, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/command.thor\nLine 1: # module: random", "file": "spec/fixtures/command.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 22: it \"passes parsed options to subcommands\" do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 223: expect(output).to match(/^ README/)", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 111: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 39: expect { WhinyGenerator.start }.to raise_error(ArgumentError, /thor wrong_arity takes 1 argument, but it should not/)", "file": "spec/group_spec.rb", "symbol": "", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 7: end", "file": "spec/quality_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 68: #", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 2: require_relative \"line_editor/readline\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 891: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 891, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 105: def wrong_arity(required)", "file": "spec/fixtures/group.thor", "symbol": "wrong_arity", "line": 105, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/invocation.rb\nLine 97: #", "file": "lib/thor/invocation.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 130: end", "file": "spec/group_spec.rb", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 113: expect(shell.ask(\"What's your favorite Neopolitan flavor?\", default: \"vanilla\", limited_to: flavors)).to eq(\"vanilla\")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 109: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 11: puts \"ok\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 709: let(:klass) do", "file": "spec/thor_spec.rb", "symbol": "", "line": 709, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 341: option :two", "file": "spec/fixtures/script.thor", "symbol": "", "line": 341, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nLine 32: def echo?", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 102: key, value = shift.split(\":\", 2)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 12: @opt = Thor::Arguments.new(arguments)", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 41: #", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 21: new(*args).parse(to_parse)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 109: expect { Thor::Runner.start }.to raise_error(ArgumentError, /thor wrong_arity takes 1 argument, but it should not/)", "file": "spec/runner_spec.rb", "symbol": "", "line": 109, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "définir une méthode avec une arité incorrecte", "query": "wrong arity method", "file": "spec/fixtures/group.thor", "symbol": "wrong_arity", "line": 105, "lang": "fr", "candidates": [{"text": "File: spec/fixtures/application_helper.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\ndefines wrong_arity", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/command.thor\nsibling in spec/fixtures", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/verbose.thor\nsibling in spec/fixtures", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nelsewhere in the tree", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nsibling in spec/fixtures", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "définir une méthode avec une arité incorrecte", "query": "wrong arity method", "file": "spec/fixtures/group.thor", "symbol": "wrong_arity", "line": 105, "lang": "fr", "candidates": [{"text": "Next: read lib/thor/runner.rb lines=225-248\nread initialize_thorfiles for detail", "file": "lib/thor/runner.rb", "symbol": "initialize_thorfiles", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=31-54\nread one for detail", "file": "spec/fixtures/group.thor", "symbol": "one", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=35-58\nread identical? for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "identical?", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=105-128\nread wrong_arity for detail", "file": "spec/fixtures/group.thor", "symbol": "wrong_arity", "line": 105, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=14-37\nread print for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=351-374\nread no_relations for detail", "file": "spec/fixtures/script.thor", "symbol": "no_relations", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=1-24\nread MyCounter for detail", "file": "spec/fixtures/group.thor", "symbol": "MyCounter", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=333-356\nread at_least_one for detail", "file": "spec/fixtures/script.thor", "symbol": "at_least_one", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=330-353\nread ask_simply for detail", "file": "lib/thor/shell/basic.rb", "symbol": "ask_simply", "line": 330, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=142-165\nread update for detail", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=313-336\nread show_diff for detail", "file": "lib/thor/shell/basic.rb", "symbol": "show_diff", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=72-95\nread format_cell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "format_cell", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=9-32\nread get_from_super for detail", "file": "spec/fixtures/group.thor", "symbol": "get_from_super", "line": 9, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/parser/option_spec.rb lines=5-28\nread parse for detail", "file": "spec/parser/option_spec.rb", "symbol": "parse", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/empty_directory_spec.rb lines=9-32\nread empty_directory for detail", "file": "spec/actions/empty_directory_spec.rb", "symbol": "empty_directory", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=35-58\nread two for detail", "file": "spec/fixtures/group.thor", "symbol": "two", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=478-501\nread disable_required_check for detail", "file": "lib/thor.rb", "symbol": "disable_required_check", "line": 478, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=122-145\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=5-28\nread exit_on_failure? for detail", "file": "spec/fixtures/group.thor", "symbol": "exit_on_failure?", "line": 5, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "ファイルを別の場所にシンボリックリンクとして作成する処理を探しています。引数の渡し方や、パスの解決方法がどうなっているか確認したいです。", "query": "create symlink", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lang": "ja", "candidates": [{"text": "File: spec/tree_spec.rb\nLine 37: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/A top level command/)", "file": "spec/tree_spec.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 50: def link_file(source, *args)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor.rb\nLine 1: require_relative \"line_editor/basic\"", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 3: class ExitStatus < Thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 15: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 126: # Thor::Util.namespace_to_thor_class(\"foo:bar:baz\") #=> Foo::Bar, \"baz\"", "file": "lib/thor/util.rb", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 27: def source_root(path = nil)", "file": "lib/thor/actions.rb", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 32: dup.tap do |hash|", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 128: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 17: DEFAULT_TERMINAL_WIDTH", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 20: desc \"release\", \"Create tag v#{Thor::VERSION} and build and push thor-#{Thor::VERSION}.gem to Rubygems\"", "file": "Thorfile", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 564: end", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 564, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 105: expect(Thor::Util.find_class_and_command_by_namespace(\"thor:help\")).to eq([Thor, \"help\"])", "file": "spec/util_spec.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 7: def bugs", "file": "spec/fixtures/help.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 1: class Thor", "file": "lib/thor/version.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 51: stream = stream.to_s", "file": "spec/helper.rb", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nLine 127: namespaces: %w(amazing)", "file": "spec/runner_spec.rb", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 141: describe \"#link_file\", unless: windows? do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 141, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nLine 97: !!self[$1]", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 71: end", "file": "spec/base_spec.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 227: Thor::Util.load_thorfile(f, nil, options[:debug]) unless Thor::Base.subclass_files.keys.include?(File.expand_path(f))", "file": "lib/thor/runner.rb", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 250: alias_method :at_least_one, :method_at_least_one", "file": "lib/thor.rb", "symbol": "", "line": 250, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "ファイルを別の場所にシンボリックリンクとして作成する処理を探しています。引数の渡し方や、パスの解決方法がどうなっているか確認したいです。", "query": "create symlink", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lang": "ja", "candidates": [{"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nelsewhere in the tree", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nelsewhere in the tree", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nelsewhere in the tree", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "ファイルを別の場所にシンボリックリンクとして作成する処理を探しています。引数の渡し方や、パスの解決方法がどうなっているか確認したいです。", "query": "create symlink", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lang": "ja", "candidates": [{"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/basic", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/parser/argument.rb -> N", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/column_printer.rb -> terminal", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/directory.rb -> empty_directory", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_with_utf8.thor -> ok", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor.rb -> line_editor/readline", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "ファイルを別の場所にシンボリックリンクとして作成する処理を探しています。引数の渡し方や、パスの解決方法がどうなっているか確認したいです。", "query": "create symlink", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/parser/arguments.rb lines=26-49\nread initialize for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "initialize", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=64-87\nread invoke! for detail", "file": "lib/thor/actions/directory.rb", "symbol": "invoke!", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=131-154\nread find_class_and_command_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_class_and_command_by_namespace", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=173-196\nread check_unknown_options for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=117-140\nread template for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/lcs_diff.rb lines=21-44\nread output_diff_line for detail", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "output_diff_line", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=100-123\nread E for detail", "file": "spec/fixtures/invoke.thor", "symbol": "E", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=30-53\nread current_command_chain for detail", "file": "lib/thor/invocation.rb", "symbol": "current_command_chain", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=8-31\nread initialize for detail", "file": "lib/thor/parser/argument.rb", "symbol": "initialize", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=113-136\nread invoke_with_conflict_check for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "invoke_with_conflict_check", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=634-657\nread find_command_possibilities for detail", "file": "lib/thor.rb", "symbol": "find_command_possibilities", "line": 634, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=100-123\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=55-78\nread a for detail", "file": "spec/sort_spec.rb", "symbol": "a", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/group.thor lines=72-95\nread source_root for detail", "file": "spec/fixtures/group.thor", "symbol": "source_root", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=227-250\nread checked for detail", "file": "spec/thor_spec.rb", "symbol": "checked", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=783-806\nread create_command for detail", "file": "lib/thor/base.rb", "symbol": "create_command", "line": 783, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/error.rb lines=36-59\nread spell_checker for detail", "file": "lib/thor/error.rb", "symbol": "spell_checker", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=75-98\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "optionnamen in schalter- oder menschenlesbare Namen umwandeln", "query": "option name conversion", "file": "lib/thor/parser/options.rb", "symbol": "names_to_switch_names", "line": 179, "lang": "de", "candidates": [{"text": "File: lib/thor/rake_compat.rb\nLine 47: description = non_namespaced_name", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 17: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 13: super(base)", "file": "lib/thor/actions.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nLine 4: # Overwrite show_diff to show diff with colors if Diff::LCS is", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 24: expect(Thor::Util.find_by_namespace(\"app:broken:counter\")).to eq(BrokenCounter)", "file": "spec/util_spec.rb", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 12: #", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 42: end", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 124: end", "file": "lib/thor/command.rb", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 166: invoke!", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 179: def names_to_switch_names(names = [])", "file": "lib/thor/parser/options.rb", "symbol": "names_to_switch_names", "line": 179, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/parser/arguments_spec.rb\nLine 31: create string: nil, hash: nil", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 37: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 108: # destination:: the relative path to the destination root.", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 5: end", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nLine 14: require \"thor\"", "file": "spec/helper.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 111: #", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 30: shell.ask \"Is this green?\", :green, limited_to: %w(Yes No Maybe)", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 289: list = printable_commands(true, subcommand)", "file": "lib/thor.rb", "symbol": "", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 54: it \"prints arrays in a copy pasteable way\" do", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 3: add_runtime_options!", "file": "spec/fixtures/group.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 4: SOME_STRING = \"Some λέξεις 一些词 🎉\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 11: expect(capture(:stdout) { Scripts::MyDefaults.start(%w(barn open)) }.strip).to eq(\"Open sesame!\")", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 76: def call_myself_with_wrong_arity", "file": "spec/fixtures/script.thor", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nLine 2: end", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "optionnamen in schalter- oder menschenlesbare Namen umwandeln", "query": "option name conversion", "file": "lib/thor/parser/options.rb", "symbol": "names_to_switch_names", "line": 179, "lang": "de", "candidates": [{"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nsibling in lib/thor/parser", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "optionnamen in schalter- oder menschenlesbare Namen umwandeln", "query": "option name conversion", "file": "lib/thor/parser/options.rb", "symbol": "names_to_switch_names", "line": 179, "lang": "de", "candidates": [{"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=5-28\nread ColumnPrinter for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "ColumnPrinter", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=173-196\nread check_unknown_options for detail", "file": "lib/thor/base.rb", "symbol": "check_unknown_options", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/encoding_implicit.thor lines=3-26\nread EncodingImplicit for detail", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "EncodingImplicit", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=8-31\nread split for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "split", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=48-71\nread add_runtime_options! for detail", "file": "lib/thor/actions.rb", "symbol": "add_runtime_options!", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=276-299\nread apple for detail", "file": "spec/fixtures/script.thor", "symbol": "apple", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/sort_spec.rb lines=4-27\nread shell for detail", "file": "spec/sort_spec.rb", "symbol": "shell", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/group_spec.rb lines=223-246\nread hi for detail", "file": "spec/group_spec.rb", "symbol": "hi", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=472-495\nread commands for detail", "file": "lib/thor/base.rb", "symbol": "commands", "line": 472, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=75-98\nread PluginWithDefaultcommandAndDeclaredArgument for detail", "file": "spec/register_spec.rb", "symbol": "PluginWithDefaultcommandAndDeclaredArgument", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=11-34\nread to_switches for detail", "file": "lib/thor/parser/options.rb", "symbol": "to_switches", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/options.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=629-652\nread exit_on_failure? for detail", "file": "lib/thor/base.rb", "symbol": "exit_on_failure?", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=17-40\nread fireworks for detail", "file": "spec/register_spec.rb", "symbol": "fireworks", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=179-202\nread names_to_switch_names for detail", "file": "lib/thor/parser/options.rb", "symbol": "names_to_switch_names", "line": 179, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=58-81\nread matches for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "matches", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=24-47\nread UndefinedCommandError for detail", "file": "lib/thor/error.rb", "symbol": "UndefinedCommandError", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=64-87\nread reverse_merge for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=61-84\nread remaining for detail", "file": "lib/thor/parser/options.rb", "symbol": "remaining", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/quality_spec.rb lines=12-35\nread check_for_tab_characters for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=32-55\nread initialize for detail", "file": "lib/thor/parser/options.rb", "symbol": "initialize", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=14-37\nread exit_on_failure? for detail", "file": "lib/thor/runner.rb", "symbol": "exit_on_failure?", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=15-38\nread SubApp for detail", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "テスト用のフィクスチャを作成しているのですが、単純に数値を標準出力に表示するだけのメソッドがどこにあるか教えてください。呼び出しの動作を確認したいです。", "query": "p 3", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 75, "lang": "ja", "candidates": [{"text": "File: lib/thor/version.rb\nLine 2: VERSION = \"1.5.0\"", "file": "lib/thor/version.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 44: case default", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 249: @file = \"https://gist.github.com/103208.txt\"", "file": "spec/actions_spec.rb", "symbol": "", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 41: end", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 262: it \"does not change the file and raises an error if already includes content using after with capture\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 58: task", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 2: def thor_command(command)", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 167: stored_args, stored_opts, stored_config = @_initializer", "file": "lib/thor/invocation.rb", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nLine 73: end", "file": "spec/register_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 45: expect(argument(:foo, type: :array).usage).to eq(\"one two three\")", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/color.rb\nLine 7: module Shell", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nLine 11: @indent = options[:indent].to_i", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 125: it \"does not copy empty directories twice\" do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 18: end", "file": "lib/thor/invocation.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nLine 75: def three", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 75, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/line_editor.rb\nLine 14: ].detect(&:available?)", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 15: end", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nLine 92: MyClassOptionScript.start %w[mix --one --two --three --five]", "file": "spec/base_spec.rb", "symbol": "", "line": 92, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 50: expect(MyCounter.desc).to eq(\"Description:\\n This generator runs three commands: one, two and three.\\n\")", "file": "spec/group_spec.rb", "symbol": "", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/thor_spec.rb\nLine 442: expect(exclusives.first).to eq(%w[one two three])", "file": "spec/thor_spec.rb", "symbol": "", "line": 442, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/exit_status.thor\nLine 18: ExitStatus.start(ARGV)", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 39: expect { WhinyGenerator.start }.to raise_error(ArgumentError, /thor wrong_arity takes 1 argument, but it should not/)", "file": "spec/group_spec.rb", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 213: expect(parse(:foo, :array).usage).to eq(\"[--foo=one two three]\")", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 213, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nLine 82: \"one two three\"", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 82, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "テスト用のフィクスチャを作成しているのですが、単純に数値を標準出力に表示するだけのメソッドがどこにあるか教えてください。呼び出しの動作を確認したいです。", "query": "p 3", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 75, "lang": "ja", "candidates": [{"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nsibling in spec/fixtures", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nsibling in spec/fixtures", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nsibling in spec/fixtures", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\ndefines three", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/help.thor\nsibling in spec/fixtures", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nelsewhere in the tree", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nsibling in spec/fixtures", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nsibling in spec/fixtures", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "テスト用のフィクスチャを作成しているのですが、単純に数値を標準出力に表示するだけのメソッドがどこにあるか教えてください。呼び出しの動作を確認したいです。", "query": "p 3", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 75, "lang": "ja", "candidates": [{"text": "Next: read lib/thor/parser/options.rb lines=248-271\nread parsing_options? for detail", "file": "lib/thor/parser/options.rb", "symbol": "parsing_options?", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=269-292\nread can_display_colors? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "can_display_colors?", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=48-71\nread add_runtime_options! for detail", "file": "lib/thor/actions.rb", "symbol": "add_runtime_options!", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=200-223\nread in_root for detail", "file": "lib/thor/actions.rb", "symbol": "in_root", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=7-30\nread command1 for detail", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=142-165\nread update for detail", "file": "lib/thor/runner.rb", "symbol": "update", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=75-98\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 75, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/actions/create_file_spec.rb lines=25-48\nread silence! for detail", "file": "spec/actions/create_file_spec.rb", "symbol": "silence!", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=12-35\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=23-46\nread four for detail", "file": "spec/fixtures/invoke.thor", "symbol": "four", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=239-262\nread inject_into_module for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "inject_into_module", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=25-48\nread SpellChecker for detail", "file": "lib/thor/error.rb", "symbol": "SpellChecker", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=1-24\nread A for detail", "file": "spec/fixtures/invoke.thor", "symbol": "A", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=264-287\nread prepare_message for detail", "file": "lib/thor/shell/basic.rb", "symbol": "prepare_message", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=18-41\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=2-25\nread Options for detail", "file": "lib/thor/parser/options.rb", "symbol": "Options", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=7-30\nread Basic for detail", "file": "lib/thor/shell/basic.rb", "symbol": "Basic", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=307-330\nread mix for detail", "file": "spec/fixtures/script.thor", "symbol": "mix", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=5-28\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/script.thor lines=1-24\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=208-231\nread disable_required_check? for detail", "file": "lib/thor/base.rb", "symbol": "disable_required_check?", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=607-630\nread public_command for detail", "file": "lib/thor/base.rb", "symbol": "public_command", "line": 607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=789-812\nread initialize_added for detail", "file": "lib/thor/base.rb", "symbol": "initialize_added", "line": 789, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=133-156\nread potentially_ambiguous for detail", "file": "spec/fixtures/script.thor", "symbol": "potentially_ambiguous", "line": 133, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "Der Pfad zur Zieldatei im Dokumentationsverzeichnis scheint hartcodiert zu sein; es sollte geprüft werden, ob er dynamisch auf die Zielwurzel bezogen wird.", "query": "destination_root doc README", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lang": "de", "candidates": [{"text": "File: spec/command_spec.rb\nLine 7: end", "file": "spec/command_spec.rb", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 31: def file", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell/color_spec.rb\nLine 150: expect(on_red).to eq(\"\\e[37m\\e[41mhi!\\e[0m\")", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 12: def file", "file": "spec/actions_spec.rb", "symbol": "", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Thorfile\nLine 21: def release", "file": "Thorfile", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 95: expect(@action.exists?).to be true", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 28: %w(config.rb README).each do |file|", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 12: words = unwrapped.split(\" \")", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 17: # Set the terminal's foreground HTML color to red.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 5: describe \"file's encoding\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/command_spec.rb\nLine 18: it \"includes subcommand name within subcommand usage\" do", "file": "spec/command_spec.rb", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 5: @shell ||= Thor::Shell::HTML.new", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 54: it \"copies the file to the specified destination\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nLine 17: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nLine 3: $VERBOSE = true", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 58: def initialize(base, source, destination = nil, config = {}, &block)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 209: expect { parse(\"--bar\") }.to raise_error(Thor::RequiredArgumentMissingError)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 43: desc \"install NAME\", \"Install an optionally named Thor file into your system commands\"", "file": "lib/thor/runner.rb", "symbol": "", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nLine 23: def four", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 282: when 2", "file": "lib/thor/group.rb", "symbol": "", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 5: # Create a new file relative to the destination root from the given source.", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 5, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Der Pfad zur Zieldatei im Dokumentationsverzeichnis scheint hartcodiert zu sein; es sollte geprüft werden, ob er dynamisch auf die Zielwurzel bezogen wird.", "query": "destination_root doc README", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lang": "de", "candidates": [{"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\ndefines file", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nsibling in spec/actions", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nsibling in spec/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/runner_spec.rb\nelsewhere in the tree", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nelsewhere in the tree", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nsibling in spec/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "Der Pfad zur Zieldatei im Dokumentationsverzeichnis scheint hartcodiert zu sein; es sollte geprüft werden, ob er dynamisch auf die Zielwurzel bezogen wird.", "query": "destination_root doc README", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lang": "de", "candidates": [{"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> thor/base", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/encoding_spec.rb -> helper", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> helper", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> column_printer", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/inject_into_file_spec.rb -> thor/actions", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/table_printer.rb -> terminal", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Der Pfad zur Zieldatei im Dokumentationsverzeichnis scheint hartcodiert zu sein; es sollte geprüft werden, ob er dynamisch auf die Zielwurzel bezogen wird.", "query": "destination_root doc README", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lang": "de", "candidates": [{"text": "Next: read spec/actions/inject_into_file_spec.rb lines=11-34\nread invoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoker", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=122-145\nread two for detail", "file": "spec/fixtures/invoke.thor", "symbol": "two", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=71-94\nread default_banner for detail", "file": "lib/thor/parser/argument.rb", "symbol": "default_banner", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/util_spec.rb lines=4-27\nread clear_user_home! for detail", "file": "spec/util_spec.rb", "symbol": "clear_user_home!", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/application.rb lines=1-24\nread Application for detail", "file": "spec/fixtures/application.rb", "symbol": "Application", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=23-46\nread invoke_with_a_bang! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke_with_a_bang!", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=310-333\nread display_commands for detail", "file": "lib/thor/runner.rb", "symbol": "display_commands", "line": 310, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=23-46\nread Shell for detail", "file": "lib/thor/shell.rb", "symbol": "Shell", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=27-50\nread revoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoke!", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=13-36\nread initialize for detail", "file": "lib/thor/shell/basic.rb", "symbol": "initialize", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=102-125\nread invoke for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=15-38\nread revoker for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "revoker", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=31-54\nread file for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "file", "line": 31, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/invoke.thor lines=110-133\nread G for detail", "file": "spec/fixtures/invoke.thor", "symbol": "G", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=333-356\nread at_least_one for detail", "file": "spec/fixtures/script.thor", "symbol": "at_least_one", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=158-181\nread parse_string for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "parse_string", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/color.rb lines=84-107\nread set_color for detail", "file": "lib/thor/shell/color.rb", "symbol": "set_color", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=258-281\nread command_help for detail", "file": "lib/thor.rb", "symbol": "command_help", "line": 258, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=2-25\nread Option for detail", "file": "lib/thor/parser/option.rb", "symbol": "Option", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=547-570\nread shell for detail", "file": "spec/thor_spec.rb", "symbol": "shell", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=2-25\nread Invocation for detail", "file": "lib/thor/invocation.rb", "symbol": "Invocation", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/inject_into_file_spec.rb lines=19-42\nread invoke! for detail", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "invoke!", "line": 19, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "Preciso criar uma classe Thor que agrupe o comando principal e seus subcomandos. Deve haver um comando de nível superior e um subcomando aninhado dentro de uma classe interna.", "query": "Thor subcommand class", "file": "spec/tree_spec.rb", "symbol": "TreeApp", "line": 4, "lang": "pt", "candidates": [{"text": "File: lib/thor/parser/options.rb\nLine 94: while peek", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 16: end", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 110: end", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 16: argument :first, :type => :numeric", "file": "spec/fixtures/group.thor", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\nLine 32: # ==== Returns", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 248: :method_at_least_one_option_names, *args, &block)", "file": "lib/thor.rb", "symbol": "", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/command.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 20: out = capture(:stdout) { shell.say \"Wow! Now we have colors! \", :green }", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 22: @enum = options[:enum]", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 8: push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 21: it \"returns the shell in use\" do", "file": "spec/shell_spec.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 199: it \"prints a message to the user without new line if it ends with a whitespace\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 160: before do", "file": "spec/group_spec.rb", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/inject_into_file_spec.rb\nLine 129: it \"does not attempt to change the file if it doesn't exist - instead raises Thor::Error\" do", "file": "spec/actions/inject_into_file_spec.rb", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 235: merge(destination, yield)", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 13: Help.start(ARGV)", "file": "spec/fixtures/help.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 12: else", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/arguments_spec.rb\nLine 57: expect { parse }.to raise_error(Thor::RequiredArgumentMissingError, \"No value provided for required arguments 'string', 'numeric'\")", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nLine 2: def check_for_spec_defs_with_single_quotes(filename)", "file": "spec/quality_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 25: true", "file": "spec/fixtures/script.thor", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 1: Bundler.require :development, :default", "file": "spec/fixtures/help.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\nLine 4: class TreeApp < Thor", "file": "spec/tree_spec.rb", "symbol": "TreeApp", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/invocation.rb\nLine 137: # Invokes using shell padding.", "file": "lib/thor/invocation.rb", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 13: _, options = MyScript.start(%w(with_optional))", "file": "spec/thor_spec.rb", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "Preciso criar uma classe Thor que agrupe o comando principal e seus subcomandos. Deve haver um comando de nível superior e um subcomando aninhado dentro de uma classe interna.", "query": "Thor subcommand class", "file": "spec/tree_spec.rb", "symbol": "TreeApp", "line": 4, "lang": "pt", "candidates": [{"text": "File: spec/sort_spec.rb\nsibling in spec", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/create_file_spec.rb\nelsewhere in the tree", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nsibling in spec", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nsibling in spec", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/basic_spec.rb\nelsewhere in the tree", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nsibling in spec", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/tree_spec.rb\ndefines TreeApp", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/enum.thor\nelsewhere in the tree", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nsibling in spec", "file": "spec/encoding_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nelsewhere in the tree", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nsibling in spec", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/lcs_diff.rb\nOverwrite show_diff to show diff with colors if Diff::LCS is available.", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nHold source paths for one Thor instance. source_paths_for_search is the method responsible to gather source_paths from this current class, inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "Preciso criar uma classe Thor que agrupe o comando principal e seus subcomandos. Deve haver um comando de nível superior e um subcomando aninhado dentro de uma classe interna.", "query": "Thor subcommand class", "file": "spec/tree_spec.rb", "symbol": "TreeApp", "line": 4, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> bundler", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> thor/actions", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): Thorfile -> thor/rake_compat", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/actions/create_link_spec.rb -> helper", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/file_manipulation_spec.rb -> helper", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "Preciso criar uma classe Thor que agrupe o comando principal e seus subcomandos. Deve haver um comando de nível superior e um subcomando aninhado dentro de uma classe interna.", "query": "Thor subcommand class", "file": "spec/tree_spec.rb", "symbol": "TreeApp", "line": 4, "lang": "pt", "candidates": [{"text": "Next: read lib/thor/actions.rb lines=127-150\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=243-266\nread ChildDefault for detail", "file": "spec/fixtures/script.thor", "symbol": "ChildDefault", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=6-29\nread available? for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "available?", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=5-28\nread LineEditor for detail", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/actions/file_manipulation_spec.rb lines=622-645\nread file for detail", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "file", "line": 622, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=4-27\nread TreeApp for detail", "file": "spec/tree_spec.rb", "symbol": "TreeApp", "line": 4, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/base.rb lines=483-506\nread all_commands for detail", "file": "lib/thor/base.rb", "symbol": "all_commands", "line": 483, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=72-95\nread format_cell for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "format_cell", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=7-30\nread command1 for detail", "file": "spec/tree_spec.rb", "symbol": "command1", "line": 7, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/runner.rb lines=123-146\nread version for detail", "file": "lib/thor/runner.rb", "symbol": "version", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=115-138\nread H for detail", "file": "spec/fixtures/invoke.thor", "symbol": "H", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=12-35\nread command2 for detail", "file": "spec/tree_spec.rb", "symbol": "command2", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=322-345\nread quiet? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "quiet?", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=104-127\nread AtLeastOneRequiredArgumentError for detail", "file": "lib/thor/error.rb", "symbol": "AtLeastOneRequiredArgumentError", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=15-38\nread SubApp for detail", "file": "spec/tree_spec.rb", "symbol": "SubApp", "line": 15, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/arguments.rb lines=64-87\nread last? for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "last?", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=1-24\nread Thor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/script_exit_status_spec.rb lines=2-25\nread thor_command for detail", "file": "spec/script_exit_status_spec.rb", "symbol": "thor_command", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=671-694\nread help for detail", "file": "lib/thor.rb", "symbol": "help", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=294-317\nread arguments for detail", "file": "lib/thor/base.rb", "symbol": "arguments", "line": 294, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=18-41\nread subcommand1 for detail", "file": "spec/tree_spec.rb", "symbol": "subcommand1", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=207-230\nread file_collision for detail", "file": "lib/thor/shell/basic.rb", "symbol": "file_collision", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell.rb lines=11-34\nread shell for detail", "file": "lib/thor/shell.rb", "symbol": "shell", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "was sage zu tun wenn das zielverzeichnis bereits existiert", "query": "destination already exists", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_conflict_behavior", "line": 132, "lang": "de", "candidates": [{"text": "File: spec/base_spec.rb\nLine 106: begin", "file": "spec/base_spec.rb", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/options_spec.rb\nLine 213: expect { parse(\"--no-foo\") }.to raise_error(Thor::RequiredArgumentMissingError)", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 4: def self.available?", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 132: say_status :invoke, value, #{verbose.inspect}", "file": "lib/thor/group.rb", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 33: row.each_with_index do |column, index|", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 36: # ==== Parameters", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 8: full_command= \"ruby #{script_path} #{command}\"", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 61: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_with_utf8.thor\nLine 7: desc \"encoding\", \"tests that encoding is correct\"", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 4: def self.exit_on_failure?", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 891: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 891, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/inject_into_file.rb\nLine 104: end", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 82: end", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 63: expect(File.exist?(file)).to be true", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nLine 12: {out: w, err: [:child, :out]})", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nLine 132: def on_conflict_behavior", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_conflict_behavior", "line": 132, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/shell_spec.rb\nLine 36: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor.rb\nLine 11: [", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 58: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 73: def on_conflict_behavior(&block)", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 73, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 197: end", "file": "spec/group_spec.rb", "symbol": "", "line": 197, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/group_spec.rb\nLine 162: end", "file": "spec/group_spec.rb", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_file_spec.rb\nLine 171: expect(invoke!) .to eq(\" file_clash doc/config\\n\")", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nLine 13: desc \"ok\", \"exit with no error\"", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "was sage zu tun wenn das zielverzeichnis bereits existiert", "query": "destination already exists", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_conflict_behavior", "line": 132, "lang": "de", "candidates": [{"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/color.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nReceives a hash and makes it switches.", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nInitialize base, mute and padding to nil.", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "was sage zu tun wenn das zielverzeichnis bereits existiert", "query": "destination already exists", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_conflict_behavior", "line": 132, "lang": "de", "candidates": [{"text": "Import (outbound): spec/helper.rb -> coveralls", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/helper.rb -> simplecov", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> thor/parser", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> create_file", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/create_link.rb -> fileutils", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> helper", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> thor/actions", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/options_spec.rb -> helper", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/arguments_spec.rb -> thor/parser", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/empty_directory_spec.rb -> helper", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "was sage zu tun wenn das zielverzeichnis bereits existiert", "query": "destination already exists", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_conflict_behavior", "line": 132, "lang": "de", "candidates": [{"text": "Next: read lib/thor/actions/empty_directory.rb lines=13-36\nread empty_directory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "empty_directory", "line": 13, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=129-152\nread subclasses for detail", "file": "lib/thor/base.rb", "symbol": "subclasses", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/argument.rb lines=62-85\nread validate! for detail", "file": "lib/thor/parser/argument.rb", "symbol": "validate!", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=1-24\nread Thor for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Thor", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/nested_context.rb lines=1-24\nread Thor for detail", "file": "lib/thor/nested_context.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=211-234\nread MyScript for detail", "file": "spec/fixtures/script.thor", "symbol": "MyScript", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=185-208\nread Barn for detail", "file": "spec/fixtures/script.thor", "symbol": "Barn", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=23-46\nread EmptyDirectory for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "EmptyDirectory", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor.rb lines=546-569\nread banner for detail", "file": "lib/thor.rb", "symbol": "banner", "line": 546, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=34-57\nread initialize for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "initialize", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/basic.rb lines=3-26\nread Basic for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "Basic", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=767-790\nread hi for detail", "file": "spec/thor_spec.rb", "symbol": "hi", "line": 767, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=2-25\nread Actions for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "Actions", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/subcommand.thor lines=1-24\nread TestSubcommands for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "TestSubcommands", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=132-155\nread on_conflict_behavior for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "on_conflict_behavior", "line": 132, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/basic.rb lines=22-45\nread mute for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=12-35\nread included for detail", "file": "lib/thor/actions.rb", "symbol": "included", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=45-68\nread key? for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "key?", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=159-182\nread attr_writer for detail", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/invoke.thor lines=43-66\nread one for detail", "file": "spec/fixtures/invoke.thor", "symbol": "one", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/parser/options_spec.rb lines=16-39\nread parse for detail", "file": "spec/parser/options_spec.rb", "symbol": "parse", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=105-128\nread wrong_arity for detail", "file": "spec/fixtures/group.thor", "symbol": "wrong_arity", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=37-60\nread register for detail", "file": "lib/thor.rb", "symbol": "register", "line": 37, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "I'm trying to figure out how the system maps out all the files located in the user's hidden configuration directory. Can you show me the logic that expands those paths and ensures it looks for a specific entry point file if it hits a folder?", "query": "config directory glob", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lang": "en", "candidates": [{"text": "File: spec/fixtures/subcommand.thor\nLine 1: module TestSubcommands", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nLine 38: expect(shell.set_color(\"\", [:nocolor])).to eq \"<htmlcontent>\"", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 10: end", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nLine 177: describe \"#thor_root_glob\" do", "file": "spec/util_spec.rb", "symbol": "", "line": 177, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 158: # path:: path of the file to be changed", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nLine 22: def create_file(destination, *args, &block)", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 73: def corrections", "file": "lib/thor/error.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nLine 119: self.type == #{type.inspect}", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/basic.rb\nLine 122: stderr.flush", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 38: end", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/table_printer.rb\nLine 99: end", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 73: it \"shows exist status\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 115: private :private_file_name", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 46: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 203: def thor_root_glob", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/sort_spec.rb\nLine 1: require \"helper\"", "file": "spec/sort_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 13: else", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 6: def snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 55: UndefinedTaskError = UndefinedCommandError", "file": "lib/thor/error.rb", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 3: describe Thor do", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 1: class Application < Base", "file": "spec/fixtures/application.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/create_link_spec.rb\nLine 111: describe \"#revoke!\" do", "file": "spec/actions/create_link_spec.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 263: files = (relevant_to ? thorfiles_relevant_to(relevant_to) : Thor::Util.thor_root_glob)", "file": "lib/thor/runner.rb", "symbol": "", "line": 263, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/runner.rb\nLine 292: raise Error, \"No Thor commands available\" if klasses.empty?", "file": "lib/thor/runner.rb", "symbol": "", "line": 292, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "I'm trying to figure out how the system maps out all the files located in the user's hidden configuration directory. Can you show me the logic that expands those paths and ensures it looks for a specific entry point file if it hits a folder?", "query": "config directory glob", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lang": "en", "candidates": [{"text": "File: spec/fixtures/application.rb\nelsewhere in the tree", "file": "spec/fixtures/application.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/verbose.thor\nelsewhere in the tree", "file": "spec/fixtures/verbose.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/subcommand.thor\nelsewhere in the tree", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/quality_spec.rb\nelsewhere in the tree", "file": "spec/quality_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nelsewhere in the tree", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/util_spec.rb\nelsewhere in the tree", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nelsewhere in the tree", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nsibling in lib/thor", "file": "lib/thor/version.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/terminal.rb\nThis code was copied from Rake, available under MIT-LICENSE Copyright (c) 2003, 2004 Jim Weirich", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nThor::Error is raised when it's caused by wrong usage of thor classes. Those errors have their backtrace suppressed and are nicely shown to the user. Errors that are caused by the developer, like dec", "file": "lib/thor/error.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "I'm trying to figure out how the system maps out all the files located in the user's hidden configuration directory. Can you show me the logic that expands those paths and ensures it looks for a specific entry point file if it hits a folder?", "query": "config directory glob", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lang": "en", "candidates": [{"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> helper", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> helper", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/base_spec.rb -> thor/base", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> column_printer", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/tree_spec.rb -> thor", "file": "spec/tree_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell_spec.rb -> helper", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/wrapped_printer.rb -> terminal", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor.rb -> thor/base", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/util.rb -> rbconfig", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "thor", "task": "I'm trying to figure out how the system maps out all the files located in the user's hidden configuration directory. Can you show me the logic that expands those paths and ensures it looks for a specific entry point file if it hits a folder?", "query": "config directory glob", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lang": "en", "candidates": [{"text": "Next: read lib/thor/line_editor/basic.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/basic.rb", "symbol": "LineEditor", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=190-213\nread thor_root for detail", "file": "lib/thor/runner.rb", "symbol": "thor_root", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=1-24\nread Thor for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=107-130\nread show_default? for detail", "file": "lib/thor/parser/option.rb", "symbol": "show_default?", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=186-209\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=43-66\nread ClassOptionGroupPlugin for detail", "file": "spec/register_spec.rb", "symbol": "ClassOptionGroupPlugin", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=3-26\nread Thor for detail", "file": "lib/thor/util.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/command_spec.rb lines=72-95\nread handle_no_command_error for detail", "file": "spec/command_spec.rb", "symbol": "handle_no_command_error", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=4-27\nread Sandbox for detail", "file": "lib/thor/util.rb", "symbol": "Sandbox", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=161-184\nread class_options_help for detail", "file": "lib/thor/group.rb", "symbol": "class_options_help", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=62-85\nread InvocationError for detail", "file": "lib/thor/error.rb", "symbol": "InvocationError", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=221-244\nread command_exists? for detail", "file": "lib/thor/group.rb", "symbol": "command_exists?", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/tree_spec.rb lines=4-27\nread TreeApp for detail", "file": "spec/tree_spec.rb", "symbol": "TreeApp", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=321-344\nread show_modules for detail", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=82-105\nread base_path for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "base_path", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=24-47\nread find_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_by_namespace", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/basic.rb lines=282-305\nread stderr for detail", "file": "lib/thor/shell/basic.rb", "symbol": "stderr", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=43-66\nread namespace_from_thor_class for detail", "file": "lib/thor/util.rb", "symbol": "namespace_from_thor_class", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=398-421\nread CapturableERB for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "CapturableERB", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=17-40\nread Util for detail", "file": "lib/thor/util.rb", "symbol": "Util", "line": 17, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/table_printer.rb lines=18-41\nread print for detail", "file": "lib/thor/shell/table_printer.rb", "symbol": "print", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=203-226\nread thor_root_glob for detail", "file": "lib/thor/util.rb", "symbol": "thor_root_glob", "line": 203, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/shell/wrapped_printer.rb lines=7-30\nread print for detail", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "print", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=2-25\nread LineEditor for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "LineEditor", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "busca la lógica que registra nuevas subclases y reinicia el contador de comandos al heredar", "query": "inherited register klass", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lang": "es", "candidates": [{"text": "File: spec/script_exit_status_spec.rb\nLine 9: r,w= IO.pipe", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nLine 124: it \"keeps inherited source paths at the end\" do", "file": "spec/actions_spec.rb", "symbol": "", "line": 124, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/create_file.rb\nLine 71: # Now on conflict we check if the file is identical or not.", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 15: expect(command(bar: :required).formatted_usage(object)).to eq(\"foo:can_has --bar=BAR\")", "file": "spec/command_spec.rb", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 20: # inherited paths and the source root.", "file": "lib/thor/actions.rb", "symbol": "", "line": 20, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/wrapped_printer.rb\nLine 37: end", "file": "lib/thor/shell/wrapped_printer.rb", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 41: end", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 26: def spec", "file": "Thorfile", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nLine 46: initialize_thorfiles", "file": "lib/thor/runner.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/thor_spec.rb\nLine 318: end", "file": "spec/thor_spec.rb", "symbol": "", "line": 318, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nLine 65: absolute_matches.map { |path| path.sub(base_path, \"\") }", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/empty_directory_spec.rb\nLine 91: it \"returns true if the destination file exists\" do", "file": "spec/actions/empty_directory_spec.rb", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 140: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nLine 105: methods = instance.public_methods(false) + instance.private_methods(false) + instance.protected_methods(false)", "file": "lib/thor/command.rb", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/error.rb\nLine 2: Correctable = if defined?(DidYouMean::SpellChecker) && defined?(DidYouMean::Correctable) # rubocop:disable Naming/ConstantName", "file": "lib/thor/error.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nLine 21: def push", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nLine 55: def self.inherited(base)", "file": "spec/fixtures/group.thor", "symbol": "", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/group_spec.rb\nLine 53: it \"can be inherited\" do", "file": "spec/group_spec.rb", "symbol": "", "line": 53, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/encoding_other.thor\nLine 9: def encoding", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 722: def inherited(klass)", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 550: describe \"#prepend_to_file\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 550, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 56: end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/directory_spec.rb\nLine 5: describe Thor::Actions::Directory do", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "busca la lógica que registra nuevas subclases y reinicia el contador de comandos al heredar", "query": "inherited register klass", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lang": "es", "candidates": [{"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nAllows for custom \"Command\" package naming. === Parameters name options", "file": "lib/thor.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/script_exit_status_spec.rb\nelsewhere in the tree", "file": "spec/script_exit_status_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application_helper.rb\nelsewhere in the tree", "file": "spec/fixtures/application_helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nelsewhere in the tree", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\noptions:: An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen. config::", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: lib/thor/parser/argument.rb\nelsewhere in the tree", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/command.rb\nBy default, a command invokes a method in the thor class. You can change this implementation to create custom commands.", "file": "lib/thor/command.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor/basic.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/column_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/column_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "busca la lógica que registra nuevas subclases y reinicia el contador de comandos al heredar", "query": "inherited register klass", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lang": "es", "candidates": [{"text": "Import (outbound): lib/thor/base.rb -> nested_context", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> helper", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/option_spec.rb -> thor/parser", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_other.thor -> ok", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> line_editor", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> core_ext/hash_with_indifferent_access", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/shell/color.rb -> basic", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> parser", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): lib/thor/base.rb -> command", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/parser/option_spec.rb -> helper", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/create_file_spec.rb -> thor/actions", "file": "spec/actions/create_file_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> error", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> thor/rake_compat", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> shell", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/rake_compat_spec.rb -> helper", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/color.rb -> lcs_diff", "file": "lib/thor/shell/color.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/base.rb -> invocation", "file": "lib/thor/base.rb", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "thor", "task": "busca la lógica que registra nuevas subclases y reinicia el contador de comandos al heredar", "query": "inherited register klass", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lang": "es", "candidates": [{"text": "Next: read lib/thor/parser/argument.rb lines=52-75\nread enum_to_s for detail", "file": "lib/thor/parser/argument.rb", "symbol": "enum_to_s", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/command.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/command.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/inject_into_file.rb lines=56-79\nread insert_into_file for detail", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "insert_into_file", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=27-50\nread deprecation_warning for detail", "file": "lib/thor/base.rb", "symbol": "deprecation_warning", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=77-100\nread to_hash for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "to_hash", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=722-745\nread inherited for detail", "file": "lib/thor/base.rb", "symbol": "inherited", "line": 722, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read spec/fixtures/group.thor lines=55-78\nread inherited for detail", "file": "spec/fixtures/group.thor", "symbol": "inherited", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/invocation.rb lines=138-161\nread invoke_with_padding for detail", "file": "lib/thor/invocation.rb", "symbol": "invoke_with_padding", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=11-34\nread Thor for detail", "file": "lib/thor/base.rb", "symbol": "Thor", "line": 11, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/encoding_with_utf8.thor lines=4-27\nread EncodingWithUtf8 for detail", "file": "spec/fixtures/encoding_with_utf8.thor", "symbol": "EncodingWithUtf8", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=3-26\nread initialize for detail", "file": "lib/thor/nested_context.rb", "symbol": "initialize", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/create_link.rb lines=27-50\nread CreateLink for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "CreateLink", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/basic.rb lines=31-54\nread mute? for detail", "file": "lib/thor/shell/basic.rb", "symbol": "mute?", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=4-27\nread exit_on_failure? for detail", "file": "spec/fixtures/script.thor", "symbol": "exit_on_failure?", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=117-140\nread included for detail", "file": "lib/thor/base.rb", "symbol": "included", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/base.rb lines=35-58\nread Base for detail", "file": "lib/thor/base.rb", "symbol": "Base", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/parser/options.rb lines=65-88\nread peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "peek", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/directory.rb lines=58-81\nread initialize for detail", "file": "lib/thor/actions/directory.rb", "symbol": "initialize", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/register_spec.rb lines=3-26\nread BoringVendorProvidedCLI for detail", "file": "spec/register_spec.rb", "symbol": "BoringVendorProvidedCLI", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/exit_status.thor lines=3-26\nread ExitStatus for detail", "file": "spec/fixtures/exit_status.thor", "symbol": "ExitStatus", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=108-131\nread long_description_unwrapped for detail", "file": "spec/fixtures/script.thor", "symbol": "long_description_unwrapped", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=37-60\nread fetch for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "fetch", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/options.rb lines=274-297\nread parse_peek for detail", "file": "lib/thor/parser/options.rb", "symbol": "parse_peek", "line": 274, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "thor", "task": "como o thor encaminha o comando para execução", "query": "dispatch command", "file": "lib/thor/group.rb", "symbol": "dispatch", "line": 228, "lang": "pt", "candidates": [{"text": "File: lib/thor/parser/option.rb\nLine 176: end", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 176, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 111: if key.respond_to?(:each)", "file": "lib/thor.rb", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nLine 228: def dispatch(command, given_args, given_opts, config) #:nodoc:", "file": "lib/thor/group.rb", "symbol": "dispatch", "line": 228, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/register_spec.rb\nLine 118: \"purple monkey dishwasher\"", "file": "spec/register_spec.rb", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/subcommand_spec.rb\nLine 56: desc \"child1\", \"child1 description\"", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 16: rescue", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 3: VALID_TYPES = [:numeric, :hash, :array, :string]", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 505: def dispatch(meth, given_args, given_opts, config) #:nodoc:", "file": "lib/thor.rb", "symbol": "", "line": 505, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nLine 29: autoload :HTML, File.expand_path(\"shell/html\", __dir__)", "file": "lib/thor/shell.rb", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_implicit.thor\nLine 13: puts \"expected #{SOME_STRING.encoding.name} to equal UTF-8\"", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nLine 102: key, value = shift.split(\":\", 2)", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 45: expect(Thor::DynamicCommand.new(\"command\").options).to eq({})", "file": "spec/command_spec.rb", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/option_spec.rb\nLine 282: }).print_default).to eq(true)", "file": "spec/parser/option_spec.rb", "symbol": "", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 200: expect($stderr).to receive(:print).with(\"Running... \")", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 20: end", "file": "lib/thor/shell.rb", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/argument.rb\nLine 54: enum.join(\", \")", "file": "lib/thor/parser/argument.rb", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nLine 116: klass.send(:dispatch, command, args, opts, config) do |instance|", "file": "lib/thor/invocation.rb", "symbol": "", "line": 116, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/actions/directory_spec.rb\nLine 17: end", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions.rb\nLine 269: else", "file": "lib/thor/actions.rb", "symbol": "", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/parser/argument_spec.rb\nLine 1: require \"helper\"", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nLine 30: shell.ask \"Is this green?\", :green, limited_to: %w(Yes No Maybe)", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/options.rb\nLine 119: @parsing_options = false", "file": "lib/thor/parser/options.rb", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nLine 135: end", "file": "spec/fixtures/script.thor", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/base.rb\nLine 585: dispatch(nil, given_args.dup, nil, config)", "file": "lib/thor/base.rb", "symbol": "", "line": 585, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "thor", "task": "como o thor encaminha o comando para execução", "query": "dispatch command", "file": "lib/thor/group.rb", "symbol": "dispatch", "line": 228, "lang": "pt", "candidates": [{"text": "File: spec/shell_spec.rb\nelsewhere in the tree", "file": "spec/shell_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nInherit from Thor::Shell::Basic and add set_color behavior. Check Thor::Shell::Basic to see all available methods.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/color_spec.rb\nelsewhere in the tree", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/encoding_other.thor\nelsewhere in the tree", "file": "spec/fixtures/encoding_other.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/group.rb\nexists, tries to find the USAGE one folder above it, otherwise searches in the superclass. ==== Parameters description:: The description for this Thor::Group.", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/command.thor\nelsewhere in the tree", "file": "spec/fixtures/command.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nThor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\" 2) Loading thor files and sandboxing: Thor::Util.load_thorfile(\"~/.thor/foo\")", "file": "lib/thor/util.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/core_ext/hash_with_indifferent_access.rb\nhash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true hash[:foo] #=> 'bar' hash['foo'] #=> 'bar' hash.foo? #=> true", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/base_spec.rb\nelsewhere in the tree", "file": "spec/base_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/option.rb\nThe valid types are :boolean, :numeric, :hash, :array and :string. If none is given a default type is assumed. This default type accepts arguments as string (--foo=value) or booleans (just --foo). By", "file": "lib/thor/parser/option.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/rake_compat_spec.rb\nelsewhere in the tree", "file": "spec/rake_compat_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/script.thor\nelsewhere in the tree", "file": "spec/fixtures/script.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/runner.rb\nOverride Thor#help so it can give information about any class and any method.", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/line_editor.rb\nsibling in lib/thor", "file": "lib/thor/line_editor.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/helper.rb\nThis code was adapted from Ruby on Rails, available under MIT-LICENSE Copyright (c) 2004-2013 David Heinemeier Hansson", "file": "spec/helper.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nsibling in lib/thor", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/sort_spec.rb\nelsewhere in the tree", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "thor", "task": "como o thor encaminha o comando para execução", "query": "dispatch command", "file": "lib/thor/group.rb", "symbol": "dispatch", "line": 228, "lang": "pt", "candidates": [{"text": "Import (outbound): spec/runner_spec.rb -> helper", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/exit_status.thor -> thor", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> -", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/subcommand.thor -> opt", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/empty_directory.rb -> fileutils", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> pathname", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/runner_spec.rb -> thor/runner", "file": "spec/runner_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake/dsl_definition", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/rake_compat.rb -> rake", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/group.rb -> base", "file": "lib/thor/group.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> helper", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/lcs_diff.rb -> diff/lcs", "file": "lib/thor/shell/lcs_diff.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/runner.rb -> digest/sha2", "file": "lib/thor/runner.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/subcommand_spec.rb -> helper", "file": "spec/subcommand_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/parser/argument_spec.rb -> thor/parser", "file": "spec/parser/argument_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "como o thor encaminha o comando para execução", "query": "dispatch command", "file": "lib/thor/group.rb", "symbol": "dispatch", "line": 228, "lang": "pt", "candidates": [{"text": "Next: read spec/util_spec.rb lines=4-27\nread clear_user_home! for detail", "file": "spec/util_spec.rb", "symbol": "clear_user_home!", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=56-79\nread invoke for detail", "file": "lib/thor/group.rb", "symbol": "invoke", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/thor_spec.rb lines=173-196\nread exec for detail", "file": "spec/thor_spec.rb", "symbol": "exec", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/option.rb lines=1-24\nread Thor for detail", "file": "lib/thor/parser/option.rb", "symbol": "Thor", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=228-251\nread dispatch for detail", "file": "lib/thor/group.rb", "symbol": "dispatch", "line": 228, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/group.rb lines=45-68\nread invocation_blocks for detail", "file": "lib/thor/group.rb", "symbol": "invocation_blocks", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_link.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/create_link.rb", "symbol": "Actions", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/parser/arguments.rb lines=172-195\nread validate_enum_value! for detail", "file": "lib/thor/parser/arguments.rb", "symbol": "validate_enum_value!", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/quality_spec.rb lines=12-35\nread check_for_tab_characters for detail", "file": "spec/quality_spec.rb", "symbol": "check_for_tab_characters", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/runner.rb lines=321-344\nread show_modules for detail", "file": "lib/thor/runner.rb", "symbol": "show_modules", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=131-154\nread find_class_and_command_by_namespace for detail", "file": "lib/thor/util.rb", "symbol": "find_class_and_command_by_namespace", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=39-62\nread invocations for detail", "file": "lib/thor/group.rb", "symbol": "invocations", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/shell/html.rb lines=4-27\nread Thor for detail", "file": "lib/thor/shell/html.rb", "symbol": "Thor", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=329-352\nread _cleanup_options_and_set for detail", "file": "lib/thor/actions.rb", "symbol": "_cleanup_options_and_set", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=325-348\nread _shared_configuration for detail", "file": "lib/thor/actions.rb", "symbol": "_shared_configuration", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/shell/column_printer.rb lines=14-37\nread print for detail", "file": "lib/thor/shell/column_printer.rb", "symbol": "print", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=16-39\nread desc for detail", "file": "lib/thor/group.rb", "symbol": "desc", "line": 16, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=68-91\nread reverse_merge! for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "reverse_merge!", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=159-182\nread attr_writer for detail", "file": "lib/thor/base.rb", "symbol": "attr_writer", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/nested_context.rb lines=2-25\nread NestedContext for detail", "file": "lib/thor/nested_context.rb", "symbol": "NestedContext", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/base.rb lines=54-77\nread initialize for detail", "file": "lib/thor/base.rb", "symbol": "initialize", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/core_ext/hash_with_indifferent_access.rb lines=11-34\nread HashWithIndifferentAccess for detail", "file": "lib/thor/core_ext/hash_with_indifferent_access.rb", "symbol": "HashWithIndifferentAccess", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/error.rb lines=57-80\nread AmbiguousCommandError for detail", "file": "lib/thor/error.rb", "symbol": "AmbiguousCommandError", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/group.rb lines=29-52\nread help for detail", "file": "lib/thor/group.rb", "symbol": "help", "line": 29, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "thor", "task": "파일을 복사할 때 특정 옵션을 주면 원본의 실행 권한 설정을 그대로 유지해야 하는데, 현재 설정이 제대로 반영되지 않는 것 같습니다. 복사된 파일의 권한 모드를 원본과 동일하게 맞추는 로직을 확인해 주세요.", "query": "copy file mode", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lang": "ko", "candidates": [{"text": "File: spec/tree_spec.rb\nLine 46: it \"shows tree command in help\" do", "file": "spec/tree_spec.rb", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 10: it \"respects explicit UTF-8\" do", "file": "spec/encoding_spec.rb", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/encoding_spec.rb\nLine 2: require \"thor/base\"", "file": "spec/encoding_spec.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/command_spec.rb\nLine 19: object = Struct.new(:namespace, :arguments).new(\"main:foo\", [])", "file": "spec/command_spec.rb", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell_spec.rb\nLine 17: end", "file": "spec/shell_spec.rb", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/application.rb\nLine 2: end", "file": "spec/fixtures/application.rb", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/util.rb\nLine 263: #", "file": "lib/thor/util.rb", "symbol": "", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/version.rb\nLine 3: end", "file": "lib/thor/version.rb", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/terminal.rb\nLine 16: rescue", "file": "lib/thor/shell/terminal.rb", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\nLine 20: def copy_file(source, *args, &block)", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/fixtures/subcommand.thor\nLine 6: print options[\"opt\"]", "file": "spec/fixtures/subcommand.thor", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell.rb\nLine 50: # Holds the shell for the given Thor instance. If no shell is given,", "file": "lib/thor/shell.rb", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/shell/html.rb\nLine 40: # Set the terminal's background HTML color to blue.", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nLine 9: end", "file": "spec/fixtures/help.thor", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/enum.thor\nLine 1: class Enum < Thor::Group", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/sort_spec.rb\nLine 5: @shell ||= Thor::Base.shell.new", "file": "spec/sort_spec.rb", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nLine 20: desc \"release\", \"Create tag v#{Thor::VERSION} and build and push thor-#{Thor::VERSION}.gem to Rubygems\"", "file": "Thorfile", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/basic_spec.rb\nLine 246: context \"without indentation\" do", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nLine 6: # rake package tasks. For example, to use rspec rake tasks, one can do:", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions/file_manipulation_spec.rb\nLine 51: describe \"#copy_file\" do", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/util_spec.rb\nLine 167: allow(ENV).to receive(:[]).with(\"HOMEPATH\").and_return(\"Documents and Settings/James\")", "file": "spec/util_spec.rb", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\nLine 94: base.copy_file(file_source, file_destination, config, &@block)", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 94, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/command.rb\nLine 71: self.options_relation[:at_least_one_option_names] || []", "file": "lib/thor/command.rb", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor.rb\nLine 38: if klass <= Thor::Group", "file": "lib/thor.rb", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "thor", "task": "파일을 복사할 때 특정 옵션을 주면 원본의 실행 권한 설정을 그대로 유지해야 하는데, 현재 설정이 제대로 반영되지 않는 것 같습니다. 복사된 파일의 권한 모드를 원본과 동일하게 맞추는 로직을 확인해 주세요.", "query": "copy file mode", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lang": "ko", "candidates": [{"text": "File: spec/parser/options_spec.rb\nelsewhere in the tree", "file": "spec/parser/options_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/group.thor\nelsewhere in the tree", "file": "spec/fixtures/group.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/actions_spec.rb\nelsewhere in the tree", "file": "spec/actions_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/register_spec.rb\nelsewhere in the tree", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/parser/arguments.rb\nReceives an array of args and returns two arrays, one with arguments and one with switches.", "file": "lib/thor/parser/arguments.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/directory.rb\n==== Examples directory \"doc\" directory \"doc\", \"docs\", :recursive => false", "file": "lib/thor/actions/directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell/table_printer.rb\nelsewhere in the tree", "file": "lib/thor/shell/table_printer.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/help.thor\nelsewhere in the tree", "file": "spec/fixtures/help.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/line_editor/readline.rb\nelsewhere in the tree", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_file.rb\nhostname = ask(\"What is the virtual hostname I should use?\") \"vhost.name = #{hostname}\" end create_file \"config/apache.conf\", \"your apache config\"", "file": "lib/thor/actions/create_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/shell.rb\nReturns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/exit_status.thor\nelsewhere in the tree", "file": "spec/fixtures/exit_status.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/empty_directory.rb\nconfig:: give :verbose => false to not log the status. ==== Examples empty_directory \"doc\"", "file": "lib/thor/actions/empty_directory.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: spec/parser/arguments_spec.rb\nelsewhere in the tree", "file": "spec/parser/arguments_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Thorfile\nelsewhere in the tree", "file": "Thorfile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/fixtures/invoke.thor\nelsewhere in the tree", "file": "spec/fixtures/invoke.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/nested_context.rb\nelsewhere in the tree", "file": "lib/thor/nested_context.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: spec/shell/html_spec.rb\nelsewhere in the tree", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/invocation.rb\nThis method is responsible for receiving a name and find the proper class and command for it. The key is an optional parameter which is available only in class methods invocations (i.e. in Thor::Group", "file": "lib/thor/invocation.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/rake_compat.rb\nRSpec::Core::RakeTask.new(:spec) do |t| t.spec_opts = ['--options', './.rspec'] t.spec_files = FileList['spec/**/*_spec.rb'] end end", "file": "lib/thor/rake_compat.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/file_manipulation.rb\n==== Examples copy_file \"README\", \"doc/README\" copy_file \"doc/README\"", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: spec/actions/file_manipulation_spec.rb\nelsewhere in the tree", "file": "spec/actions/file_manipulation_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: lib/thor/actions/create_link.rb\n:: give :symbolic => false for hard link. ==== Examples create_link \"config/apache.conf\", \"/etc/apache.conf\"", "file": "lib/thor/actions/create_link.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: lib/thor/actions/inject_into_file.rb\ninsert_into_file \"config/environment.rb\", :after => \"Rails::Initializer.run do |config|\\n\" do gems = ask \"Which gems would you like to add?\" gems.split(\" \").map{ |gem| \" config.gem :#{gem}\" }.join(\"\\", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "thor", "task": "파일을 복사할 때 특정 옵션을 주면 원본의 실행 권한 설정을 그대로 유지해야 하는데, 현재 설정이 제대로 반영되지 않는 것 같습니다. 복사된 파일의 권한 모드를 원본과 동일하게 맞추는 로직을 확인해 주세요.", "query": "copy file mode", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lang": "ko", "candidates": [{"text": "Import (outbound): spec/shell/html_spec.rb -> helper", "file": "spec/shell/html_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/inject_into_file.rb -> empty_directory", "file": "lib/thor/actions/inject_into_file.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> lcs_diff", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/readline.rb -> readline", "file": "lib/thor/line_editor/readline.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/thor_spec.rb -> helper", "file": "spec/thor_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/shell/basic_spec.rb -> helper", "file": "spec/shell/basic_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/actions/file_manipulation.rb -> erb", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): spec/shell/color_spec.rb -> helper", "file": "spec/shell/color_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/line_editor/basic.rb -> io/console", "file": "lib/thor/line_editor/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> column_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> tmpdir", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/encoding_implicit.thor -> ok", "file": "spec/fixtures/encoding_implicit.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/group_spec.rb -> helper", "file": "spec/group_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> helper", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> animal", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/fixtures/enum.thor -> snack", "file": "spec/fixtures/enum.thor", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell.rb -> rbconfig", "file": "lib/thor/shell.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/util_spec.rb -> helper", "file": "spec/util_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/basic.rb -> table_printer", "file": "lib/thor/shell/basic.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/register_spec.rb -> helper", "file": "spec/register_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/sort_spec.rb -> helper", "file": "spec/sort_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/actions/directory_spec.rb -> helper", "file": "spec/actions/directory_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): spec/command_spec.rb -> fail", "file": "spec/command_spec.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): lib/thor/shell/html.rb -> basic", "file": "lib/thor/shell/html.rb", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "thor", "task": "파일을 복사할 때 특정 옵션을 주면 원본의 실행 권한 설정을 그대로 유지해야 하는데, 현재 설정이 제대로 반영되지 않는 것 같습니다. 복사된 파일의 권한 모드를 원본과 동일하게 맞추는 로직을 확인해 주세요.", "query": "copy file mode", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lang": "ko", "candidates": [{"text": "Next: read lib/thor/runner.rb lines=174-197\nread list for detail", "file": "lib/thor/runner.rb", "symbol": "list", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=117-140\nread template for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "template", "line": 117, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/group.rb lines=207-230\nread handle_argument_error for detail", "file": "lib/thor/group.rb", "symbol": "handle_argument_error", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions.rb lines=22-45\nread source_paths for detail", "file": "lib/thor/actions.rb", "symbol": "source_paths", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/util.rb lines=168-191\nread user_home for detail", "file": "lib/thor/util.rb", "symbol": "user_home", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=4-27\nread Actions for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Actions", "line": 4, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=3-26\nread Thor for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "Thor", "line": 3, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/actions_spec.rb lines=12-35\nread file for detail", "file": "spec/actions_spec.rb", "symbol": "file", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=50-73\nread link_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "link_file", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read spec/fixtures/invoke.thor lines=75-98\nread three for detail", "file": "spec/fixtures/invoke.thor", "symbol": "three", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/thor_spec.rb lines=811-834\nread unknown for detail", "file": "spec/thor_spec.rb", "symbol": "unknown", "line": 811, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=20-43\nread copy_file for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "copy_file", "line": 20, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read lib/thor/actions/empty_directory.rb lines=56-79\nread revoke! for detail", "file": "lib/thor/actions/empty_directory.rb", "symbol": "revoke!", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor/readline.rb lines=78-101\nread glob_pattern for detail", "file": "lib/thor/line_editor/readline.rb", "symbol": "glob_pattern", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/group.thor lines=61-84\nread world for detail", "file": "spec/fixtures/group.thor", "symbol": "world", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=634-657\nread find_command_possibilities for detail", "file": "lib/thor.rb", "symbol": "find_command_possibilities", "line": 634, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor.rb lines=3-26\nread Thor for detail", "file": "lib/thor.rb", "symbol": "Thor", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/line_editor.rb lines=5-28\nread LineEditor for detail", "file": "lib/thor/line_editor.rb", "symbol": "LineEditor", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/script.thor lines=117-140\nread with_optional for detail", "file": "spec/fixtures/script.thor", "symbol": "with_optional", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Thorfile lines=11-34\nread build for detail", "file": "Thorfile", "symbol": "build", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read lib/thor/actions/file_manipulation.rb lines=81-104\nread get for detail", "file": "lib/thor/actions/file_manipulation.rb", "symbol": "get", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read lib/thor/actions/create_file.rb lines=32-55\nread CreateFile for detail", "file": "lib/thor/actions/create_file.rb", "symbol": "CreateFile", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/enum.thor lines=6-29\nread snack for detail", "file": "spec/fixtures/enum.thor", "symbol": "snack", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read spec/fixtures/subcommand.thor lines=1-24\nread TestSubcommands for detail", "file": "spec/fixtures/subcommand.thor", "symbol": "TestSubcommands", "line": 1, "lexical": 0.0, "target": false, "label": 0}]}